diff --git a/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java b/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java index 81e5f3db0..bec836052 100644 --- a/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java +++ b/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java @@ -913,6 +913,130 @@ public final UnaryCallable batchTranslateT 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
+   * 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 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
+   * 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 document in asynchronous batch mode. This function provides diff --git a/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json b/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json index 0088a1f00..b5190737c 100644 --- a/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json +++ b/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json @@ -11,7 +11,7 @@ "libraryClient": "TranslationServiceClient", "rpcs": { "BatchTranslateDocument": { - "methods": ["batchTranslateDocumentAsync", "batchTranslateDocumentOperationCallable", "batchTranslateDocumentCallable"] + "methods": ["batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentOperationCallable", "batchTranslateDocumentCallable"] }, "BatchTranslateText": { "methods": ["batchTranslateTextAsync", "batchTranslateTextOperationCallable", "batchTranslateTextCallable"] diff --git a/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java b/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java index 6aa588e27..b9cccb108 100644 --- a/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java +++ b/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java @@ -692,6 +692,130 @@ public final UnaryCallable batchTranslateT 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
+   * 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
+   * 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 diff --git a/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json b/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json index e5db2b0a4..5cf5bb902 100644 --- a/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json +++ b/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json @@ -11,7 +11,7 @@ "libraryClient": "TranslationServiceClient", "rpcs": { "BatchTranslateDocument": { - "methods": ["batchTranslateDocumentAsync", "batchTranslateDocumentOperationCallable", "batchTranslateDocumentCallable"] + "methods": ["batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentAsync", "batchTranslateDocumentOperationCallable", "batchTranslateDocumentCallable"] }, "BatchTranslateText": { "methods": ["batchTranslateTextAsync", "batchTranslateTextOperationCallable", "batchTranslateTextCallable"] diff --git a/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java b/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java index 65a201ce4..28a2fe305 100644 --- a/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java +++ b/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java @@ -642,20 +642,17 @@ public void batchTranslateDocumentTest() throws Exception { .build(); mockTranslationService.addResponse(resultOperation); - 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(); + 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(request).get(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockTranslationService.getRequests(); @@ -663,15 +660,11 @@ public void batchTranslateDocumentTest() throws Exception { BatchTranslateDocumentRequest actualRequest = ((BatchTranslateDocumentRequest) actualRequests.get(0)); - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); - Assert.assertEquals( - request.getTargetLanguageCodesList(), actualRequest.getTargetLanguageCodesList()); - Assert.assertEquals(request.getInputConfigsList(), actualRequest.getInputConfigsList()); - Assert.assertEquals(request.getOutputConfig(), actualRequest.getOutputConfig()); - Assert.assertEquals(request.getModelsMap(), actualRequest.getModelsMap()); - Assert.assertEquals(request.getGlossariesMap(), actualRequest.getGlossariesMap()); - Assert.assertEquals(request.getFormatConversionsMap(), actualRequest.getFormatConversionsMap()); + 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(), @@ -684,18 +677,90 @@ public void batchTranslateDocumentExceptionTest() throws Exception { mockTranslationService.addException(exception); try { - 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(); - client.batchTranslateDocumentAsync(request).get(); + 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()); diff --git a/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java b/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java index c68eaa0e0..2a0bcd334 100644 --- a/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java +++ b/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java @@ -496,20 +496,17 @@ public void batchTranslateDocumentTest() throws Exception { .build(); mockTranslationService.addResponse(resultOperation); - 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(); + 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(request).get(); + client + .batchTranslateDocumentAsync( + parent, sourceLanguageCode, targetLanguageCodes, inputConfigs, outputConfig) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockTranslationService.getRequests(); @@ -517,15 +514,11 @@ public void batchTranslateDocumentTest() throws Exception { BatchTranslateDocumentRequest actualRequest = ((BatchTranslateDocumentRequest) actualRequests.get(0)); - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getSourceLanguageCode(), actualRequest.getSourceLanguageCode()); - Assert.assertEquals( - request.getTargetLanguageCodesList(), actualRequest.getTargetLanguageCodesList()); - Assert.assertEquals(request.getInputConfigsList(), actualRequest.getInputConfigsList()); - Assert.assertEquals(request.getOutputConfig(), actualRequest.getOutputConfig()); - Assert.assertEquals(request.getModelsMap(), actualRequest.getModelsMap()); - Assert.assertEquals(request.getGlossariesMap(), actualRequest.getGlossariesMap()); - Assert.assertEquals(request.getFormatConversionsMap(), actualRequest.getFormatConversionsMap()); + 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(), @@ -538,18 +531,90 @@ public void batchTranslateDocumentExceptionTest() throws Exception { mockTranslationService.addException(exception); try { - 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(); - client.batchTranslateDocumentAsync(request).get(); + 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()); diff --git a/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java b/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java new file mode 100644 index 000000000..16f28b5c2 --- /dev/null +++ b/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java @@ -0,0 +1,476 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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
+ * [Location.metadata][google.cloud.location.Location.metadata] field.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/location/locations.proto") +public final class LocationsGrpc { + + 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; + + @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; + 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(); + } + } + } + return getListLocationsMethod; + } + + 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< + 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(); + } + } + } + return getGetLocationMethod; + } + + /** 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); + } + }; + 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) { + 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); + } + }; + 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) { + 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); + } + }; + return LocationsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * 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 { + + /** + * + * + *
+     * Lists information about the supported locations for this service.
+     * 
+ */ + public 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.
+     * 
+ */ + public void getLocation( + com.google.cloud.location.GetLocationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetLocationMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, METHODID_LIST_LOCATIONS))) + .addMethod( + getGetLocationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.GetLocationRequest, + com.google.cloud.location.Location>(this, METHODID_GET_LOCATION))) + .build(); + } + } + + /** + * + * + *
+   * 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) { + super(channel, callOptions); + } + + @java.lang.Override + 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) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLocationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets information about a location.
+     * 
+ */ + 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); + } + } + + /** + * + * + *
+   * 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 LocationsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LocationsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LocationsBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists information about the supported locations for this service.
+     * 
+ */ + 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) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLocationMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * 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 LocationsFutureStub + extends io.grpc.stub.AbstractFutureStub { + 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) { + 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) { + 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) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); + } + } + + 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 final LocationsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(LocationsImplBase 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_LIST_LOCATIONS: + 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, + (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(); + } + } + } + + private abstract static class LocationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + LocationsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.location.LocationsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Locations"); + } + } + + private static final class LocationsFileDescriptorSupplier + extends LocationsBaseDescriptorSupplier { + LocationsFileDescriptorSupplier() {} + } + + private static final class LocationsMethodDescriptorSupplier + extends LocationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + LocationsMethodDescriptorSupplier(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 (LocationsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) + .addMethod(getListLocationsMethod()) + .addMethod(getGetLocationMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java b/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java new file mode 100644 index 000000000..9b50dc9dd --- /dev/null +++ b/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java @@ -0,0 +1,1486 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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") +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 abstract static class TranslationServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * 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.ServerCalls.asyncUnimplementedUnaryCall( + getTranslateTextMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getDetectLanguageMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getGetSupportedLanguagesMethod(), responseObserver); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void deleteGlossary( + com.google.cloud.translate.v3.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGlossaryMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, METHODID_TRANSLATE_TEXT))) + .addMethod( + getDetectLanguageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.DetectLanguageRequest, + com.google.cloud.translate.v3.DetectLanguageResponse>( + this, METHODID_DETECT_LANGUAGE))) + .addMethod( + getGetSupportedLanguagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3.SupportedLanguages>( + this, 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>( + this, METHODID_TRANSLATE_DOCUMENT))) + .addMethod( + getBatchTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.BatchTranslateTextRequest, + com.google.longrunning.Operation>(this, METHODID_BATCH_TRANSLATE_TEXT))) + .addMethod( + getBatchTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.BatchTranslateDocumentRequest, + com.google.longrunning.Operation>(this, METHODID_BATCH_TRANSLATE_DOCUMENT))) + .addMethod( + getCreateGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.CreateGlossaryRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_GLOSSARY))) + .addMethod( + getListGlossariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.ListGlossariesRequest, + com.google.cloud.translate.v3.ListGlossariesResponse>( + this, METHODID_LIST_GLOSSARIES))) + .addMethod( + getGetGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.GetGlossaryRequest, + com.google.cloud.translate.v3.Glossary>(this, METHODID_GET_GLOSSARY))) + .addMethod( + getDeleteGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3.DeleteGlossaryRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_GLOSSARY))) + .build(); + } + } + + /** + * + * + *
+   * 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); + } + } + + /** + * + * + *
+   * 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); + } + } + + /** + * + * + *
+   * 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 TranslationServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TranslationServiceImplBase 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(); + } + } + } + + 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/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java b/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java new file mode 100644 index 000000000..16f28b5c2 --- /dev/null +++ b/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java @@ -0,0 +1,476 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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
+ * [Location.metadata][google.cloud.location.Location.metadata] field.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/location/locations.proto") +public final class LocationsGrpc { + + 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; + + @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; + 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(); + } + } + } + return getListLocationsMethod; + } + + 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< + 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(); + } + } + } + return getGetLocationMethod; + } + + /** 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); + } + }; + 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) { + 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); + } + }; + 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) { + 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); + } + }; + return LocationsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * 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 { + + /** + * + * + *
+     * Lists information about the supported locations for this service.
+     * 
+ */ + public 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.
+     * 
+ */ + public void getLocation( + com.google.cloud.location.GetLocationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetLocationMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, METHODID_LIST_LOCATIONS))) + .addMethod( + getGetLocationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.location.GetLocationRequest, + com.google.cloud.location.Location>(this, METHODID_GET_LOCATION))) + .build(); + } + } + + /** + * + * + *
+   * 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) { + super(channel, callOptions); + } + + @java.lang.Override + 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) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLocationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets information about a location.
+     * 
+ */ + 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); + } + } + + /** + * + * + *
+   * 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 LocationsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LocationsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LocationsBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists information about the supported locations for this service.
+     * 
+ */ + 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) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLocationMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * 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 LocationsFutureStub + extends io.grpc.stub.AbstractFutureStub { + 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) { + 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) { + 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) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); + } + } + + 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 final LocationsImplBase serviceImpl; + private final int methodId; + + MethodHandlers(LocationsImplBase 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_LIST_LOCATIONS: + 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, + (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(); + } + } + } + + private abstract static class LocationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + LocationsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.location.LocationsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Locations"); + } + } + + private static final class LocationsFileDescriptorSupplier + extends LocationsBaseDescriptorSupplier { + LocationsFileDescriptorSupplier() {} + } + + private static final class LocationsMethodDescriptorSupplier + extends LocationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + LocationsMethodDescriptorSupplier(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 (LocationsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) + .addMethod(getListLocationsMethod()) + .addMethod(getGetLocationMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java b/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java new file mode 100644 index 000000000..f614b687e --- /dev/null +++ b/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java @@ -0,0 +1,1501 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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") +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 abstract static class TranslationServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * 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.ServerCalls.asyncUnimplementedUnaryCall( + getTranslateTextMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getDetectLanguageMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getGetSupportedLanguagesMethod(), responseObserver); + } + + /** + * + * + *
+     * Translates documents in synchronous mode.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void deleteGlossary( + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGlossaryMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, METHODID_TRANSLATE_TEXT))) + .addMethod( + getDetectLanguageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.DetectLanguageRequest, + com.google.cloud.translate.v3beta1.DetectLanguageResponse>( + this, METHODID_DETECT_LANGUAGE))) + .addMethod( + getGetSupportedLanguagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, + com.google.cloud.translate.v3beta1.SupportedLanguages>( + this, 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>( + this, METHODID_TRANSLATE_DOCUMENT))) + .addMethod( + getBatchTranslateTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, + com.google.longrunning.Operation>(this, METHODID_BATCH_TRANSLATE_TEXT))) + .addMethod( + getBatchTranslateDocumentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, + com.google.longrunning.Operation>(this, METHODID_BATCH_TRANSLATE_DOCUMENT))) + .addMethod( + getCreateGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.CreateGlossaryRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_GLOSSARY))) + .addMethod( + getListGlossariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.ListGlossariesRequest, + com.google.cloud.translate.v3beta1.ListGlossariesResponse>( + this, METHODID_LIST_GLOSSARIES))) + .addMethod( + getGetGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.GetGlossaryRequest, + com.google.cloud.translate.v3beta1.Glossary>(this, METHODID_GET_GLOSSARY))) + .addMethod( + getDeleteGlossaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_GLOSSARY))) + .build(); + } + } + + /** + * + * + *
+   * 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); + } + } + + /** + * + * + *
+   * 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); + } + } + + /** + * + * + *
+   * 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 TranslationServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TranslationServiceImplBase 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(); + } + } + } + + 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/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java deleted file mode 100644 index 0e2f7f012..000000000 --- a/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java +++ /dev/null @@ -1,1738 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.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 com.google.longrunning.OperationsClient; -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
- * 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
- * TranslationServiceSettings translationServiceSettings =
- *     TranslationServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * TranslationServiceClient translationServiceClient =
- *     TranslationServiceClient.create(translationServiceSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * TranslationServiceSettings translationServiceSettings =
- *     TranslationServiceSettings.newBuilder().setEndpoint(myEndpoint).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 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). - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - 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 = OperationsClient.create(this.stub.getOperationsStub()); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected TranslationServiceClient(TranslationServiceStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - public final TranslationServiceSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - 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 OperationsClient getOperationsClient() { - return operationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * 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 BCP-47 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 30k 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
-   * 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 BCP-47 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 30k 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
-   * 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 BCP-47 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 BCP-47 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 30k 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
-   * 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 BCP-47 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 BCP-47 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 30k 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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 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
-   * 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 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
-   * 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 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
-   * 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 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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.getResponsesList()) {
-   *       // 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java deleted file mode 100644 index 06c111dd0..000000000 --- a/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceSettings.java +++ /dev/null @@ -1,349 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.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
- * 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 ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return TranslationServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - 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 builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** 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()); - } - - 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/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/gapic_metadata.json deleted file mode 100644 index b5190737c..000000000 --- a/owl-bot-staging/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/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java deleted file mode 100644 index cfa8e6b10..000000000 --- a/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/package-info.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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
- * 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/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java deleted file mode 100644 index af90b6616..000000000 --- a/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceCallableFactory.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java deleted file mode 100644 index 60566c56c..000000000 --- a/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/GrpcTranslationServiceStub.java +++ /dev/null @@ -1,546 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.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.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 -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - detectLanguageTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(detectLanguageMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - getSupportedLanguagesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - translateDocumentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(translateDocumentMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings batchTranslateTextTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateTextMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - batchTranslateDocumentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings createGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - listGlossariesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listGlossariesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.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/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java deleted file mode 100644 index c45155df2..000000000 --- a/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStub.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); - } - - 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/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java b/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java deleted file mode 100644 index b9e464a42..000000000 --- a/owl-bot-staging/v3/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/TranslationServiceStubSettings.java +++ /dev/null @@ -1,813 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.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
- * 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; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public TranslationServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcTranslationServiceStub.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 ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - 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 defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** 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 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/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java b/owl-bot-staging/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java deleted file mode 100644 index ca034ec0f..000000000 --- a/owl-bot-staging/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java b/owl-bot-staging/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java deleted file mode 100644 index 12d195403..000000000 --- a/owl-bot-staging/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/MockTranslationServiceImpl.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java b/owl-bot-staging/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java deleted file mode 100644 index 28a2fe305..000000000 --- a/owl-bot-staging/v3/google-cloud-translate/src/test/java/com/google/cloud/translate/v3/TranslationServiceClientTest.java +++ /dev/null @@ -1,1145 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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()) - .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]"); - - 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()) - .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/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java b/owl-bot-staging/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java deleted file mode 100644 index e542931f7..000000000 --- a/owl-bot-staging/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsGrpc.java +++ /dev/null @@ -1,398 +0,0 @@ -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
- * [Location.metadata][google.cloud.location.Location.metadata] field.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/location/locations.proto") -public final class LocationsGrpc { - - 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; - - @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; - 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(); - } - } - } - return getListLocationsMethod; - } - - 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 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(); - } - } - } - return getGetLocationMethod; - } - - /** - * 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); - } - }; - 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) { - 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); - } - }; - 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) { - 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); - } - }; - return LocationsFutureStub.newStub(factory, channel); - } - - /** - *
-   * 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 { - - /** - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public 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.
-     * 
- */ - public void getLocation(com.google.cloud.location.GetLocationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLocationMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, METHODID_LIST_LOCATIONS))) - .addMethod( - getGetLocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.GetLocationRequest, - com.google.cloud.location.Location>( - this, METHODID_GET_LOCATION))) - .build(); - } - } - - /** - *
-   * 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) { - super(channel, callOptions); - } - - @java.lang.Override - 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) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets information about a location.
-     * 
- */ - 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); - } - } - - /** - *
-   * 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 LocationsBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private LocationsBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LocationsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - 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) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetLocationMethod(), getCallOptions(), request); - } - } - - /** - *
-   * 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 LocationsFutureStub extends io.grpc.stub.AbstractFutureStub { - 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) { - 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) { - 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) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); - } - } - - 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 final LocationsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(LocationsImplBase 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_LIST_LOCATIONS: - 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, - (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(); - } - } - } - - private static abstract class LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - LocationsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.location.LocationsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Locations"); - } - } - - private static final class LocationsFileDescriptorSupplier - extends LocationsBaseDescriptorSupplier { - LocationsFileDescriptorSupplier() {} - } - - private static final class LocationsMethodDescriptorSupplier - extends LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - LocationsMethodDescriptorSupplier(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 (LocationsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) - .addMethod(getListLocationsMethod()) - .addMethod(getGetLocationMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java b/owl-bot-staging/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java deleted file mode 100644 index e9692869d..000000000 --- a/owl-bot-staging/v3/grpc-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceGrpc.java +++ /dev/null @@ -1,1136 +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") -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 static abstract class TranslationServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * 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.ServerCalls.asyncUnimplementedUnaryCall(getTranslateTextMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getDetectLanguageMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getGetSupportedLanguagesMethod(), responseObserver); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void deleteGlossary(com.google.cloud.translate.v3.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGlossaryMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, METHODID_TRANSLATE_TEXT))) - .addMethod( - getDetectLanguageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.DetectLanguageRequest, - com.google.cloud.translate.v3.DetectLanguageResponse>( - this, METHODID_DETECT_LANGUAGE))) - .addMethod( - getGetSupportedLanguagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3.SupportedLanguages>( - this, 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>( - this, METHODID_TRANSLATE_DOCUMENT))) - .addMethod( - getBatchTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.BatchTranslateTextRequest, - com.google.longrunning.Operation>( - this, METHODID_BATCH_TRANSLATE_TEXT))) - .addMethod( - getBatchTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.BatchTranslateDocumentRequest, - com.google.longrunning.Operation>( - this, METHODID_BATCH_TRANSLATE_DOCUMENT))) - .addMethod( - getCreateGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.CreateGlossaryRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_GLOSSARY))) - .addMethod( - getListGlossariesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.ListGlossariesRequest, - com.google.cloud.translate.v3.ListGlossariesResponse>( - this, METHODID_LIST_GLOSSARIES))) - .addMethod( - getGetGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.GetGlossaryRequest, - com.google.cloud.translate.v3.Glossary>( - this, METHODID_GET_GLOSSARY))) - .addMethod( - getDeleteGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3.DeleteGlossaryRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_GLOSSARY))) - .build(); - } - } - - /** - *
-   * 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); - } - } - - /** - *
-   * 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); - } - } - - /** - *
-   * 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 TranslationServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(TranslationServiceImplBase 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(); - } - } - } - - 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java deleted file mode 100644 index c55d2b31a..000000000 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto - -package com.google.cloud.location; - -public interface GetLocationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.location.GetLocationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Resource name for the location.
-   * 
- * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Resource name for the location.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsProto.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsProto.java deleted file mode 100644 index 1c920051b..000000000 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsProto.java +++ /dev/null @@ -1,131 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto - -package com.google.cloud.location; - -public final class LocationsProto { - private LocationsProto() {} - 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_location_ListLocationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_ListLocationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_GetLocationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_Location_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_Location_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_Location_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%google/cloud/location/locations.proto\022" + - "\025google.cloud.location\032\034google/api/annot" + - "ations.proto\032\031google/protobuf/any.proto\032" + - "\027google/api/client.proto\"[\n\024ListLocation" + - "sRequest\022\014\n\004name\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021" + - "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"d\n" + - "\025ListLocationsResponse\0222\n\tlocations\030\001 \003(" + - "\0132\037.google.cloud.location.Location\022\027\n\017ne" + - "xt_page_token\030\002 \001(\t\"\"\n\022GetLocationReques" + - "t\022\014\n\004name\030\001 \001(\t\"\327\001\n\010Location\022\014\n\004name\030\001 \001" + - "(\t\022\023\n\013location_id\030\004 \001(\t\022\024\n\014display_name\030" + - "\005 \001(\t\022;\n\006labels\030\002 \003(\0132+.google.cloud.loc" + - "ation.Location.LabelsEntry\022&\n\010metadata\030\003" + - " \001(\0132\024.google.protobuf.Any\032-\n\013LabelsEntr" + - "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\244\003\n\tLo" + - "cations\022\253\001\n\rListLocations\022+.google.cloud" + - ".location.ListLocationsRequest\032,.google." + - "cloud.location.ListLocationsResponse\"?\202\323" + - "\344\223\0029\022\024/v1/{name=locations}Z!\022\037/v1/{name=" + - "projects/*}/locations\022\236\001\n\013GetLocation\022)." + - "google.cloud.location.GetLocationRequest" + - "\032\037.google.cloud.location.Location\"C\202\323\344\223\002" + - "=\022\026/v1/{name=locations/*}Z#\022!/v1/{name=p" + - "rojects/*/locations/*}\032H\312A\024cloud.googlea" + - "pis.com\322A.https://www.googleapis.com/aut" + - "h/cloud-platformBo\n\031com.google.cloud.loc" + - "ationB\016LocationsProtoP\001Z=google.golang.o" + - "rg/genproto/googleapis/cloud/location;lo" + - "cation\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }); - internal_static_google_cloud_location_ListLocationsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_ListLocationsRequest_descriptor, - new java.lang.String[] { "Name", "Filter", "PageSize", "PageToken", }); - internal_static_google_cloud_location_ListLocationsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_ListLocationsResponse_descriptor, - new java.lang.String[] { "Locations", "NextPageToken", }); - internal_static_google_cloud_location_GetLocationRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_GetLocationRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_location_Location_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_location_Location_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_Location_descriptor, - new java.lang.String[] { "Name", "LocationId", "DisplayName", "Labels", "Metadata", }); - internal_static_google_cloud_location_Location_LabelsEntry_descriptor = - internal_static_google_cloud_location_Location_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_Location_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java deleted file mode 100644 index cf8b52647..000000000 --- a/owl-bot-staging/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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java deleted file mode 100644 index a062efef4..000000000 --- a/owl-bot-staging/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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java deleted file mode 100644 index 741637e2d..000000000 --- a/owl-bot-staging/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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java b/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java deleted file mode 100644 index ce6d37eed..000000000 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java +++ /dev/null @@ -1,878 +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\033goog" + - "le/protobuf/empty.proto\032\037google/protobuf" + - "/timestamp.proto\032\027google/rpc/status.prot" + - "o\"N\n\033TranslateTextGlossaryConfig\022\025\n\010glos" + - "sary\030\001 \001(\tB\003\340A\002\022\030\n\013ignore_case\030\002 \001(\010B\003\340A" + - "\001\"\265\003\n\024TranslateTextRequest\022\025\n\010contents\030\001" + - " \003(\tB\003\340A\002\022\026\n\tmime_type\030\003 \001(\tB\003\340A\001\022!\n\024sou" + - "rce_language_code\030\004 \001(\tB\003\340A\001\022!\n\024target_l" + - "anguage_code\030\005 \001(\tB\003\340A\002\0229\n\006parent\030\010 \001(\tB" + - ")\340A\002\372A#\n!locations.googleapis.com/Locati" + - "on\022\022\n\005model\030\006 \001(\tB\003\340A\001\022V\n\017glossary_confi" + - "g\030\007 \001(\01328.google.cloud.translation.v3.Tr" + - "anslateTextGlossaryConfigB\003\340A\001\022R\n\006labels" + - "\030\n \003(\0132=.google.cloud.translation.v3.Tra" + - "nslateTextRequest.LabelsEntryB\003\340A\001\032-\n\013La" + - "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001\"\240\001\n\025TranslateTextResponse\022>\n\014translati" + - "ons\030\001 \003(\0132(.google.cloud.translation.v3." + - "Translation\022G\n\025glossary_translations\030\003 \003" + - "(\0132(.google.cloud.translation.v3.Transla" + - "tion\"\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_languag" + - "e_code\030\004 \001(\t\022Q\n\017glossary_config\030\003 \001(\01328." + - "google.cloud.translation.v3.TranslateTex" + - "tGlossaryConfig\"\237\002\n\025DetectLanguageReques" + - "t\0229\n\006parent\030\005 \001(\tB)\340A\002\372A#\n!locations.goo" + - "gleapis.com/Location\022\022\n\005model\030\004 \001(\tB\003\340A\001" + - "\022\021\n\007content\030\001 \001(\tH\000\022\026\n\tmime_type\030\003 \001(\tB\003" + - "\340A\001\022S\n\006labels\030\006 \003(\0132>.google.cloud.trans" + - "lation.v3.DetectLanguageRequest.LabelsEn" + - "tryB\003\340A\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\"\221\001\n\034GetSupportedLan" + - "guagesRequest\0229\n\006parent\030\003 \001(\tB)\340A\002\372A#\n!l" + - "ocations.googleapis.com/Location\022\"\n\025disp" + - "lay_language_code\030\001 \001(\tB\003\340A\001\022\022\n\005model\030\002 " + - "\001(\tB\003\340A\001\"W\n\022SupportedLanguages\022A\n\tlangua" + - "ges\030\001 \003(\0132..google.cloud.translation.v3." + - "SupportedLanguage\"p\n\021SupportedLanguage\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\016support_t" + - "arget\030\004 \001(\010\"#\n\tGcsSource\022\026\n\tinput_uri\030\001 " + - "\001(\tB\003\340A\002\"m\n\013InputConfig\022\026\n\tmime_type\030\001 \001" + - "(\tB\003\340A\001\022<\n\ngcs_source\030\002 \001(\0132&.google.clo" + - "ud.translation.v3.GcsSourceH\000B\010\n\006source\"" + - "0\n\016GcsDestination\022\036\n\021output_uri_prefix\030\001" + - " \001(\tB\003\340A\002\"e\n\014OutputConfig\022F\n\017gcs_destina" + - "tion\030\001 \001(\0132+.google.cloud.translation.v3" + - ".GcsDestinationH\000B\r\n\013destination\"\203\001\n\023Doc" + - "umentInputConfig\022\021\n\007content\030\001 \001(\014H\000\022<\n\ng" + - "cs_source\030\002 \001(\0132&.google.cloud.translati" + - "on.v3.GcsSourceH\000\022\021\n\tmime_type\030\004 \001(\tB\010\n\006" + - "source\"\212\001\n\024DocumentOutputConfig\022K\n\017gcs_d" + - "estination\030\001 \001(\0132+.google.cloud.translat" + - "ion.v3.GcsDestinationB\003\340A\001H\000\022\026\n\tmime_typ" + - "e\030\003 \001(\tB\003\340A\001B\r\n\013destination\"\226\004\n\030Translat" + - "eDocumentRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022!\n" + - "\024source_language_code\030\002 \001(\tB\003\340A\001\022!\n\024targ" + - "et_language_code\030\003 \001(\tB\003\340A\002\022T\n\025document_" + - "input_config\030\004 \001(\01320.google.cloud.transl" + - "ation.v3.DocumentInputConfigB\003\340A\002\022V\n\026doc" + - "ument_output_config\030\005 \001(\01321.google.cloud" + - ".translation.v3.DocumentOutputConfigB\003\340A" + - "\001\022\022\n\005model\030\006 \001(\tB\003\340A\001\022V\n\017glossary_config" + - "\030\007 \001(\01328.google.cloud.translation.v3.Tra" + - "nslateTextGlossaryConfigB\003\340A\001\022V\n\006labels\030" + - "\010 \003(\0132A.google.cloud.translation.v3.Tran" + - "slateDocumentRequest.LabelsEntryB\003\340A\001\032-\n" + - "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + - ":\0028\001\"e\n\023DocumentTranslation\022\033\n\023byte_stre" + - "am_outputs\030\001 \003(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026d" + - "etected_language_code\030\003 \001(\t\"\246\002\n\031Translat" + - "eDocumentResponse\022N\n\024document_translatio" + - "n\030\001 \001(\01320.google.cloud.translation.v3.Do" + - "cumentTranslation\022W\n\035glossary_document_t" + - "ranslation\030\002 \001(\01320.google.cloud.translat" + - "ion.v3.DocumentTranslation\022\r\n\005model\030\003 \001(" + - "\t\022Q\n\017glossary_config\030\004 \001(\01328.google.clou" + - "d.translation.v3.TranslateTextGlossaryCo" + - "nfig\"\210\006\n\031BatchTranslateTextRequest\0229\n\006pa" + - "rent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis" + - ".com/Location\022!\n\024source_language_code\030\002 " + - "\001(\tB\003\340A\002\022\"\n\025target_language_codes\030\003 \003(\tB" + - "\003\340A\002\022W\n\006models\030\004 \003(\0132B.google.cloud.tran" + - "slation.v3.BatchTranslateTextRequest.Mod" + - "elsEntryB\003\340A\001\022D\n\rinput_configs\030\005 \003(\0132(.g" + - "oogle.cloud.translation.v3.InputConfigB\003" + - "\340A\002\022E\n\routput_config\030\006 \001(\0132).google.clou" + - "d.translation.v3.OutputConfigB\003\340A\002\022_\n\ngl" + - "ossaries\030\007 \003(\0132F.google.cloud.translatio" + - "n.v3.BatchTranslateTextRequest.Glossarie" + - "sEntryB\003\340A\001\022W\n\006labels\030\t \003(\0132B.google.clo" + - "ud.translation.v3.BatchTranslateTextRequ" + - "est.LabelsEntryB\003\340A\001\032-\n\013ModelsEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017Glossarie" + - "sEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(\01328.goo" + - "gle.cloud.translation.v3.TranslateTextGl" + - "ossaryConfig:\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\026BatchTransla" + - "teMetadata\022H\n\005state\030\001 \001(\01629.google.cloud" + - ".translation.v3.BatchTranslateMetadata.S" + - "tate\022\035\n\025translated_characters\030\002 \001(\003\022\031\n\021f" + - "ailed_characters\030\003 \001(\003\022\030\n\020total_characte" + - "rs\030\004 \001(\003\022/\n\013submit_time\030\005 \001(\0132\032.google.p" + - "rotobuf.Timestamp\"e\n\005State\022\025\n\021STATE_UNSP" + - "ECIFIED\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" + - "\"\313\001\n\026BatchTranslateResponse\022\030\n\020total_cha" + - "racters\030\001 \001(\003\022\035\n\025translated_characters\030\002" + - " \001(\003\022\031\n\021failed_characters\030\003 \001(\003\022/\n\013submi" + - "t_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + - "\022,\n\010end_time\030\005 \001(\0132\032.google.protobuf.Tim" + - "estamp\"]\n\023GlossaryInputConfig\022<\n\ngcs_sou" + - "rce\030\001 \001(\0132&.google.cloud.translation.v3." + - "GcsSourceH\000B\010\n\006source\"\377\004\n\010Glossary\022\021\n\004na" + - "me\030\001 \001(\tB\003\340A\002\022O\n\rlanguage_pair\030\003 \001(\01326.g" + - "oogle.cloud.translation.v3.Glossary.Lang" + - "uageCodePairH\000\022T\n\022language_codes_set\030\004 \001" + - "(\01326.google.cloud.translation.v3.Glossar" + - "y.LanguageCodesSetH\000\022F\n\014input_config\030\005 \001" + - "(\01320.google.cloud.translation.v3.Glossar" + - "yInputConfig\022\030\n\013entry_count\030\006 \001(\005B\003\340A\003\0224" + - "\n\013submit_time\030\007 \001(\0132\032.google.protobuf.Ti" + - "mestampB\003\340A\003\0221\n\010end_time\030\010 \001(\0132\032.google." + - "protobuf.TimestampB\003\340A\003\032N\n\020LanguageCodeP" + - "air\022\034\n\024source_language_code\030\001 \001(\t\022\034\n\024tar" + - "get_language_code\030\002 \001(\t\032*\n\020LanguageCodes" + - "Set\022\026\n\016language_codes\030\001 \003(\t:e\352Ab\n!transl" + - "ate.googleapis.com/Glossary\022=projects/{p" + - "roject}/locations/{location}/glossaries/" + - "{glossary}B\013\n\tlanguages\"\220\001\n\025CreateGlossa" + - "ryRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locat" + - "ions.googleapis.com/Location\022<\n\010glossary" + - "\030\002 \001(\0132%.google.cloud.translation.v3.Glo" + - "ssaryB\003\340A\002\"M\n\022GetGlossaryRequest\0227\n\004name" + - "\030\001 \001(\tB)\340A\002\372A#\n!translate.googleapis.com" + - "/Glossary\"P\n\025DeleteGlossaryRequest\0227\n\004na" + - "me\030\001 \001(\tB)\340A\002\372A#\n!translate.googleapis.c" + - "om/Glossary\"\230\001\n\025ListGlossariesRequest\0229\n" + - "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" + - "pis.com/Location\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001" + - "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(" + - "\tB\003\340A\001\"l\n\026ListGlossariesResponse\0229\n\nglos" + - "saries\030\001 \003(\0132%.google.cloud.translation." + - "v3.Glossary\022\027\n\017next_page_token\030\002 \001(\t\"\210\002\n" + - "\026CreateGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022H\n" + - "\005state\030\002 \001(\01629.google.cloud.translation." + - "v3.CreateGlossaryMetadata.State\022/\n\013submi" + - "t_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + - "\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNN" + - "ING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANC" + - "ELLING\020\004\022\r\n\tCANCELLED\020\005\"\210\002\n\026DeleteGlossa" + - "ryMetadata\022\014\n\004name\030\001 \001(\t\022H\n\005state\030\002 \001(\0162" + - "9.google.cloud.translation.v3.DeleteGlos" + - "saryMetadata.State\022/\n\013submit_time\030\003 \001(\0132" + - "\032.google.protobuf.Timestamp\"e\n\005State\022\025\n\021" + - "STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCC" + - "EEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tC" + - "ANCELLED\020\005\"\205\001\n\026DeleteGlossaryResponse\022\014\n" + - "\004name\030\001 \001(\t\022/\n\013submit_time\030\002 \001(\0132\032.googl" + - "e.protobuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032" + - ".google.protobuf.Timestamp\"\324\006\n\035BatchTran" + - "slateDocumentRequest\0229\n\006parent\030\001 \001(\tB)\340A" + - "\002\372A#\n!locations.googleapis.com/Location\022" + - "!\n\024source_language_code\030\002 \001(\tB\003\340A\002\022\"\n\025ta" + - "rget_language_codes\030\003 \003(\tB\003\340A\002\022Q\n\rinput_" + - "configs\030\004 \003(\01325.google.cloud.translation" + - ".v3.BatchDocumentInputConfigB\003\340A\002\022R\n\rout" + - "put_config\030\005 \001(\01326.google.cloud.translat" + - "ion.v3.BatchDocumentOutputConfigB\003\340A\002\022[\n" + - "\006models\030\006 \003(\0132F.google.cloud.translation" + - ".v3.BatchTranslateDocumentRequest.Models" + - "EntryB\003\340A\001\022c\n\nglossaries\030\007 \003(\0132J.google." + - "cloud.translation.v3.BatchTranslateDocum" + - "entRequest.GlossariesEntryB\003\340A\001\022r\n\022forma" + - "t_conversions\030\010 \003(\0132Q.google.cloud.trans" + - "lation.v3.BatchTranslateDocumentRequest." + - "FormatConversionsEntryB\003\340A\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\202" + - "\323\344\223\002b\"1/v3/{parent=projects/*/locations/" + - "*}:translateText:\001*Z*\"%/v3/{parent=proje" + - "cts/*}:translateText:\001*\332A$parent,target_" + - "language_code,contents\332AIparent,model,mi" + - "me_type,source_language_code,target_lang" + - "uage_code,contents\022\207\002\n\016DetectLanguage\0222." + - "google.cloud.translation.v3.DetectLangua" + - "geRequest\0323.google.cloud.translation.v3." + - "DetectLanguageResponse\"\213\001\202\323\344\223\002d\"2/v3/{pa" + - "rent=projects/*/locations/*}:detectLangu" + - "age:\001*Z+\"&/v3/{parent=projects/*}:detect" + - "Language:\001*\332A\036parent,model,mime_type,con" + - "tent\022\227\002\n\025GetSupportedLanguages\0229.google." + - "cloud.translation.v3.GetSupportedLanguag" + - "esRequest\032/.google.cloud.translation.v3." + - "SupportedLanguages\"\221\001\202\323\344\223\002f\0226/v3/{parent" + - "=projects/*/locations/*}/supportedLangua" + - "gesZ,\022*/v3/{parent=projects/*}/supported" + - "Languages\332A\"parent,model,display_languag" + - "e_code\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\202\323\344" + - "\223\002;\"6/v3/{parent=projects/*/locations/*}" + - ":batchTranslateText:\001*\312A0\n\026BatchTranslat" + - "eResponse\022\026BatchTranslateMetadata\022\316\002\n\026Ba" + - "tchTranslateDocument\022:.google.cloud.tran" + - "slation.v3.BatchTranslateDocumentRequest" + - "\032\035.google.longrunning.Operation\"\330\001\202\323\344\223\002?" + - "\":/v3/{parent=projects/*/locations/*}:ba" + - "tchTranslateDocument:\001*\332AMparent,source_" + - "language_code,target_language_codes,inpu" + - "t_configs,output_config\312A@\n\036BatchTransla" + - "teDocumentResponse\022\036BatchTranslateDocume" + - "ntMetadata\022\334\001\n\016CreateGlossary\0222.google.c" + - "loud.translation.v3.CreateGlossaryReques" + - "t\032\035.google.longrunning.Operation\"w\202\323\344\223\002:" + - "\"./v3/{parent=projects/*/locations/*}/gl" + - "ossaries:\010glossary\332A\017parent,glossary\312A\"\n" + - "\010Glossary\022\026CreateGlossaryMetadata\022\272\001\n\016Li" + - "stGlossaries\0222.google.cloud.translation." + - "v3.ListGlossariesRequest\0323.google.cloud." + - "translation.v3.ListGlossariesResponse\"?\202" + - "\323\344\223\0020\022./v3/{parent=projects/*/locations/" + - "*}/glossaries\332A\006parent\022\244\001\n\013GetGlossary\022/" + - ".google.cloud.translation.v3.GetGlossary" + - "Request\032%.google.cloud.translation.v3.Gl" + - "ossary\"=\202\323\344\223\0020\022./v3/{name=projects/*/loc" + - "ations/*/glossaries/*}\332A\004name\022\325\001\n\016Delete" + - "Glossary\0222.google.cloud.translation.v3.D" + - "eleteGlossaryRequest\032\035.google.longrunnin" + - "g.Operation\"p\202\323\344\223\0020*./v3/{name=projects/" + - "*/locations/*/glossaries/*}\332A\004name\312A0\n\026D" + - "eleteGlossaryResponse\022\026DeleteGlossaryMet" + - "adata\032~\312A\030translate.googleapis.com\322A`htt" + - "ps://www.googleapis.com/auth/cloud-platf" + - "orm,https://www.googleapis.com/auth/clou" + - "d-translationB\330\001\n\035com.google.cloud.trans" + - "late.v3B\027TranslationServiceProtoP\001ZBgoog" + - "le.golang.org/genproto/googleapis/cloud/" + - "translate/v3;translate\370\001\001\252\002\031Google.Cloud" + - ".Translate.V3\312\002\031Google\\Cloud\\Translate\\V" + - "3\352\002\034Google::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.EmptyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.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", }); - 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", "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", }); - 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.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java deleted file mode 100644 index d8beaef89..000000000 --- a/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java +++ /dev/null @@ -1,1547 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.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 com.google.longrunning.OperationsClient; -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
- * 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
- * TranslationServiceSettings translationServiceSettings =
- *     TranslationServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * TranslationServiceClient translationServiceClient =
- *     TranslationServiceClient.create(translationServiceSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * TranslationServiceSettings translationServiceSettings =
- *     TranslationServiceSettings.newBuilder().setEndpoint(myEndpoint).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 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). - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - 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 = OperationsClient.create(this.stub.getOperationsStub()); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected TranslationServiceClient(TranslationServiceStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - public final TranslationServiceSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - 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 OperationsClient getOperationsClient() { - return operationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Translates input text and returns translated text. - * - *

Sample code: - * - *

{@code
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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.getResponsesList()) {
-   *       // 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java deleted file mode 100644 index 29a4902d4..000000000 --- a/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceSettings.java +++ /dev/null @@ -1,350 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.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
- * 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 ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return TranslationServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - 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 builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** 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()); - } - - 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/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/gapic_metadata.json deleted file mode 100644 index 5cf5bb902..000000000 --- a/owl-bot-staging/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/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java deleted file mode 100644 index 0ad0dca68..000000000 --- a/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/package-info.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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
- * 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/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java deleted file mode 100644 index 6aabfef29..000000000 --- a/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java deleted file mode 100644 index 3295b1907..000000000 --- a/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/GrpcTranslationServiceStub.java +++ /dev/null @@ -1,554 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.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.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 -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - detectLanguageTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(detectLanguageMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - getSupportedLanguagesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getSupportedLanguagesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - translateDocumentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(translateDocumentMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings batchTranslateTextTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateTextMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - batchTranslateDocumentTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchTranslateDocumentMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings createGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - listGlossariesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listGlossariesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteGlossaryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteGlossaryMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.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/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java deleted file mode 100644 index 5e1ebe6e2..000000000 --- a/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStub.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); - } - - 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/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java deleted file mode 100644 index b2f51e47c..000000000 --- a/owl-bot-staging/v3beta1/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/TranslationServiceStubSettings.java +++ /dev/null @@ -1,814 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.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
- * 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; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public TranslationServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcTranslationServiceStub.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 ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - 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 defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(TranslationServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** 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 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/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java deleted file mode 100644 index 43bb5a31d..000000000 --- a/owl-bot-staging/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java deleted file mode 100644 index e5f98b076..000000000 --- a/owl-bot-staging/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/MockTranslationServiceImpl.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java b/owl-bot-staging/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java deleted file mode 100644 index 2a0bcd334..000000000 --- a/owl-bot-staging/v3beta1/google-cloud-translate/src/test/java/com/google/cloud/translate/v3beta1/TranslationServiceClientTest.java +++ /dev/null @@ -1,1005 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java b/owl-bot-staging/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java deleted file mode 100644 index e542931f7..000000000 --- a/owl-bot-staging/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsGrpc.java +++ /dev/null @@ -1,398 +0,0 @@ -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
- * [Location.metadata][google.cloud.location.Location.metadata] field.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/location/locations.proto") -public final class LocationsGrpc { - - 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; - - @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; - 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(); - } - } - } - return getListLocationsMethod; - } - - 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 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(); - } - } - } - return getGetLocationMethod; - } - - /** - * 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); - } - }; - 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) { - 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); - } - }; - 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) { - 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); - } - }; - return LocationsFutureStub.newStub(factory, channel); - } - - /** - *
-   * 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 { - - /** - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public 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.
-     * 
- */ - public void getLocation(com.google.cloud.location.GetLocationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLocationMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, METHODID_LIST_LOCATIONS))) - .addMethod( - getGetLocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.GetLocationRequest, - com.google.cloud.location.Location>( - this, METHODID_GET_LOCATION))) - .build(); - } - } - - /** - *
-   * 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) { - super(channel, callOptions); - } - - @java.lang.Override - 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) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets information about a location.
-     * 
- */ - 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); - } - } - - /** - *
-   * 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 LocationsBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private LocationsBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LocationsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - 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) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetLocationMethod(), getCallOptions(), request); - } - } - - /** - *
-   * 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 LocationsFutureStub extends io.grpc.stub.AbstractFutureStub { - 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) { - 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) { - 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) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); - } - } - - 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 final LocationsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(LocationsImplBase 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_LIST_LOCATIONS: - 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, - (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(); - } - } - } - - private static abstract class LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - LocationsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.location.LocationsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Locations"); - } - } - - private static final class LocationsFileDescriptorSupplier - extends LocationsBaseDescriptorSupplier { - LocationsFileDescriptorSupplier() {} - } - - private static final class LocationsMethodDescriptorSupplier - extends LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - LocationsMethodDescriptorSupplier(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 (LocationsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) - .addMethod(getListLocationsMethod()) - .addMethod(getGetLocationMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java b/owl-bot-staging/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java deleted file mode 100644 index ce42a13ab..000000000 --- a/owl-bot-staging/v3beta1/grpc-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceGrpc.java +++ /dev/null @@ -1,1136 +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") -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 static abstract class TranslationServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * 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.ServerCalls.asyncUnimplementedUnaryCall(getTranslateTextMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getDetectLanguageMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getGetSupportedLanguagesMethod(), responseObserver); - } - - /** - *
-     * Translates documents in synchronous mode.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void deleteGlossary(com.google.cloud.translate.v3beta1.DeleteGlossaryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGlossaryMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, METHODID_TRANSLATE_TEXT))) - .addMethod( - getDetectLanguageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.DetectLanguageRequest, - com.google.cloud.translate.v3beta1.DetectLanguageResponse>( - this, METHODID_DETECT_LANGUAGE))) - .addMethod( - getGetSupportedLanguagesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest, - com.google.cloud.translate.v3beta1.SupportedLanguages>( - this, 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>( - this, METHODID_TRANSLATE_DOCUMENT))) - .addMethod( - getBatchTranslateTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.BatchTranslateTextRequest, - com.google.longrunning.Operation>( - this, METHODID_BATCH_TRANSLATE_TEXT))) - .addMethod( - getBatchTranslateDocumentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest, - com.google.longrunning.Operation>( - this, METHODID_BATCH_TRANSLATE_DOCUMENT))) - .addMethod( - getCreateGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.CreateGlossaryRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_GLOSSARY))) - .addMethod( - getListGlossariesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.ListGlossariesRequest, - com.google.cloud.translate.v3beta1.ListGlossariesResponse>( - this, METHODID_LIST_GLOSSARIES))) - .addMethod( - getGetGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.GetGlossaryRequest, - com.google.cloud.translate.v3beta1.Glossary>( - this, METHODID_GET_GLOSSARY))) - .addMethod( - getDeleteGlossaryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.translate.v3beta1.DeleteGlossaryRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_GLOSSARY))) - .build(); - } - } - - /** - *
-   * 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); - } - } - - /** - *
-   * 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); - } - } - - /** - *
-   * 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 TranslationServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(TranslationServiceImplBase 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(); - } - } - } - - 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java deleted file mode 100644 index c55d2b31a..000000000 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto - -package com.google.cloud.location; - -public interface GetLocationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.location.GetLocationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Resource name for the location.
-   * 
- * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Resource name for the location.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsProto.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsProto.java deleted file mode 100644 index 1c920051b..000000000 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsProto.java +++ /dev/null @@ -1,131 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/location/locations.proto - -package com.google.cloud.location; - -public final class LocationsProto { - private LocationsProto() {} - 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_location_ListLocationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_ListLocationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_GetLocationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_Location_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_Location_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_Location_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%google/cloud/location/locations.proto\022" + - "\025google.cloud.location\032\034google/api/annot" + - "ations.proto\032\031google/protobuf/any.proto\032" + - "\027google/api/client.proto\"[\n\024ListLocation" + - "sRequest\022\014\n\004name\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021" + - "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"d\n" + - "\025ListLocationsResponse\0222\n\tlocations\030\001 \003(" + - "\0132\037.google.cloud.location.Location\022\027\n\017ne" + - "xt_page_token\030\002 \001(\t\"\"\n\022GetLocationReques" + - "t\022\014\n\004name\030\001 \001(\t\"\327\001\n\010Location\022\014\n\004name\030\001 \001" + - "(\t\022\023\n\013location_id\030\004 \001(\t\022\024\n\014display_name\030" + - "\005 \001(\t\022;\n\006labels\030\002 \003(\0132+.google.cloud.loc" + - "ation.Location.LabelsEntry\022&\n\010metadata\030\003" + - " \001(\0132\024.google.protobuf.Any\032-\n\013LabelsEntr" + - "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\244\003\n\tLo" + - "cations\022\253\001\n\rListLocations\022+.google.cloud" + - ".location.ListLocationsRequest\032,.google." + - "cloud.location.ListLocationsResponse\"?\202\323" + - "\344\223\0029\022\024/v1/{name=locations}Z!\022\037/v1/{name=" + - "projects/*}/locations\022\236\001\n\013GetLocation\022)." + - "google.cloud.location.GetLocationRequest" + - "\032\037.google.cloud.location.Location\"C\202\323\344\223\002" + - "=\022\026/v1/{name=locations/*}Z#\022!/v1/{name=p" + - "rojects/*/locations/*}\032H\312A\024cloud.googlea" + - "pis.com\322A.https://www.googleapis.com/aut" + - "h/cloud-platformBo\n\031com.google.cloud.loc" + - "ationB\016LocationsProtoP\001Z=google.golang.o" + - "rg/genproto/googleapis/cloud/location;lo" + - "cation\370\001\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }); - internal_static_google_cloud_location_ListLocationsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_ListLocationsRequest_descriptor, - new java.lang.String[] { "Name", "Filter", "PageSize", "PageToken", }); - internal_static_google_cloud_location_ListLocationsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_ListLocationsResponse_descriptor, - new java.lang.String[] { "Locations", "NextPageToken", }); - internal_static_google_cloud_location_GetLocationRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_GetLocationRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_location_Location_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_location_Location_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_Location_descriptor, - new java.lang.String[] { "Name", "LocationId", "DisplayName", "Labels", "Metadata", }); - internal_static_google_cloud_location_Location_LabelsEntry_descriptor = - internal_static_google_cloud_location_Location_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_Location_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java deleted file mode 100644 index 148408b6d..000000000 --- a/owl-bot-staging/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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java deleted file mode 100644 index 028576107..000000000 --- a/owl-bot-staging/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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java deleted file mode 100644 index 28d83bb94..000000000 --- a/owl-bot-staging/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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java b/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java deleted file mode 100644 index 44f96b530..000000000 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java +++ /dev/null @@ -1,883 +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\032\027g" + - "oogle/rpc/status.proto\"N\n\033TranslateTextG" + - "lossaryConfig\022\025\n\010glossary\030\001 \001(\tB\003\340A\002\022\030\n\013" + - "ignore_case\030\002 \001(\010B\003\340A\001\"\277\003\n\024TranslateText" + - "Request\022\025\n\010contents\030\001 \003(\tB\003\340A\002\022\026\n\tmime_t" + - "ype\030\003 \001(\tB\003\340A\001\022!\n\024source_language_code\030\004" + - " \001(\tB\003\340A\001\022!\n\024target_language_code\030\005 \001(\tB" + - "\003\340A\002\0229\n\006parent\030\010 \001(\tB)\340A\002\372A#\n!locations." + - "googleapis.com/Location\022\022\n\005model\030\006 \001(\tB\003" + - "\340A\001\022[\n\017glossary_config\030\007 \001(\0132=.google.cl" + - "oud.translation.v3beta1.TranslateTextGlo" + - "ssaryConfigB\003\340A\001\022W\n\006labels\030\n \003(\0132B.googl" + - "e.cloud.translation.v3beta1.TranslateTex" + - "tRequest.LabelsEntryB\003\340A\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\025Tra" + - "nslateTextResponse\022C\n\014translations\030\001 \003(\013" + - "2-.google.cloud.translation.v3beta1.Tran" + - "slation\022L\n\025glossary_translations\030\003 \003(\0132-" + - ".google.cloud.translation.v3beta1.Transl" + - "ation\"\255\001\n\013Translation\022\027\n\017translated_text" + - "\030\001 \001(\t\022\r\n\005model\030\002 \001(\t\022\036\n\026detected_langua" + - "ge_code\030\004 \001(\t\022V\n\017glossary_config\030\003 \001(\0132=" + - ".google.cloud.translation.v3beta1.Transl" + - "ateTextGlossaryConfig\"\244\002\n\025DetectLanguage" + - "Request\0229\n\006parent\030\005 \001(\tB)\340A\002\372A#\n!locatio" + - "ns.googleapis.com/Location\022\022\n\005model\030\004 \001(" + - "\tB\003\340A\001\022\021\n\007content\030\001 \001(\tH\000\022\026\n\tmime_type\030\003" + - " \001(\tB\003\340A\001\022X\n\006labels\030\006 \003(\0132C.google.cloud" + - ".translation.v3beta1.DetectLanguageReque" + - "st.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020" + - "DetectedLanguage\022\025\n\rlanguage_code\030\001 \001(\t\022" + - "\022\n\nconfidence\030\002 \001(\002\"_\n\026DetectLanguageRes" + - "ponse\022E\n\tlanguages\030\001 \003(\01322.google.cloud." + - "translation.v3beta1.DetectedLanguage\"\221\001\n" + - "\034GetSupportedLanguagesRequest\0229\n\006parent\030" + - "\003 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + - "Location\022\"\n\025display_language_code\030\001 \001(\tB" + - "\003\340A\001\022\022\n\005model\030\002 \001(\tB\003\340A\001\"\\\n\022SupportedLan" + - "guages\022F\n\tlanguages\030\001 \003(\01323.google.cloud" + - ".translation.v3beta1.SupportedLanguage\"p" + - "\n\021SupportedLanguage\022\025\n\rlanguage_code\030\001 \001" + - "(\t\022\024\n\014display_name\030\002 \001(\t\022\026\n\016support_sour" + - "ce\030\003 \001(\010\022\026\n\016support_target\030\004 \001(\010\"#\n\tGcsS" + - "ource\022\026\n\tinput_uri\030\001 \001(\tB\003\340A\002\"r\n\013InputCo" + - "nfig\022\026\n\tmime_type\030\001 \001(\tB\003\340A\001\022A\n\ngcs_sour" + - "ce\030\002 \001(\0132+.google.cloud.translation.v3be" + - "ta1.GcsSourceH\000B\010\n\006source\"0\n\016GcsDestinat" + - "ion\022\036\n\021output_uri_prefix\030\001 \001(\tB\003\340A\002\"j\n\014O" + - "utputConfig\022K\n\017gcs_destination\030\001 \001(\01320.g" + - "oogle.cloud.translation.v3beta1.GcsDesti" + - "nationH\000B\r\n\013destination\"\210\001\n\023DocumentInpu" + - "tConfig\022\021\n\007content\030\001 \001(\014H\000\022A\n\ngcs_source" + - "\030\002 \001(\0132+.google.cloud.translation.v3beta" + - "1.GcsSourceH\000\022\021\n\tmime_type\030\004 \001(\tB\010\n\006sour" + - "ce\"\217\001\n\024DocumentOutputConfig\022P\n\017gcs_desti" + - "nation\030\001 \001(\01320.google.cloud.translation." + - "v3beta1.GcsDestinationB\003\340A\001H\000\022\026\n\tmime_ty" + - "pe\030\003 \001(\tB\003\340A\001B\r\n\013destination\"\252\004\n\030Transla" + - "teDocumentRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022!" + - "\n\024source_language_code\030\002 \001(\tB\003\340A\001\022!\n\024tar" + - "get_language_code\030\003 \001(\tB\003\340A\002\022Y\n\025document" + - "_input_config\030\004 \001(\01325.google.cloud.trans" + - "lation.v3beta1.DocumentInputConfigB\003\340A\002\022" + - "[\n\026document_output_config\030\005 \001(\01326.google" + - ".cloud.translation.v3beta1.DocumentOutpu" + - "tConfigB\003\340A\001\022\022\n\005model\030\006 \001(\tB\003\340A\001\022[\n\017glos" + - "sary_config\030\007 \001(\0132=.google.cloud.transla" + - "tion.v3beta1.TranslateTextGlossaryConfig" + - "B\003\340A\001\022[\n\006labels\030\010 \003(\0132F.google.cloud.tra" + - "nslation.v3beta1.TranslateDocumentReques" + - "t.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key" + - "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023DocumentTra" + - "nslation\022\033\n\023byte_stream_outputs\030\001 \003(\014\022\021\n" + - "\tmime_type\030\002 \001(\t\022\036\n\026detected_language_co" + - "de\030\003 \001(\t\"\265\002\n\031TranslateDocumentResponse\022S" + - "\n\024document_translation\030\001 \001(\01325.google.cl" + - "oud.translation.v3beta1.DocumentTranslat" + - "ion\022\\\n\035glossary_document_translation\030\002 \001" + - "(\01325.google.cloud.translation.v3beta1.Do" + - "cumentTranslation\022\r\n\005model\030\003 \001(\t\022V\n\017glos" + - "sary_config\030\004 \001(\0132=.google.cloud.transla" + - "tion.v3beta1.TranslateTextGlossaryConfig" + - "\"\246\006\n\031BatchTranslateTextRequest\0229\n\006parent" + - "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" + - "/Location\022!\n\024source_language_code\030\002 \001(\tB" + - "\003\340A\002\022\"\n\025target_language_codes\030\003 \003(\tB\003\340A\002" + - "\022\\\n\006models\030\004 \003(\0132G.google.cloud.translat" + - "ion.v3beta1.BatchTranslateTextRequest.Mo" + - "delsEntryB\003\340A\001\022I\n\rinput_configs\030\005 \003(\0132-." + - "google.cloud.translation.v3beta1.InputCo" + - "nfigB\003\340A\002\022J\n\routput_config\030\006 \001(\0132..googl" + - "e.cloud.translation.v3beta1.OutputConfig" + - "B\003\340A\002\022d\n\nglossaries\030\007 \003(\0132K.google.cloud" + - ".translation.v3beta1.BatchTranslateTextR" + - "equest.GlossariesEntryB\003\340A\001\022\\\n\006labels\030\t " + - "\003(\0132G.google.cloud.translation.v3beta1.B" + - "atchTranslateTextRequest.LabelsEntryB\003\340A" + - "\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.cloud.translati" + - "on.v3beta1.TranslateTextGlossaryConfig:\002" + - "8\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\026BatchTranslateMetadata\022M\n\005" + - "state\030\001 \001(\0162>.google.cloud.translation.v" + - "3beta1.BatchTranslateMetadata.State\022\035\n\025t" + - "ranslated_characters\030\002 \001(\003\022\031\n\021failed_cha" + - "racters\030\003 \001(\003\022\030\n\020total_characters\030\004 \001(\003\022" + - "/\n\013submit_time\030\005 \001(\0132\032.google.protobuf.T" + - "imestamp\"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\tCANCELLED\020\005\"\313\001\n\026Batc" + - "hTranslateResponse\022\030\n\020total_characters\030\001" + - " \001(\003\022\035\n\025translated_characters\030\002 \001(\003\022\031\n\021f" + - "ailed_characters\030\003 \001(\003\022/\n\013submit_time\030\004 " + - "\001(\0132\032.google.protobuf.Timestamp\022,\n\010end_t" + - "ime\030\005 \001(\0132\032.google.protobuf.Timestamp\"b\n" + - "\023GlossaryInputConfig\022A\n\ngcs_source\030\001 \001(\013" + - "2+.google.cloud.translation.v3beta1.GcsS" + - "ourceH\000B\010\n\006source\"\216\005\n\010Glossary\022\021\n\004name\030\001" + - " \001(\tB\003\340A\002\022T\n\rlanguage_pair\030\003 \001(\0132;.googl" + - "e.cloud.translation.v3beta1.Glossary.Lan" + - "guageCodePairH\000\022Y\n\022language_codes_set\030\004 " + - "\001(\0132;.google.cloud.translation.v3beta1.G" + - "lossary.LanguageCodesSetH\000\022K\n\014input_conf" + - "ig\030\005 \001(\01325.google.cloud.translation.v3be" + - "ta1.GlossaryInputConfig\022\030\n\013entry_count\030\006" + - " \001(\005B\003\340A\003\0224\n\013submit_time\030\007 \001(\0132\032.google." + - "protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\010 \001(" + - "\0132\032.google.protobuf.TimestampB\003\340A\003\032N\n\020La" + - "nguageCodePair\022\034\n\024source_language_code\030\001" + - " \001(\t\022\034\n\024target_language_code\030\002 \001(\t\032*\n\020La" + - "nguageCodesSet\022\026\n\016language_codes\030\001 \003(\t:e" + - "\352Ab\n!translate.googleapis.com/Glossary\022=" + - "projects/{project}/locations/{location}/" + - "glossaries/{glossary}B\013\n\tlanguages\"\225\001\n\025C" + - "reateGlossaryRequest\0229\n\006parent\030\001 \001(\tB)\340A" + - "\002\372A#\n!locations.googleapis.com/Location\022" + - "A\n\010glossary\030\002 \001(\0132*.google.cloud.transla" + - "tion.v3beta1.GlossaryB\003\340A\002\"M\n\022GetGlossar" + - "yRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!translat" + - "e.googleapis.com/Glossary\"P\n\025DeleteGloss" + - "aryRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!transl" + - "ate.googleapis.com/Glossary\"\230\001\n\025ListGlos" + - "sariesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!l" + - "ocations.googleapis.com/Location\022\026\n\tpage" + - "_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A" + - "\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"q\n\026ListGlossaries" + - "Response\022>\n\nglossaries\030\001 \003(\0132*.google.cl" + - "oud.translation.v3beta1.Glossary\022\027\n\017next" + - "_page_token\030\002 \001(\t\"\215\002\n\026CreateGlossaryMeta" + - "data\022\014\n\004name\030\001 \001(\t\022M\n\005state\030\002 \001(\0162>.goog" + - "le.cloud.translation.v3beta1.CreateGloss" + - "aryMetadata.State\022/\n\013submit_time\030\003 \001(\0132\032" + - ".google.protobuf.Timestamp\"e\n\005State\022\025\n\021S" + - "TATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCE" + - "EDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCA" + - "NCELLED\020\005\"\215\002\n\026DeleteGlossaryMetadata\022\014\n\004" + - "name\030\001 \001(\t\022M\n\005state\030\002 \001(\0162>.google.cloud" + - ".translation.v3beta1.DeleteGlossaryMetad" + - "ata.State\022/\n\013submit_time\030\003 \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" + - "\005\"\205\001\n\026DeleteGlossaryResponse\022\014\n\004name\030\001 \001" + - "(\t\022/\n\013submit_time\030\002 \001(\0132\032.google.protobu" + - "f.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.google.p" + - "rotobuf.Timestamp\"\362\006\n\035BatchTranslateDocu" + - "mentRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loc" + - "ations.googleapis.com/Location\022!\n\024source" + - "_language_code\030\002 \001(\tB\003\340A\002\022\"\n\025target_lang" + - "uage_codes\030\003 \003(\tB\003\340A\002\022V\n\rinput_configs\030\004" + - " \003(\0132:.google.cloud.translation.v3beta1." + - "BatchDocumentInputConfigB\003\340A\002\022W\n\routput_" + - "config\030\005 \001(\0132;.google.cloud.translation." + - "v3beta1.BatchDocumentOutputConfigB\003\340A\002\022`" + - "\n\006models\030\006 \003(\0132K.google.cloud.translatio" + - "n.v3beta1.BatchTranslateDocumentRequest." + - "ModelsEntryB\003\340A\001\022h\n\nglossaries\030\007 \003(\0132O.g" + - "oogle.cloud.translation.v3beta1.BatchTra" + - "nslateDocumentRequest.GlossariesEntryB\003\340" + - "A\001\022w\n\022format_conversions\030\010 \003(\0132V.google." + - "cloud.translation.v3beta1.BatchTranslate" + - "DocumentRequest.FormatConversionsEntryB\003" + - "\340A\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.cloud.transla" + - "tion.v3beta1.TranslateTextGlossaryConfig" + - ":\0028\001\0328\n\026FormatConversionsEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"g\n\030BatchDocumentI" + - "nputConfig\022A\n\ngcs_source\030\001 \001(\0132+.google." + - "cloud.translation.v3beta1.GcsSourceH\000B\010\n" + - "\006source\"w\n\031BatchDocumentOutputConfig\022K\n\017" + - "gcs_destination\030\001 \001(\01320.google.cloud.tra" + - "nslation.v3beta1.GcsDestinationH\000B\r\n\013des" + - "tination\"\331\002\n\036BatchTranslateDocumentRespo" + - "nse\022\023\n\013total_pages\030\001 \001(\003\022\030\n\020translated_p" + - "ages\030\002 \001(\003\022\024\n\014failed_pages\030\003 \001(\003\022\034\n\024tota" + - "l_billable_pages\030\004 \001(\003\022\030\n\020total_characte" + - "rs\030\005 \001(\003\022\035\n\025translated_characters\030\006 \001(\003\022" + - "\031\n\021failed_characters\030\007 \001(\003\022!\n\031total_bill" + - "able_characters\030\010 \001(\003\022/\n\013submit_time\030\t \001" + - "(\0132\032.google.protobuf.Timestamp\022,\n\010end_ti" + - "me\030\n \001(\0132\032.google.protobuf.Timestamp\"\351\003\n" + - "\036BatchTranslateDocumentMetadata\022U\n\005state" + - "\030\001 \001(\0162F.google.cloud.translation.v3beta" + - "1.BatchTranslateDocumentMetadata.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_bil" + - "lable_pages\030\005 \001(\003\022\030\n\020total_characters\030\006 " + - "\001(\003\022\035\n\025translated_characters\030\007 \001(\003\022\031\n\021fa" + - "iled_characters\030\010 \001(\003\022!\n\031total_billable_" + - "characters\030\t \001(\003\022/\n\013submit_time\030\n \001(\0132\032." + - "google.protobuf.Timestamp\"e\n\005State\022\025\n\021ST" + - "ATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEE" + - "DED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCAN" + - "CELLED\020\0052\302\024\n\022TranslationService\022\364\001\n\rTran" + - "slateText\0226.google.cloud.translation.v3b" + - "eta1.TranslateTextRequest\0327.google.cloud" + - ".translation.v3beta1.TranslateTextRespon" + - "se\"r\202\323\344\223\002l\"6/v3beta1/{parent=projects/*/" + - "locations/*}:translateText:\001*Z/\"*/v3beta" + - "1/{parent=projects/*}:translateText:\001*\022\223" + - "\002\n\016DetectLanguage\0227.google.cloud.transla" + - "tion.v3beta1.DetectLanguageRequest\0328.goo" + - "gle.cloud.translation.v3beta1.DetectLang" + - "uageResponse\"\215\001\202\323\344\223\002n\"7/v3beta1/{parent=" + - "projects/*/locations/*}:detectLanguage:\001" + - "*Z0\"+/v3beta1/{parent=projects/*}:detect" + - "Language:\001*\332A\026parent,model,mime_type\022\253\002\n" + - "\025GetSupportedLanguages\022>.google.cloud.tr" + - "anslation.v3beta1.GetSupportedLanguagesR" + - "equest\0324.google.cloud.translation.v3beta" + - "1.SupportedLanguages\"\233\001\202\323\344\223\002p\022;/v3beta1/" + - "{parent=projects/*/locations/*}/supporte" + - "dLanguagesZ1\022//v3beta1/{parent=projects/" + - "*}/supportedLanguages\332A\"parent,display_l" + - "anguage_code,model\022\323\001\n\021TranslateDocument" + - "\022:.google.cloud.translation.v3beta1.Tran" + - "slateDocumentRequest\032;.google.cloud.tran" + - "slation.v3beta1.TranslateDocumentRespons" + - "e\"E\202\323\344\223\002?\":/v3beta1/{parent=projects/*/l" + - "ocations/*}:translateDocument:\001*\022\353\001\n\022Bat" + - "chTranslateText\022;.google.cloud.translati" + - "on.v3beta1.BatchTranslateTextRequest\032\035.g" + - "oogle.longrunning.Operation\"y\202\323\344\223\002@\";/v3" + - "beta1/{parent=projects/*/locations/*}:ba" + - "tchTranslateText:\001*\312A0\n\026BatchTranslateRe" + - "sponse\022\026BatchTranslateMetadata\022\330\002\n\026Batch" + - "TranslateDocument\022?.google.cloud.transla" + - "tion.v3beta1.BatchTranslateDocumentReque" + - "st\032\035.google.longrunning.Operation\"\335\001\202\323\344\223" + - "\002D\"?/v3beta1/{parent=projects/*/location" + - "s/*}:batchTranslateDocument:\001*\332AMparent," + - "source_language_code,target_language_cod" + - "es,input_configs,output_config\312A@\n\036Batch" + - "TranslateDocumentResponse\022\036BatchTranslat" + - "eDocumentMetadata\022\346\001\n\016CreateGlossary\0227.g" + - "oogle.cloud.translation.v3beta1.CreateGl" + - "ossaryRequest\032\035.google.longrunning.Opera" + - "tion\"|\202\323\344\223\002?\"3/v3beta1/{parent=projects/" + - "*/locations/*}/glossaries:\010glossary\332A\017pa" + - "rent,glossary\312A\"\n\010Glossary\022\026CreateGlossa" + - "ryMetadata\022\320\001\n\016ListGlossaries\0227.google.c" + - "loud.translation.v3beta1.ListGlossariesR" + - "equest\0328.google.cloud.translation.v3beta" + - "1.ListGlossariesResponse\"K\202\323\344\223\0025\0223/v3bet" + - "a1/{parent=projects/*/locations/*}/gloss" + - "aries\332A\rparent,filter\022\263\001\n\013GetGlossary\0224." + - "google.cloud.translation.v3beta1.GetGlos" + - "saryRequest\032*.google.cloud.translation.v" + - "3beta1.Glossary\"B\202\323\344\223\0025\0223/v3beta1/{name=" + - "projects/*/locations/*/glossaries/*}\332A\004n" + - "ame\022\337\001\n\016DeleteGlossary\0227.google.cloud.tr" + - "anslation.v3beta1.DeleteGlossaryRequest\032" + - "\035.google.longrunning.Operation\"u\202\323\344\223\0025*3" + - "/v3beta1/{name=projects/*/locations/*/gl" + - "ossaries/*}\332A\004name\312A0\n\026DeleteGlossaryRes" + - "ponse\022\026DeleteGlossaryMetadata\032~\312A\030transl" + - "ate.googleapis.com\322A`https://www.googlea" + - "pis.com/auth/cloud-platform,https://www." + - "googleapis.com/auth/cloud-translationB\361\001" + - "\n\"com.google.cloud.translate.v3beta1B\027Tr" + - "anslationServiceProtoP\001ZGgoogle.golang.o" + - "rg/genproto/googleapis/cloud/translate/v" + - "3beta1;translate\370\001\001\252\002\036Google.Cloud.Trans" + - "late.V3Beta1\312\002\036Google\\Cloud\\Translate\\V3" + - "beta1\352\002!Google::Cloud::Translate::V3beta" + - "1b\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(), - com.google.rpc.StatusProto.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(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequest.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequest.java similarity index 68% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequest.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequest.java index 0e0504b06..df03662eb 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequest.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto package com.google.cloud.location; /** + * + * *
  * The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
  * 
* * Protobuf type {@code google.cloud.location.GetLocationRequest} */ -public final class GetLocationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetLocationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.location.GetLocationRequest) GetLocationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetLocationRequest.newBuilder() to construct. private GetLocationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetLocationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetLocationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetLocationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,58 @@ private GetLocationRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_GetLocationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.GetLocationRequest.class, com.google.cloud.location.GetLocationRequest.Builder.class); + com.google.cloud.location.GetLocationRequest.class, + com.google.cloud.location.GetLocationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Resource name for the location.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -107,29 +130,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; } } /** + * + * *
    * Resource name for the location.
    * 
* * 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 { @@ -138,6 +161,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,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_); } @@ -174,15 +197,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.location.GetLocationRequest)) { return super.equals(obj); } - com.google.cloud.location.GetLocationRequest other = (com.google.cloud.location.GetLocationRequest) obj; + com.google.cloud.location.GetLocationRequest other = + (com.google.cloud.location.GetLocationRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -201,118 +224,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.location.GetLocationRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.location.GetLocationRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.GetLocationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.GetLocationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.GetLocationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.GetLocationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.GetLocationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.GetLocationRequest 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.location.GetLocationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.location.GetLocationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.location.GetLocationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.location.GetLocationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.location.GetLocationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.location.GetLocationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.location.GetLocationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
    * 
* * Protobuf type {@code google.cloud.location.GetLocationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.location.GetLocationRequest) com.google.cloud.location.GetLocationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_GetLocationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.GetLocationRequest.class, com.google.cloud.location.GetLocationRequest.Builder.class); + com.google.cloud.location.GetLocationRequest.class, + com.google.cloud.location.GetLocationRequest.Builder.class); } // Construct using com.google.cloud.location.GetLocationRequest.newBuilder() @@ -320,16 +352,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_GetLocationRequest_descriptor; } @java.lang.Override @@ -360,7 +391,8 @@ public com.google.cloud.location.GetLocationRequest build() { @java.lang.Override public com.google.cloud.location.GetLocationRequest buildPartial() { - com.google.cloud.location.GetLocationRequest result = new com.google.cloud.location.GetLocationRequest(this); + com.google.cloud.location.GetLocationRequest result = + new com.google.cloud.location.GetLocationRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +402,39 @@ public com.google.cloud.location.GetLocationRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.location.GetLocationRequest) { - return mergeFrom((com.google.cloud.location.GetLocationRequest)other); + return mergeFrom((com.google.cloud.location.GetLocationRequest) other); } else { super.mergeFrom(other); return this; @@ -445,18 +478,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Resource name for the location.
      * 
* * 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; @@ -465,20 +500,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Resource name for the location.
      * 
* * 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 { @@ -486,61 +522,68 @@ public java.lang.String getName() { } } /** + * + * *
      * Resource name for the location.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Resource name for the location.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Resource name for the location.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; 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); } @@ -550,12 +593,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.location.GetLocationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.location.GetLocationRequest) private static final com.google.cloud.location.GetLocationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.location.GetLocationRequest(); } @@ -564,16 +607,16 @@ public static com.google.cloud.location.GetLocationRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLocationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLocationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLocationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetLocationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +631,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.location.GetLocationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java new file mode 100644 index 000000000..a8f3d0f9b --- /dev/null +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/location/locations.proto + +package com.google.cloud.location; + +public interface GetLocationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.location.GetLocationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name for the location.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Resource name for the location.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequest.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequest.java similarity index 71% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequest.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequest.java index a8fafc856..7fcb20d65 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequest.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto package com.google.cloud.location; /** + * + * *
  * The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
  * 
* * Protobuf type {@code google.cloud.location.ListLocationsRequest} */ -public final class ListLocationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLocationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.location.ListLocationsRequest) ListLocationsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLocationsRequest.newBuilder() to construct. private ListLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLocationsRequest() { name_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListLocationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLocationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListLocationsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,69 +72,77 @@ private ListLocationsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsRequest.class, com.google.cloud.location.ListLocationsRequest.Builder.class); + com.google.cloud.location.ListLocationsRequest.class, + com.google.cloud.location.ListLocationsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource that owns the locations collection, if applicable.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -126,29 +151,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 resource that owns the locations collection, if applicable.
    * 
* * 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 { @@ -159,11 +184,14 @@ public java.lang.String getName() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * The standard list filter.
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -172,29 +200,29 @@ 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; } } /** + * + * *
    * The standard list filter.
    * 
* * string filter = 2; + * * @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 { @@ -205,11 +233,14 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * The standard list page size.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -220,11 +251,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** + * + * *
    * The standard list page token.
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -233,29 +267,29 @@ 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; } } /** + * + * *
    * The standard list page token.
    * 
* * string page_token = 4; + * * @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 { @@ -264,6 +298,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,8 +310,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_); } @@ -305,8 +339,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -319,21 +352,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.location.ListLocationsRequest)) { return super.equals(obj); } - com.google.cloud.location.ListLocationsRequest other = (com.google.cloud.location.ListLocationsRequest) obj; + com.google.cloud.location.ListLocationsRequest other = + (com.google.cloud.location.ListLocationsRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getName().equals(other.getName())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -358,118 +388,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.location.ListLocationsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.location.ListLocationsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.ListLocationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.ListLocationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.ListLocationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.ListLocationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.ListLocationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.ListLocationsRequest 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.location.ListLocationsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.location.ListLocationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.location.ListLocationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.location.ListLocationsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.location.ListLocationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.location.ListLocationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.location.ListLocationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
    * 
* * Protobuf type {@code google.cloud.location.ListLocationsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.location.ListLocationsRequest) com.google.cloud.location.ListLocationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsRequest.class, com.google.cloud.location.ListLocationsRequest.Builder.class); + com.google.cloud.location.ListLocationsRequest.class, + com.google.cloud.location.ListLocationsRequest.Builder.class); } // Construct using com.google.cloud.location.ListLocationsRequest.newBuilder() @@ -477,16 +516,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -502,9 +540,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsRequest_descriptor; } @java.lang.Override @@ -523,7 +561,8 @@ public com.google.cloud.location.ListLocationsRequest build() { @java.lang.Override public com.google.cloud.location.ListLocationsRequest buildPartial() { - com.google.cloud.location.ListLocationsRequest result = new com.google.cloud.location.ListLocationsRequest(this); + com.google.cloud.location.ListLocationsRequest result = + new com.google.cloud.location.ListLocationsRequest(this); result.name_ = name_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -536,38 +575,39 @@ public com.google.cloud.location.ListLocationsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.location.ListLocationsRequest) { - return mergeFrom((com.google.cloud.location.ListLocationsRequest)other); + return mergeFrom((com.google.cloud.location.ListLocationsRequest) other); } else { super.mergeFrom(other); return this; @@ -622,18 +662,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The resource that owns the locations collection, if applicable.
      * 
* * 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; @@ -642,20 +684,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource that owns the locations collection, if applicable.
      * 
* * 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 { @@ -663,54 +706,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource that owns the locations collection, if applicable.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource that owns the locations collection, if applicable.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource that owns the locations collection, if applicable.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -718,18 +768,20 @@ public Builder setNameBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * The standard list filter.
      * 
* * string filter = 2; + * * @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; @@ -738,20 +790,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * The standard list filter.
      * 
* * string filter = 2; + * * @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 { @@ -759,66 +812,76 @@ public java.lang.String getFilter() { } } /** + * + * *
      * The standard list filter.
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * The standard list filter.
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * The standard list filter.
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The standard list page size.
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -826,30 +889,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The standard list page size.
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The standard list page size.
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -857,18 +926,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The standard list page token.
      * 
* * string page_token = 4; + * * @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; @@ -877,20 +948,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The standard list page token.
      * 
* * string page_token = 4; + * * @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 { @@ -898,61 +970,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The standard list page token.
      * 
* * string page_token = 4; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The standard list page token.
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The standard list page token.
      * 
* * string page_token = 4; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; 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); } @@ -962,12 +1041,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.location.ListLocationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.location.ListLocationsRequest) private static final com.google.cloud.location.ListLocationsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.location.ListLocationsRequest(); } @@ -976,16 +1055,16 @@ public static com.google.cloud.location.ListLocationsRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLocationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLocationsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLocationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLocationsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1000,6 +1079,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.location.ListLocationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java index c7aae8901..3a3f39a7f 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java @@ -1,79 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto package com.google.cloud.location; -public interface ListLocationsRequestOrBuilder extends +public interface ListLocationsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.location.ListLocationsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource that owns the locations collection, if applicable.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource that owns the locations collection, if applicable.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The standard list filter.
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * The standard list filter.
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * The standard list page size.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The standard list page token.
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The standard list page token.
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponse.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponse.java similarity index 74% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponse.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponse.java index 368d21f4a..77ad19930 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponse.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto package com.google.cloud.location; /** + * + * *
  * The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
  * 
* * Protobuf type {@code google.cloud.location.ListLocationsResponse} */ -public final class ListLocationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLocationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.location.ListLocationsResponse) ListLocationsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLocationsResponse.newBuilder() to construct. private ListLocationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLocationsResponse() { locations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListLocationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLocationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListLocationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,37 @@ private ListLocationsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add( + input.readMessage( + com.google.cloud.location.Location.parser(), extensionRegistry)); + break; } - locations_.add( - input.readMessage(com.google.cloud.location.Location.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { locations_ = java.util.Collections.unmodifiableList(locations_); @@ -92,22 +111,27 @@ private ListLocationsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsResponse.class, com.google.cloud.location.ListLocationsResponse.Builder.class); + com.google.cloud.location.ListLocationsResponse.class, + com.google.cloud.location.ListLocationsResponse.Builder.class); } public static final int LOCATIONS_FIELD_NUMBER = 1; private java.util.List locations_; /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -119,6 +143,8 @@ public java.util.List getLocationsList() { return locations_; } /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -126,11 +152,13 @@ public java.util.List getLocationsList() { * repeated .google.cloud.location.Location locations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getLocationsOrBuilderList() { return locations_; } /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -142,6 +170,8 @@ public int getLocationsCount() { return locations_.size(); } /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -153,6 +183,8 @@ public com.google.cloud.location.Location getLocations(int index) { return locations_.get(index); } /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -160,19 +192,21 @@ public com.google.cloud.location.Location getLocations(int index) { * repeated .google.cloud.location.Location locations = 1; */ @java.lang.Override - public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder( - int index) { + public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index) { return locations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -181,29 +215,29 @@ 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; } } /** + * + * *
    * The standard List next-page token.
    * 
* * 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 { @@ -212,6 +246,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,8 +258,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 < locations_.size(); i++) { output.writeMessage(1, locations_.get(i)); } @@ -241,8 +275,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < locations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, locations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, locations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -255,17 +288,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.location.ListLocationsResponse)) { return super.equals(obj); } - com.google.cloud.location.ListLocationsResponse other = (com.google.cloud.location.ListLocationsResponse) obj; + com.google.cloud.location.ListLocationsResponse other = + (com.google.cloud.location.ListLocationsResponse) obj; - if (!getLocationsList() - .equals(other.getLocationsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getLocationsList().equals(other.getLocationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -288,118 +320,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.location.ListLocationsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.location.ListLocationsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.ListLocationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.ListLocationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.ListLocationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.ListLocationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.ListLocationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.ListLocationsResponse 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.location.ListLocationsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.location.ListLocationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.location.ListLocationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.location.ListLocationsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.location.ListLocationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.location.ListLocationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.location.ListLocationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
    * 
* * Protobuf type {@code google.cloud.location.ListLocationsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.location.ListLocationsResponse) com.google.cloud.location.ListLocationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsResponse.class, com.google.cloud.location.ListLocationsResponse.Builder.class); + com.google.cloud.location.ListLocationsResponse.class, + com.google.cloud.location.ListLocationsResponse.Builder.class); } // Construct using com.google.cloud.location.ListLocationsResponse.newBuilder() @@ -407,17 +448,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLocationsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -433,9 +474,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsResponse_descriptor; } @java.lang.Override @@ -454,7 +495,8 @@ public com.google.cloud.location.ListLocationsResponse build() { @java.lang.Override public com.google.cloud.location.ListLocationsResponse buildPartial() { - com.google.cloud.location.ListLocationsResponse result = new com.google.cloud.location.ListLocationsResponse(this); + com.google.cloud.location.ListLocationsResponse result = + new com.google.cloud.location.ListLocationsResponse(this); int from_bitField0_ = bitField0_; if (locationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -474,38 +516,39 @@ public com.google.cloud.location.ListLocationsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.location.ListLocationsResponse) { - return mergeFrom((com.google.cloud.location.ListLocationsResponse)other); + return mergeFrom((com.google.cloud.location.ListLocationsResponse) other); } else { super.mergeFrom(other); return this; @@ -513,7 +556,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.location.ListLocationsResponse other) { - if (other == com.google.cloud.location.ListLocationsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.location.ListLocationsResponse.getDefaultInstance()) + return this; if (locationsBuilder_ == null) { if (!other.locations_.isEmpty()) { if (locations_.isEmpty()) { @@ -532,9 +576,10 @@ public Builder mergeFrom(com.google.cloud.location.ListLocationsResponse other) locationsBuilder_ = null; locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLocationsFieldBuilder() : null; + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationsFieldBuilder() + : null; } else { locationsBuilder_.addAllMessages(other.locations_); } @@ -572,21 +617,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List locations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLocationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { locations_ = new java.util.ArrayList(locations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, com.google.cloud.location.Location.Builder, com.google.cloud.location.LocationOrBuilder> locationsBuilder_; + com.google.cloud.location.Location, + com.google.cloud.location.Location.Builder, + com.google.cloud.location.LocationOrBuilder> + locationsBuilder_; /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -601,6 +653,8 @@ public java.util.List getLocationsList() { } } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -615,6 +669,8 @@ public int getLocationsCount() { } } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -629,14 +685,15 @@ public com.google.cloud.location.Location getLocations(int index) { } } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public Builder setLocations( - int index, com.google.cloud.location.Location value) { + public Builder setLocations(int index, com.google.cloud.location.Location value) { if (locationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -650,6 +707,8 @@ public Builder setLocations( return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -668,6 +727,8 @@ public Builder setLocations( return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -688,14 +749,15 @@ public Builder addLocations(com.google.cloud.location.Location value) { return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public Builder addLocations( - int index, com.google.cloud.location.Location value) { + public Builder addLocations(int index, com.google.cloud.location.Location value) { if (locationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -709,14 +771,15 @@ public Builder addLocations( return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public Builder addLocations( - com.google.cloud.location.Location.Builder builderForValue) { + public Builder addLocations(com.google.cloud.location.Location.Builder builderForValue) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); locations_.add(builderForValue.build()); @@ -727,6 +790,8 @@ public Builder addLocations( return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -745,6 +810,8 @@ public Builder addLocations( return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -755,8 +822,7 @@ public Builder addAllLocations( java.lang.Iterable values) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, locations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); onChanged(); } else { locationsBuilder_.addAllMessages(values); @@ -764,6 +830,8 @@ public Builder addAllLocations( return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -781,6 +849,8 @@ public Builder clearLocations() { return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -798,39 +868,44 @@ public Builder removeLocations(int index) { return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public com.google.cloud.location.Location.Builder getLocationsBuilder( - int index) { + public com.google.cloud.location.Location.Builder getLocationsBuilder(int index) { return getLocationsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder( - int index) { + public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index) { if (locationsBuilder_ == null) { - return locations_.get(index); } else { + return locations_.get(index); + } else { return locationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public java.util.List - getLocationsOrBuilderList() { + public java.util.List + getLocationsOrBuilderList() { if (locationsBuilder_ != null) { return locationsBuilder_.getMessageOrBuilderList(); } else { @@ -838,6 +913,8 @@ public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder( } } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -845,42 +922,47 @@ public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder( * repeated .google.cloud.location.Location locations = 1; */ public com.google.cloud.location.Location.Builder addLocationsBuilder() { - return getLocationsFieldBuilder().addBuilder( - com.google.cloud.location.Location.getDefaultInstance()); + return getLocationsFieldBuilder() + .addBuilder(com.google.cloud.location.Location.getDefaultInstance()); } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public com.google.cloud.location.Location.Builder addLocationsBuilder( - int index) { - return getLocationsFieldBuilder().addBuilder( - index, com.google.cloud.location.Location.getDefaultInstance()); + public com.google.cloud.location.Location.Builder addLocationsBuilder(int index) { + return getLocationsFieldBuilder() + .addBuilder(index, com.google.cloud.location.Location.getDefaultInstance()); } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public java.util.List - getLocationsBuilderList() { + public java.util.List getLocationsBuilderList() { return getLocationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, com.google.cloud.location.Location.Builder, com.google.cloud.location.LocationOrBuilder> + com.google.cloud.location.Location, + com.google.cloud.location.Location.Builder, + com.google.cloud.location.LocationOrBuilder> getLocationsFieldBuilder() { if (locationsBuilder_ == null) { - locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, com.google.cloud.location.Location.Builder, com.google.cloud.location.LocationOrBuilder>( - locations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + locationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.location.Location, + com.google.cloud.location.Location.Builder, + com.google.cloud.location.LocationOrBuilder>( + locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); locations_ = null; } return locationsBuilder_; @@ -888,18 +970,20 @@ public com.google.cloud.location.Location.Builder addLocationsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The standard List next-page token.
      * 
* * 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; @@ -908,20 +992,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The standard List next-page token.
      * 
* * 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 { @@ -929,61 +1014,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The standard List next-page token.
      * 
* * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; 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); } @@ -993,12 +1085,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.location.ListLocationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.location.ListLocationsResponse) private static final com.google.cloud.location.ListLocationsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.location.ListLocationsResponse(); } @@ -1007,16 +1099,16 @@ public static com.google.cloud.location.ListLocationsResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLocationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLocationsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLocationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLocationsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1031,6 +1123,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.location.ListLocationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java index f813b85a2..704771cc4 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto package com.google.cloud.location; -public interface ListLocationsResponseOrBuilder extends +public interface ListLocationsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.location.ListLocationsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
* * repeated .google.cloud.location.Location locations = 1; */ - java.util.List - getLocationsList(); + java.util.List getLocationsList(); /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -25,6 +44,8 @@ public interface ListLocationsResponseOrBuilder extends */ com.google.cloud.location.Location getLocations(int index); /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -33,41 +54,48 @@ public interface ListLocationsResponseOrBuilder extends */ int getLocationsCount(); /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
* * repeated .google.cloud.location.Location locations = 1; */ - java.util.List - getLocationsOrBuilderList(); + java.util.List getLocationsOrBuilderList(); /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
* * repeated .google.cloud.location.Location locations = 1; */ - com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder( - int index); + com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index); /** + * + * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The standard List next-page token.
    * 
* * 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/Location.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/Location.java similarity index 68% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/Location.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/Location.java index 4af817e7e..0288131dc 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/Location.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/Location.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto package com.google.cloud.location; /** + * + * *
  * A resource that represents Google Cloud Platform location.
  * 
* * Protobuf type {@code google.cloud.location.Location} */ -public final class Location extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Location extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.location.Location) LocationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Location.newBuilder() to construct. private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Location() { name_ = ""; locationId_ = ""; @@ -27,16 +45,15 @@ private Location() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Location(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Location( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,103 +73,111 @@ private Location( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 26: { - com.google.protobuf.Any.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - metadata_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); + case 26: + { + com.google.protobuf.Any.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - locationId_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + locationId_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + displayName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_Location_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 2: 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.location.LocationsProto.internal_static_google_cloud_location_Location_fieldAccessorTable + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.Location.class, com.google.cloud.location.Location.Builder.class); + com.google.cloud.location.Location.class, + com.google.cloud.location.Location.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Resource name for the location, which may vary between implementations.
    * For example: `"projects/example-project/locations/us-east1"`
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -161,30 +186,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; } } /** + * + * *
    * Resource name for the location, which may vary between implementations.
    * For example: `"projects/example-project/locations/us-east1"`
    * 
* * 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 { @@ -195,11 +220,14 @@ public java.lang.String getName() { public static final int LOCATION_ID_FIELD_NUMBER = 4; private volatile java.lang.Object locationId_; /** + * + * *
    * The canonical id for this location. For example: `"us-east1"`.
    * 
* * string location_id = 4; + * * @return The locationId. */ @java.lang.Override @@ -208,29 +236,29 @@ public java.lang.String getLocationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationId_ = s; return s; } } /** + * + * *
    * The canonical id for this location. For example: `"us-east1"`.
    * 
* * string location_id = 4; + * * @return The bytes for locationId. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationIdBytes() { + public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locationId_ = b; return b; } else { @@ -241,12 +269,15 @@ public java.lang.String getLocationId() { public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** + * + * *
    * The friendly name for this location, typically a nearby city name.
    * For example, "Tokyo".
    * 
* * string display_name = 5; + * * @return The displayName. */ @java.lang.Override @@ -255,30 +286,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; } } /** + * + * *
    * The friendly name for this location, typically a nearby city name.
    * For example, "Tokyo".
    * 
* * string display_name = 5; + * * @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 { @@ -287,24 +318,23 @@ public java.lang.String getDisplayName() { } public static final int LABELS_FIELD_NUMBER = 2; + 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.location.LocationsProto.internal_static_google_cloud_location_Location_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.location.LocationsProto + .internal_static_google_cloud_location_Location_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - 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_; } @@ -313,6 +343,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -320,22 +352,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 2;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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();
   }
   /**
+   *
+   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -344,11 +376,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -357,16 +390,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -375,12 +408,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -390,12 +422,15 @@ public java.lang.String getLabelsOrThrow(
   public static final int METADATA_FIELD_NUMBER = 3;
   private com.google.protobuf.Any metadata_;
   /**
+   *
+   *
    * 
    * Service-specific metadata. For example the available capacity at the given
    * location.
    * 
* * .google.protobuf.Any metadata = 3; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -403,12 +438,15 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Service-specific metadata. For example the available capacity at the given
    * location.
    * 
* * .google.protobuf.Any metadata = 3; + * * @return The metadata. */ @java.lang.Override @@ -416,6 +454,8 @@ public com.google.protobuf.Any getMetadata() { return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; } /** + * + * *
    * Service-specific metadata. For example the available capacity at the given
    * location.
@@ -429,6 +469,7 @@ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -440,17 +481,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_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        2);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2);
     if (metadata_ != null) {
       output.writeMessage(3, getMetadata());
     }
@@ -472,19 +508,18 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    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(2, 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(2, labels__);
     }
     if (metadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getMetadata());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, locationId_);
@@ -500,25 +535,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.location.Location)) {
       return super.equals(obj);
     }
     com.google.cloud.location.Location other = (com.google.cloud.location.Location) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getLocationId()
-        .equals(other.getLocationId())) return false;
-    if (!getDisplayName()
-        .equals(other.getDisplayName())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getLocationId().equals(other.getLocationId())) return false;
+    if (!getDisplayName().equals(other.getDisplayName())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (hasMetadata() != other.hasMetadata()) return false;
     if (hasMetadata()) {
-      if (!getMetadata()
-          .equals(other.getMetadata())) return false;
+      if (!getMetadata().equals(other.getMetadata())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -550,140 +580,146 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.location.Location parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.location.Location parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.location.Location parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.location.Location parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.cloud.location.Location parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.location.Location parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.location.Location parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.location.Location parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.location.Location 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.location.Location parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.location.Location 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.location.Location parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.location.Location parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.location.Location parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.location.Location prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 resource that represents Google Cloud Platform location.
    * 
* * Protobuf type {@code google.cloud.location.Location} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.location.Location) com.google.cloud.location.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_Location_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: 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 2: 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.location.LocationsProto.internal_static_google_cloud_location_Location_fieldAccessorTable + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.Location.class, com.google.cloud.location.Location.Builder.class); + com.google.cloud.location.Location.class, + com.google.cloud.location.Location.Builder.class); } // Construct using com.google.cloud.location.Location.newBuilder() @@ -691,16 +727,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -721,9 +756,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_Location_descriptor; } @java.lang.Override @@ -762,38 +797,39 @@ public com.google.cloud.location.Location buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.location.Location) { - return mergeFrom((com.google.cloud.location.Location)other); + return mergeFrom((com.google.cloud.location.Location) other); } else { super.mergeFrom(other); return this; @@ -814,8 +850,7 @@ public Builder mergeFrom(com.google.cloud.location.Location other) { displayName_ = other.displayName_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } @@ -847,23 +882,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * 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; @@ -872,21 +910,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * 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 { @@ -894,57 +933,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -952,18 +998,20 @@ public Builder setNameBytes( private java.lang.Object locationId_ = ""; /** + * + * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; + * * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationId_ = s; return s; @@ -972,20 +1020,21 @@ public java.lang.String getLocationId() { } } /** + * + * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; + * * @return The bytes for locationId. */ - public com.google.protobuf.ByteString - getLocationIdBytes() { + public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locationId_ = b; return b; } else { @@ -993,54 +1042,61 @@ public java.lang.String getLocationId() { } } /** + * + * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; + * * @param value The locationId to set. * @return This builder for chaining. */ - public Builder setLocationId( - java.lang.String value) { + public Builder setLocationId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locationId_ = value; onChanged(); return this; } /** + * + * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; + * * @return This builder for chaining. */ public Builder clearLocationId() { - + locationId_ = getDefaultInstance().getLocationId(); onChanged(); return this; } /** + * + * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; + * * @param value The bytes for locationId to set. * @return This builder for chaining. */ - public Builder setLocationIdBytes( - com.google.protobuf.ByteString value) { + public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locationId_ = value; onChanged(); return this; @@ -1048,19 +1104,21 @@ public Builder setLocationIdBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; + * * @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; @@ -1069,21 +1127,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; + * * @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 { @@ -1091,78 +1150,84 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -1174,6 +1239,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1181,22 +1248,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 2;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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();
     }
     /**
+     *
+     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1205,11 +1272,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1218,16 +1286,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1236,12 +1305,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1249,11 +1317,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1261,23 +1330,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 2;
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1285,16 +1352,19 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 2;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1302,36 +1372,42 @@ public Builder putLabels(
      *
      * map<string, string> labels = 2;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
 
     private com.google.protobuf.Any metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> metadataBuilder_;
+            com.google.protobuf.Any,
+            com.google.protobuf.Any.Builder,
+            com.google.protobuf.AnyOrBuilder>
+        metadataBuilder_;
     /**
+     *
+     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
      * 
* * .google.protobuf.Any metadata = 3; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** + * + * *
      * Service-specific metadata. For example the available capacity at the given
      * location.
      * 
* * .google.protobuf.Any metadata = 3; + * * @return The metadata. */ public com.google.protobuf.Any getMetadata() { @@ -1342,6 +1418,8 @@ public com.google.protobuf.Any getMetadata() { } } /** + * + * *
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1363,6 +1441,8 @@ public Builder setMetadata(com.google.protobuf.Any value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1370,8 +1450,7 @@ public Builder setMetadata(com.google.protobuf.Any value) {
      *
      * .google.protobuf.Any metadata = 3;
      */
-    public Builder setMetadata(
-        com.google.protobuf.Any.Builder builderForValue) {
+    public Builder setMetadata(com.google.protobuf.Any.Builder builderForValue) {
       if (metadataBuilder_ == null) {
         metadata_ = builderForValue.build();
         onChanged();
@@ -1382,6 +1461,8 @@ public Builder setMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1392,8 +1473,7 @@ public Builder setMetadata(
     public Builder mergeMetadata(com.google.protobuf.Any value) {
       if (metadataBuilder_ == null) {
         if (metadata_ != null) {
-          metadata_ =
-            com.google.protobuf.Any.newBuilder(metadata_).mergeFrom(value).buildPartial();
+          metadata_ = com.google.protobuf.Any.newBuilder(metadata_).mergeFrom(value).buildPartial();
         } else {
           metadata_ = value;
         }
@@ -1405,6 +1485,8 @@ public Builder mergeMetadata(com.google.protobuf.Any value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1424,6 +1506,8 @@ public Builder clearMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1432,11 +1516,13 @@ public Builder clearMetadata() {
      * .google.protobuf.Any metadata = 3;
      */
     public com.google.protobuf.Any.Builder getMetadataBuilder() {
-      
+
       onChanged();
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1448,11 +1534,12 @@ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null ?
-            com.google.protobuf.Any.getDefaultInstance() : metadata_;
+        return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_;
       }
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1461,21 +1548,23 @@ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
      * .google.protobuf.Any metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
+            com.google.protobuf.Any,
+            com.google.protobuf.Any.Builder,
+            com.google.protobuf.AnyOrBuilder>
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
-                getMetadata(),
-                getParentForChildren(),
-                isClean());
+        metadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Any,
+                com.google.protobuf.Any.Builder,
+                com.google.protobuf.AnyOrBuilder>(getMetadata(), getParentForChildren(), isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1485,12 +1574,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.location.Location)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.location.Location)
   private static final com.google.cloud.location.Location DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.location.Location();
   }
@@ -1499,16 +1588,16 @@ public static com.google.cloud.location.Location getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Location parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Location(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Location parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Location(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1523,6 +1612,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.location.Location getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationOrBuilder.java
similarity index 72%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationOrBuilder.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationOrBuilder.java
index 0b24448b4..98ab25deb 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationOrBuilder.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationOrBuilder.java
@@ -1,77 +1,110 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/location/locations.proto
 
 package com.google.cloud.location;
 
-public interface LocationOrBuilder extends
+public interface LocationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.location.Location)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Resource name for the location, which may vary between implementations.
    * For example: `"projects/example-project/locations/us-east1"`
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Resource name for the location, which may vary between implementations.
    * For example: `"projects/example-project/locations/us-east1"`
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The canonical id for this location. For example: `"us-east1"`.
    * 
* * string location_id = 4; + * * @return The locationId. */ java.lang.String getLocationId(); /** + * + * *
    * The canonical id for this location. For example: `"us-east1"`.
    * 
* * string location_id = 4; + * * @return The bytes for locationId. */ - com.google.protobuf.ByteString - getLocationIdBytes(); + com.google.protobuf.ByteString getLocationIdBytes(); /** + * + * *
    * The friendly name for this location, typically a nearby city name.
    * For example, "Tokyo".
    * 
* * string display_name = 5; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The friendly name for this location, typically a nearby city name.
    * For example, "Tokyo".
    * 
* * string display_name = 5; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -81,6 +114,8 @@ public interface LocationOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -88,15 +123,13 @@ public interface LocationOrBuilder extends
    *
    * map<string, string> labels = 2;
    */
-  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();
   /**
+   *
+   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -104,9 +137,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 2;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -114,11 +148,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 2;
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -126,31 +159,37 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 2;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Service-specific metadata. For example the available capacity at the given
    * location.
    * 
* * .google.protobuf.Any metadata = 3; + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Service-specific metadata. For example the available capacity at the given
    * location.
    * 
* * .google.protobuf.Any metadata = 3; + * * @return The metadata. */ com.google.protobuf.Any getMetadata(); /** + * + * *
    * Service-specific metadata. For example the available capacity at the given
    * location.
diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsProto.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsProto.java
new file mode 100644
index 000000000..d2b6da306
--- /dev/null
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/LocationsProto.java
@@ -0,0 +1,150 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/location/locations.proto
+
+package com.google.cloud.location;
+
+public final class LocationsProto {
+  private LocationsProto() {}
+
+  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_location_ListLocationsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_location_ListLocationsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_location_GetLocationRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_location_Location_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_Location_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_location_Location_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n%google/cloud/location/locations.proto\022"
+          + "\025google.cloud.location\032\034google/api/annot"
+          + "ations.proto\032\031google/protobuf/any.proto\032"
+          + "\027google/api/client.proto\"[\n\024ListLocation"
+          + "sRequest\022\014\n\004name\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021"
+          + "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"d\n"
+          + "\025ListLocationsResponse\0222\n\tlocations\030\001 \003("
+          + "\0132\037.google.cloud.location.Location\022\027\n\017ne"
+          + "xt_page_token\030\002 \001(\t\"\"\n\022GetLocationReques"
+          + "t\022\014\n\004name\030\001 \001(\t\"\327\001\n\010Location\022\014\n\004name\030\001 \001"
+          + "(\t\022\023\n\013location_id\030\004 \001(\t\022\024\n\014display_name\030"
+          + "\005 \001(\t\022;\n\006labels\030\002 \003(\0132+.google.cloud.loc"
+          + "ation.Location.LabelsEntry\022&\n\010metadata\030\003"
+          + " \001(\0132\024.google.protobuf.Any\032-\n\013LabelsEntr"
+          + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\244\003\n\tLo"
+          + "cations\022\253\001\n\rListLocations\022+.google.cloud"
+          + ".location.ListLocationsRequest\032,.google."
+          + "cloud.location.ListLocationsResponse\"?\202\323"
+          + "\344\223\0029\022\024/v1/{name=locations}Z!\022\037/v1/{name="
+          + "projects/*}/locations\022\236\001\n\013GetLocation\022)."
+          + "google.cloud.location.GetLocationRequest"
+          + "\032\037.google.cloud.location.Location\"C\202\323\344\223\002"
+          + "=\022\026/v1/{name=locations/*}Z#\022!/v1/{name=p"
+          + "rojects/*/locations/*}\032H\312A\024cloud.googlea"
+          + "pis.com\322A.https://www.googleapis.com/aut"
+          + "h/cloud-platformBo\n\031com.google.cloud.loc"
+          + "ationB\016LocationsProtoP\001Z=google.golang.o"
+          + "rg/genproto/googleapis/cloud/location;lo"
+          + "cation\370\001\001b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+              com.google.protobuf.AnyProto.getDescriptor(),
+              com.google.api.ClientProto.getDescriptor(),
+            });
+    internal_static_google_cloud_location_ListLocationsRequest_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_location_ListLocationsRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "Filter", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_location_ListLocationsResponse_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_location_ListLocationsResponse_descriptor,
+            new java.lang.String[] {
+              "Locations", "NextPageToken",
+            });
+    internal_static_google_cloud_location_GetLocationRequest_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_location_GetLocationRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_location_Location_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_location_Location_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_location_Location_descriptor,
+            new java.lang.String[] {
+              "Name", "LocationId", "DisplayName", "Labels", "Metadata",
+            });
+    internal_static_google_cloud_location_Location_LabelsEntry_descriptor =
+        internal_static_google_cloud_location_Location_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_location_Location_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.protobuf.AnyProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java
similarity index 78%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java
index a618d2f2c..652d1a1dd 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfig.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchDocumentInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,60 +68,67 @@ private BatchDocumentInputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.translate.v3.GcsSource) source_).toBuilder(); + case 10: + { + com.google.cloud.translate.v3.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.translate.v3.GcsSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.translate.v3.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 1; + break; } - source_ = - input.readMessage(com.google.cloud.translate.v3.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsSource) source_); - source_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - sourceCase_ = 1; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -121,24 +144,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,
@@ -160,6 +187,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -167,6 +195,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -188,16 +218,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,
@@ -223,12 +256,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;
@@ -240,8 +274,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_);
     }
@@ -255,8 +288,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -266,18 +300,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:
@@ -307,117 +341,127 @@ 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() @@ -425,16 +469,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +487,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 @@ -465,7 +508,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); + com.google.cloud.translate.v3.BatchDocumentInputConfig result = + new com.google.cloud.translate.v3.BatchDocumentInputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -482,38 +526,39 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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,15 +566,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.unknownFields); onChanged(); @@ -550,7 +598,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.BatchDocumentInputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.BatchDocumentInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -559,12 +608,12 @@ public Builder mergeFrom( } 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() { @@ -574,10 +623,14 @@ public Builder clearSource() { return this; } - 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,
@@ -599,6 +652,7 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -606,6 +660,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -627,6 +683,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -644,6 +701,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,
@@ -680,6 +739,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,
@@ -702,8 +763,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();
@@ -714,6 +774,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -738,10 +800,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;
         }
@@ -756,6 +821,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,
@@ -795,6 +862,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -821,6 +890,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,
@@ -855,6 +926,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,
@@ -878,26 +951,32 @@ 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());
         source_ = null;
       }
       sourceCase_ = 1;
-      onChanged();;
+      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);
     }
 
@@ -907,12 +986,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();
   }
@@ -921,16 +1000,16 @@ 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 {
-      return new BatchDocumentInputConfig(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new BatchDocumentInputConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -945,6 +1024,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.BatchDocumentInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
similarity index 83%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
index 078e84fcf..806139bc4 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentInputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,
@@ -29,10 +47,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,
@@ -54,10 +75,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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
similarity index 85%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
index 512dd7967..b96860b3b 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfig.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchDocumentOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,60 +68,68 @@ private BatchDocumentOutputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = ((com.google.cloud.translate.v3.GcsDestination) destination_).toBuilder(); + case 10: + { + com.google.cloud.translate.v3.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = + ((com.google.cloud.translate.v3.GcsDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.translate.v3.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 1; + break; } - destination_ = - input.readMessage(com.google.cloud.translate.v3.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - destinationCase_ = 1; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -121,24 +145,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
@@ -181,6 +209,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -188,6 +217,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
@@ -230,16 +261,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
@@ -286,12 +320,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;
@@ -303,8 +338,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_);
     }
@@ -318,8 +352,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -329,18 +364,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:
@@ -370,117 +405,127 @@ 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() @@ -488,16 +533,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -507,9 +551,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 @@ -528,7 +572,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); + com.google.cloud.translate.v3.BatchDocumentOutputConfig result = + new com.google.cloud.translate.v3.BatchDocumentOutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -545,38 +590,39 @@ public com.google.cloud.translate.v3.BatchDocumentOutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -584,15 +630,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.unknownFields); onChanged(); @@ -613,7 +662,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.BatchDocumentOutputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.BatchDocumentOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,12 +672,12 @@ public Builder mergeFrom( } 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() { @@ -637,10 +687,14 @@ public Builder clearDestination() { return this; } - 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
@@ -683,6 +737,7 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -690,6 +745,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
@@ -732,6 +789,7 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -749,6 +807,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
@@ -806,6 +866,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
@@ -861,6 +923,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
@@ -906,10 +970,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;
         }
@@ -924,6 +991,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
@@ -984,6 +1053,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
@@ -1031,6 +1102,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
@@ -1086,6 +1159,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
@@ -1130,26 +1205,32 @@ 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());
         destination_ = null;
       }
       destinationCase_ = 1;
-      onChanged();;
+      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);
     }
 
@@ -1159,12 +1240,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();
   }
@@ -1173,16 +1254,16 @@ 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 {
-      return new BatchDocumentOutputConfig(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new BatchDocumentOutputConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1197,6 +1278,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3.BatchDocumentOutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
similarity index 91%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
index 7ccb0df1b..5783dd39d 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchDocumentOutputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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
@@ -50,10 +68,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
@@ -96,10 +117,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
@@ -145,5 +169,6 @@ public interface BatchDocumentOutputConfigOrBuilder extends
    */
   com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOrBuilder();
 
-  public com.google.cloud.translate.v3.BatchDocumentOutputConfig.DestinationCase getDestinationCase();
+  public com.google.cloud.translate.v3.BatchDocumentOutputConfig.DestinationCase
+      getDestinationCase();
 }
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
similarity index 73%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
index 159471c30..38517ed01 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadata.java
@@ -1,40 +1,58 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchTranslateDocumentMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,107 +71,115 @@ private BatchTranslateDocumentMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 16: { - - totalPages_ = input.readInt64(); - break; - } - case 24: { - - translatedPages_ = input.readInt64(); - break; - } - case 32: { - - failedPages_ = input.readInt64(); - break; - } - case 40: { - - totalBillablePages_ = input.readInt64(); - break; - } - case 48: { - - totalCharacters_ = input.readInt64(); - break; - } - case 56: { + case 8: + { + int rawValue = input.readEnum(); - translatedCharacters_ = input.readInt64(); - break; - } - case 64: { - - failedCharacters_ = input.readInt64(); - break; - } - case 72: { - - totalBillableCharacters_ = input.readInt64(); - break; - } - case 82: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (submitTime_ != null) { - subBuilder = submitTime_.toBuilder(); + state_ = rawValue; + break; } - submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submitTime_); - submitTime_ = subBuilder.buildPartial(); + case 16: + { + totalPages_ = input.readInt64(); + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 24: + { + translatedPages_ = input.readInt64(); + break; + } + case 32: + { + failedPages_ = input.readInt64(); + break; + } + case 40: + { + totalBillablePages_ = input.readInt64(); + break; + } + case 48: + { + totalCharacters_ = input.readInt64(); + break; + } + case 56: + { + translatedCharacters_ = input.readInt64(); + break; + } + case 64: + { + failedCharacters_ = input.readInt64(); + break; + } + case 72: + { + totalBillableCharacters_ = input.readInt64(); + break; + } + case 82: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (submitTime_ != null) { + subBuilder = submitTime_.toBuilder(); + } + submitTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(submitTime_); + submitTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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.
      * 
@@ -162,6 +188,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -170,6 +198,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -178,6 +208,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * The batch is done and no item was successfully processed.
      * 
@@ -186,6 +218,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -195,6 +229,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -208,6 +244,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Invalid.
      * 
@@ -216,6 +254,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -224,6 +264,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -232,6 +274,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * The batch is done and no item was successfully processed.
      * 
@@ -240,6 +284,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.
@@ -249,6 +295,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
@@ -259,7 +307,6 @@ public enum State
      */
     public static final int CANCELLED_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -284,52 +331,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;
@@ -349,39 +401,53 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
+   *
+   *
    * 
    * 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() { + @java.lang.Override + public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.valueOf(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.valueOf(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_; /** + * + * *
    * 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 @@ -392,12 +458,15 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 3; 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 @@ -408,12 +477,15 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 4; 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 @@ -424,12 +496,15 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 5; 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 @@ -440,11 +515,14 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 6; private long totalCharacters_; /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; + * * @return The totalCharacters. */ @java.lang.Override @@ -455,12 +533,15 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 7; 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 @@ -471,12 +552,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 8; 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 @@ -487,12 +571,15 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 9; 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 @@ -503,11 +590,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 @@ -515,11 +605,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 @@ -527,6 +620,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -539,6 +634,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -550,9 +646,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) { @@ -591,45 +688,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -639,34 +728,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -682,29 +763,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(); @@ -715,117 +788,127 @@ 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() @@ -833,16 +916,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -874,13 +956,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(); } @@ -895,7 +978,8 @@ 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); + com.google.cloud.translate.v3.BatchTranslateDocumentMetadata result = + new com.google.cloud.translate.v3.BatchTranslateDocumentMetadata(this); result.state_ = state_; result.totalPages_ = totalPages_; result.translatedPages_ = translatedPages_; @@ -918,38 +1002,39 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -957,7 +1042,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()); } @@ -1007,7 +1094,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.BatchTranslateDocumentMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1019,86 +1107,109 @@ public Builder mergeFrom( 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3.BatchTranslateDocumentMetadata.State.valueOf(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.valueOf(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(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateDocumentMetadata.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); 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 @@ -1106,45 +1217,54 @@ 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. */ public Builder setTotalPages(long value) { - + totalPages_ = value; onChanged(); 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() { - + totalPages_ = 0L; onChanged(); 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 @@ -1152,45 +1272,54 @@ 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. */ public Builder setTranslatedPages(long value) { - + translatedPages_ = value; onChanged(); 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() { - + translatedPages_ = 0L; onChanged(); 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 @@ -1198,45 +1327,54 @@ 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. */ public Builder setFailedPages(long value) { - + failedPages_ = value; onChanged(); 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() { - + failedPages_ = 0L; onChanged(); 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 @@ -1244,44 +1382,53 @@ 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. */ public Builder setTotalBillablePages(long value) { - + totalBillablePages_ = value; onChanged(); 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() { - + totalBillablePages_ = 0L; onChanged(); 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 @@ -1289,43 +1436,52 @@ 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. */ public Builder setTotalCharacters(long value) { - + totalCharacters_ = value; onChanged(); 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() { - + totalCharacters_ = 0L; onChanged(); 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 @@ -1333,45 +1489,54 @@ 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. */ public Builder setTranslatedCharacters(long value) { - + translatedCharacters_ = value; onChanged(); 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() { - + translatedCharacters_ = 0L; onChanged(); 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 @@ -1379,45 +1544,54 @@ 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. */ public Builder setFailedCharacters(long value) { - + failedCharacters_ = value; onChanged(); 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() { - + failedCharacters_ = 0L; onChanged(); 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 @@ -1425,32 +1599,38 @@ 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. */ public Builder setTotalBillableCharacters(long value) { - + totalBillableCharacters_ = value; onChanged(); 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() { - + totalBillableCharacters_ = 0L; onChanged(); return this; @@ -1458,34 +1638,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 submitTimeBuilder_ != null || submitTime_ != null; } /** + * + * *
      * 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.
      * 
@@ -1506,14 +1699,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(); onChanged(); @@ -1524,6 +1718,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1534,7 +1730,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1546,6 +1742,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1564,6 +1762,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1571,11 +1771,13 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 10; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1586,11 +1788,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.
      * 
@@ -1598,21 +1803,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); } @@ -1622,12 +1830,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(); } @@ -1636,16 +1845,16 @@ 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 { - return new BatchTranslateDocumentMetadata(input, extensionRegistry); - } - }; + 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 { + return new BatchTranslateDocumentMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1660,6 +1869,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.translate.v3.BatchTranslateDocumentMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java similarity index 81% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java index a2a7d1b0c..eb703cf71 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentMetadataOrBuilder.java @@ -1,137 +1,191 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java similarity index 65% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java index 113a744f0..add6a3414 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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_ = ""; @@ -28,16 +46,15 @@ private BatchTranslateDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateDocumentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchTranslateDocumentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,102 +74,121 @@ private BatchTranslateDocumentRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + sourceLanguageCode_ = s; + break; } - targetLanguageCodes_.add(s); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - inputConfigs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + targetLanguageCodes_.add(s); + break; } - inputConfigs_.add( - input.readMessage(com.google.cloud.translate.v3.BatchDocumentInputConfig.parser(), extensionRegistry)); - break; - } - case 42: { - com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); + case 34: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + inputConfigs_ = + new java.util.ArrayList< + com.google.cloud.translate.v3.BatchDocumentInputConfig>(); + mutable_bitField0_ |= 0x00000002; + } + inputConfigs_.add( + input.readMessage( + com.google.cloud.translate.v3.BatchDocumentInputConfig.parser(), + extensionRegistry)); + break; } - outputConfig_ = input.readMessage(com.google.cloud.translate.v3.BatchDocumentOutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + case 42: + { + com.google.cloud.translate.v3.BatchDocumentOutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.translate.v3.BatchDocumentOutputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - models_ = com.google.protobuf.MapField.newMapField( - ModelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; + case 50: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + models_ = + com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry models__ = + input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + models_.getMutableMap().put(models__.getKey(), models__.getValue()); + break; } - com.google.protobuf.MapEntry - models__ = input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - models_.getMutableMap().put( - models__.getKey(), models__.getValue()); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - glossaries_ = com.google.protobuf.MapField.newMapField( - GlossariesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; + case 58: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + glossaries_ = + com.google.protobuf.MapField.newMapField( + GlossariesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + glossaries__ = + input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + glossaries_.getMutableMap().put(glossaries__.getKey(), glossaries__.getValue()); + break; } - com.google.protobuf.MapEntry - glossaries__ = input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - glossaries_.getMutableMap().put( - glossaries__.getKey(), glossaries__.getValue()); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - formatConversions_ = com.google.protobuf.MapField.newMapField( - FormatConversionsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; + case 66: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + formatConversions_ = + com.google.protobuf.MapField.newMapField( + FormatConversionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry formatConversions__ = + input.readMessage( + FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + formatConversions_ + .getMutableMap() + .put(formatConversions__.getKey(), formatConversions__.getValue()); + break; } - com.google.protobuf.MapEntry - formatConversions__ = input.readMessage( - FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - formatConversions_.getMutableMap().put( - formatConversions__.getKey(), formatConversions__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { targetLanguageCodes_ = targetLanguageCodes_.getUnmodifiableView(); @@ -164,15 +200,15 @@ private BatchTranslateDocumentRequest( makeExtensionsImmutable(); } } - 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(); @@ -181,21 +217,25 @@ 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -205,7 +245,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 @@ -214,14 +257,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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -231,17 +275,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 { @@ -252,6 +297,8 @@ public java.lang.String getParent() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; 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
@@ -259,6 +306,7 @@ public java.lang.String getParent() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -267,14 +315,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
@@ -282,16 +331,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 { @@ -302,37 +350,48 @@ public java.lang.String getSourceLanguageCode() { public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList 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 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. */ @@ -340,23 +399,28 @@ 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; private java.util.List inputConfigs_; /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -364,13 +428,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.
@@ -378,14 +447,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.
@@ -393,13 +466,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.
@@ -407,13 +484,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.
@@ -421,7 +502,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( @@ -432,13 +515,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 @@ -446,52 +534,63 @@ 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() { + public com.google.cloud.translate.v3.BatchDocumentOutputConfigOrBuilder + getOutputConfigOrBuilder() { return getOutputConfig(); } 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, + ""); } - 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_; } @@ -500,6 +599,8 @@ 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,
@@ -515,22 +616,22 @@ 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 java.lang.NullPointerException(); }
+  public boolean containsModels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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,
@@ -547,11 +648,12 @@ public java.util.Map getModels() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   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,
@@ -568,16 +670,16 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getModelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetModels().getMap();
+  public java.lang.String getModelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    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,
@@ -594,12 +696,11 @@ public 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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -607,24 +708,32 @@ 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());
   }
+
+  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
-  internalGetGlossaries() {
+          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_;
   }
@@ -633,68 +742,85 @@ 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 java.lang.NullPointerException(); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { @@ -704,21 +830,22 @@ 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, + ""); } - 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); @@ -730,6 +857,8 @@ 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
@@ -741,24 +870,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 java.lang.NullPointerException(); } + public boolean containsFormatConversions(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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
@@ -770,14 +901,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
@@ -789,19 +923,22 @@ 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 getFormatConversionsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFormatConversions().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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
@@ -813,15 +950,16 @@ public 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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetFormatConversions().getMap(); + public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -829,6 +967,7 @@ public java.lang.String getFormatConversionsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -840,8 +979,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_); } @@ -857,20 +995,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, @@ -899,42 +1028,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__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -944,32 +1074,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.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 (!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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1015,114 +1138,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(); @@ -1131,13 +1261,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(); @@ -1146,16 +1275,18 @@ 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() @@ -1163,17 +1294,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getInputConfigsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1202,9 +1333,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 @@ -1223,7 +1354,8 @@ 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); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.sourceLanguageCode_ = sourceLanguageCode_; @@ -1260,38 +1392,39 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -1299,7 +1432,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_; onChanged(); @@ -1336,9 +1470,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentReq inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000002); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputConfigsFieldBuilder() : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputConfigsFieldBuilder() + : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1347,12 +1482,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateDocumentReq if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableModels().mergeFrom( - other.internalGetModels()); - internalGetMutableGlossaries().mergeFrom( - other.internalGetGlossaries()); - internalGetMutableFormatConversions().mergeFrom( - other.internalGetFormatConversions()); + internalGetMutableModels().mergeFrom(other.internalGetModels()); + internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); + internalGetMutableFormatConversions().mergeFrom(other.internalGetFormatConversions()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1372,7 +1504,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.BatchTranslateDocumentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1381,10 +1514,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1394,14 +1530,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; @@ -1410,6 +1548,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1419,16 +1559,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 { @@ -1436,6 +1577,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1445,21 +1588,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1469,16 +1616,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1488,17 +1640,19 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1506,6 +1660,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
@@ -1513,13 +1669,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; @@ -1528,6 +1684,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
@@ -1535,15 +1693,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 { @@ -1551,6 +1708,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
@@ -1558,20 +1717,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) { + public Builder setSourceLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; 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
@@ -1579,15 +1740,18 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); 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
@@ -1595,60 +1759,73 @@ 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) { + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTargetLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * 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_.getUnmodifiableView(); } /** + * + * *
      * 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. */ @@ -1656,85 +1833,100 @@ 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) { + public Builder setTargetLanguageCodes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); 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 targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes( - java.lang.String value) { + public Builder addTargetLanguageCodes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); 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 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_); 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() { @@ -1744,21 +1936,24 @@ public Builder clearTargetLanguageCodes() { 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) { + public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); onChanged(); @@ -1766,18 +1961,26 @@ public Builder addTargetLanguageCodesBytes( } private java.util.List inputConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureInputConfigsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - inputConfigs_ = new java.util.ArrayList(inputConfigs_); + inputConfigs_ = + new java.util.ArrayList( + inputConfigs_); bitField0_ |= 0x00000002; - } + } } 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.
@@ -1785,9 +1988,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 { @@ -1795,6 +2001,8 @@ public java.util.List ge } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1802,7 +2010,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) { @@ -1812,6 +2022,8 @@ public int getInputConfigsCount() { } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1819,7 +2031,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) { @@ -1829,6 +2043,8 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfig getInputConfigs(in } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1836,7 +2052,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) { @@ -1853,6 +2071,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1860,7 +2080,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) { @@ -1874,6 +2096,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1881,7 +2105,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) { @@ -1897,6 +2123,8 @@ public Builder addInputConfigs(com.google.cloud.translate.v3.BatchDocumentInputC return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1904,7 +2132,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) { @@ -1921,6 +2151,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1928,7 +2160,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) { @@ -1942,6 +2176,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1949,7 +2185,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) { @@ -1963,6 +2201,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1970,14 +2210,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); @@ -1985,6 +2227,8 @@ public Builder addAllInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1992,7 +2236,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) { @@ -2005,6 +2251,8 @@ public Builder clearInputConfigs() { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2012,7 +2260,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) { @@ -2025,6 +2275,8 @@ public Builder removeInputConfigs(int index) { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2032,13 +2284,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.
@@ -2046,16 +2302,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.
@@ -2063,10 +2324,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 { @@ -2074,6 +2337,8 @@ public com.google.cloud.translate.v3.BatchDocumentInputConfigOrBuilder getInputC } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2081,13 +2346,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.
@@ -2095,14 +2364,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.
@@ -2110,22 +2384,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_ & 0x00000002) != 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_ & 0x00000002) != 0), getParentForChildren(), isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2133,45 +2412,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 outputConfigBuilder_ != null || 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. */ 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) { @@ -2187,13 +2485,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) { @@ -2207,19 +2509,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.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 (outputConfig_ != null) { outputConfig_ = - com.google.cloud.translate.v3.BatchDocumentOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3.BatchDocumentOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -2231,13 +2540,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() { if (outputConfigBuilder_ == null) { @@ -2251,75 +2564,92 @@ 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() { + 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() { - onChanged();; + internalGetMutableModels() { + onChanged(); + ; 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,6 +2661,8 @@ 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,
@@ -2346,22 +2678,22 @@ 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 java.lang.NullPointerException(); }
+    public boolean containsModels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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,
@@ -2378,11 +2710,12 @@ public java.util.Map getModels() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     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,
@@ -2399,16 +2732,17 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getModelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetModels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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,
@@ -2425,12 +2759,11 @@ public 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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2438,11 +2771,12 @@ public java.lang.String getModelsOrThrow(
     }
 
     public Builder clearModels() {
-      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,
@@ -2458,23 +2792,21 @@ 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 java.lang.NullPointerException(); }
-      internalGetMutableModels().getMutableMap()
-          .remove(key);
+    public Builder removeModels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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() {
       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,
@@ -2490,16 +2822,19 @@ 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 java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableModels().getMutableMap()
-          .put(key, value);
+    public Builder putModels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableModels().getMutableMap().put(key, value);
       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,
@@ -2515,30 +2850,33 @@ 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);
       return this;
     }
 
     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 glossaries_;
     }
-    private com.google.protobuf.MapField
-    internalGetMutableGlossaries() {
-      onChanged();;
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig>
+        internalGetMutableGlossaries() {
+      onChanged();
+      ;
       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();
@@ -2550,70 +2888,89 @@ 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 java.lang.NullPointerException(); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2621,80 +2978,93 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOr } public Builder clearGlossaries() { - 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 java.lang.NullPointerException(); } - internalGetMutableGlossaries().getMutableMap() - .remove(key); + public Builder removeGlossaries(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableGlossaries().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableGlossaries() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + getMutableGlossaries() { 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableGlossaries().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableGlossaries().getMutableMap().put(key, value); 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); 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() { + internalGetFormatConversions() { if (formatConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( FormatConversionsDefaultEntryHolder.defaultEntry); } return formatConversions_; } + private com.google.protobuf.MapField - internalGetMutableFormatConversions() { - onChanged();; + internalGetMutableFormatConversions() { + onChanged(); + ; 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(); @@ -2706,6 +3076,8 @@ 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
@@ -2717,24 +3089,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 java.lang.NullPointerException(); } + public boolean containsFormatConversions(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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
@@ -2746,14 +3120,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
@@ -2765,19 +3142,23 @@ 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 getFormatConversionsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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
@@ -2789,13 +3170,15 @@ public 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 java.lang.NullPointerException(); } + public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { @@ -2805,11 +3188,12 @@ public java.lang.String getFormatConversionsOrThrow( } public Builder clearFormatConversions() { - 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
@@ -2821,25 +3205,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 java.lang.NullPointerException(); } - internalGetMutableFormatConversions().getMutableMap() - .remove(key); + public Builder removeFormatConversions(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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() { 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
@@ -2851,18 +3235,23 @@ 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableFormatConversions().getMutableMap() - .put(key, value); + public Builder putFormatConversions(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableFormatConversions().getMutableMap().put(key, value); 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
@@ -2874,18 +3263,18 @@ 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); 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); } @@ -2895,12 +3284,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(); } @@ -2909,16 +3298,16 @@ 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 { - return new BatchTranslateDocumentRequest(input, extensionRegistry); - } - }; + 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 { + return new BatchTranslateDocumentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2933,6 +3322,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.translate.v3.BatchTranslateDocumentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java index f61fa1c8d..389933122 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -17,11 +35,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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -31,13 +54,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
@@ -45,10 +72,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
@@ -56,57 +86,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.
@@ -114,11 +160,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.
@@ -126,10 +175,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.
@@ -137,10 +190,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.
@@ -148,11 +205,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.
@@ -160,45 +221,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,
@@ -216,6 +295,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,
@@ -231,15 +312,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,
@@ -255,9 +334,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,
@@ -273,11 +353,10 @@ boolean containsModels(
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getModelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getModelsOrDefault(java.lang.String key, 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,
@@ -293,65 +372,79 @@ 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]; + * */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); + java.lang.String key, 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
@@ -363,10 +456,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
@@ -378,17 +475,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
@@ -400,11 +497,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
@@ -416,13 +516,15 @@ 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.lang.String getFormatConversionsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String key, 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
@@ -434,9 +536,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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java similarity index 74% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java index 7524dfc5e..c7fcbe1fd 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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,30 +30,30 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BatchTranslateDocumentResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,113 +72,122 @@ private BatchTranslateDocumentResponse(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            totalPages_ = input.readInt64();
-            break;
-          }
-          case 16: {
-
-            translatedPages_ = input.readInt64();
-            break;
-          }
-          case 24: {
-
-            failedPages_ = input.readInt64();
-            break;
-          }
-          case 32: {
-
-            totalBillablePages_ = input.readInt64();
-            break;
-          }
-          case 40: {
-
-            totalCharacters_ = input.readInt64();
-            break;
-          }
-          case 48: {
-
-            translatedCharacters_ = input.readInt64();
-            break;
-          }
-          case 56: {
-
-            failedCharacters_ = input.readInt64();
-            break;
-          }
-          case 64: {
-
-            totalBillableCharacters_ = input.readInt64();
-            break;
-          }
-          case 74: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (submitTime_ != null) {
-              subBuilder = submitTime_.toBuilder();
+          case 8:
+            {
+              totalPages_ = input.readInt64();
+              break;
             }
-            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(submitTime_);
-              submitTime_ = subBuilder.buildPartial();
+          case 16:
+            {
+              translatedPages_ = input.readInt64();
+              break;
             }
-
-            break;
-          }
-          case 82: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (endTime_ != null) {
-              subBuilder = endTime_.toBuilder();
+          case 24:
+            {
+              failedPages_ = input.readInt64();
+              break;
             }
-            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(endTime_);
-              endTime_ = subBuilder.buildPartial();
+          case 32:
+            {
+              totalBillablePages_ = input.readInt64();
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 40:
+            {
+              totalCharacters_ = input.readInt64();
+              break;
+            }
+          case 48:
+            {
+              translatedCharacters_ = input.readInt64();
+              break;
+            }
+          case 56:
+            {
+              failedCharacters_ = input.readInt64();
+              break;
+            }
+          case 64:
+            {
+              totalBillableCharacters_ = input.readInt64();
+              break;
+            }
+          case 74:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (submitTime_ != null) {
+                subBuilder = submitTime_.toBuilder();
+              }
+              submitTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(submitTime_);
+                submitTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 82:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (endTime_ != null) {
+                subBuilder = endTime_.toBuilder();
+              }
+              endTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(endTime_);
+                endTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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_;
   /**
+   *
+   *
    * 
    * 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 @@ -172,12 +198,15 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 2; 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 @@ -188,12 +217,15 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 3; 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 @@ -204,12 +236,15 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 4; 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 @@ -220,11 +255,14 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 5; private long totalCharacters_; /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; + * * @return The totalCharacters. */ @java.lang.Override @@ -235,12 +273,15 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 6; private long translatedCharacters_; /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; + * * @return The translatedCharacters. */ @java.lang.Override @@ -251,12 +292,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 7; 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 @@ -267,12 +311,15 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 8; 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 @@ -283,11 +330,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 @@ -295,11 +345,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 @@ -307,6 +360,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -321,6 +376,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
@@ -328,6 +385,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -335,6 +393,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -342,6 +402,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return The endTime. */ @java.lang.Override @@ -349,6 +410,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
@@ -363,6 +426,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -374,8 +438,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_);
     }
@@ -416,44 +479,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -463,38 +516,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -508,29 +552,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();
@@ -545,96 +581,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]
@@ -644,21 +688,23 @@ 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()
@@ -666,16 +712,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -711,13 +756,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();
     }
 
@@ -732,7 +778,8 @@ 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);
+      com.google.cloud.translate.v3.BatchTranslateDocumentResponse result =
+          new com.google.cloud.translate.v3.BatchTranslateDocumentResponse(this);
       result.totalPages_ = totalPages_;
       result.translatedPages_ = translatedPages_;
       result.failedPages_ = failedPages_;
@@ -759,38 +806,39 @@ public com.google.cloud.translate.v3.BatchTranslateDocumentResponse buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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;
@@ -798,7 +846,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());
       }
@@ -848,7 +898,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.translate.v3.BatchTranslateDocumentResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.translate.v3.BatchTranslateDocumentResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -858,14 +909,17 @@ public Builder mergeFrom(
       return this;
     }
 
-    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 @@ -873,45 +927,54 @@ 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. */ public Builder setTotalPages(long value) { - + totalPages_ = value; onChanged(); 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() { - + totalPages_ = 0L; onChanged(); 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 @@ -919,45 +982,54 @@ 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. */ public Builder setTranslatedPages(long value) { - + translatedPages_ = value; onChanged(); 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() { - + translatedPages_ = 0L; onChanged(); 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 @@ -965,45 +1037,54 @@ 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. */ public Builder setFailedPages(long value) { - + failedPages_ = value; onChanged(); 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() { - + failedPages_ = 0L; onChanged(); 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 @@ -1011,44 +1092,53 @@ 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. */ public Builder setTotalBillablePages(long value) { - + totalBillablePages_ = value; onChanged(); 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() { - + totalBillablePages_ = 0L; onChanged(); 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 @@ -1056,43 +1146,52 @@ 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. */ public Builder setTotalCharacters(long value) { - + totalCharacters_ = value; onChanged(); return this; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { - + totalCharacters_ = 0L; onChanged(); 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 @@ -1100,45 +1199,54 @@ 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. */ public Builder setTranslatedCharacters(long value) { - + translatedCharacters_ = value; onChanged(); return this; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { - + translatedCharacters_ = 0L; onChanged(); 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 @@ -1146,45 +1254,54 @@ 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. */ public Builder setFailedCharacters(long value) { - + failedCharacters_ = value; onChanged(); 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() { - + failedCharacters_ = 0L; onChanged(); 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 @@ -1192,32 +1309,38 @@ 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. */ public Builder setTotalBillableCharacters(long value) { - + totalBillableCharacters_ = value; onChanged(); 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() { - + totalBillableCharacters_ = 0L; onChanged(); return this; @@ -1225,34 +1348,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 submitTimeBuilder_ != null || submitTime_ != null; } /** + * + * *
      * 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.
      * 
@@ -1273,14 +1409,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(); onChanged(); @@ -1291,6 +1428,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1301,7 +1440,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1313,6 +1452,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1331,6 +1472,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1338,11 +1481,13 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 9; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1353,11 +1498,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.
      * 
@@ -1365,14 +1513,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_; @@ -1380,8 +1531,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
@@ -1389,12 +1545,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1402,6 +1561,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1412,6 +1572,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1434,6 +1596,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
@@ -1442,8 +1606,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();
         onChanged();
@@ -1454,6 +1617,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1466,7 +1631,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1478,6 +1643,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
@@ -1498,6 +1665,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1507,11 +1676,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 10;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1524,11 +1695,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
@@ -1538,21 +1710,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);
     }
 
@@ -1562,12 +1737,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();
   }
@@ -1576,16 +1752,16 @@ 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 {
-      return new BatchTranslateDocumentResponse(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new BatchTranslateDocumentResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1600,6 +1776,4 @@ public com.google.protobuf.Parser getParserForTy
   public com.google.cloud.translate.v3.BatchTranslateDocumentResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
similarity index 82%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
index ba1d11008..748a8f9c7 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateDocumentResponseOrBuilder.java
@@ -1,118 +1,166 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
similarity index 73%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
index 188bac60c..534d33d72 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadata.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchTranslateMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,82 +70,90 @@ private BatchTranslateMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 16: { - - translatedCharacters_ = input.readInt64(); - break; - } - case 24: { + case 8: + { + int rawValue = input.readEnum(); - failedCharacters_ = input.readInt64(); - break; - } - case 32: { - - totalCharacters_ = input.readInt64(); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (submitTime_ != null) { - subBuilder = submitTime_.toBuilder(); + state_ = rawValue; + break; } - submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submitTime_); - submitTime_ = subBuilder.buildPartial(); + case 16: + { + translatedCharacters_ = input.readInt64(); + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 24: + { + failedCharacters_ = input.readInt64(); + break; + } + case 32: + { + totalCharacters_ = input.readInt64(); + break; + } + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (submitTime_ != null) { + subBuilder = submitTime_.toBuilder(); + } + submitTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(submitTime_); + submitTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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.
      * 
@@ -137,6 +162,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -145,6 +172,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -154,6 +183,8 @@ public enum State
      */
     SUCCEEDED(2),
     /**
+     *
+     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -162,6 +193,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -171,6 +204,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -184,6 +219,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Invalid.
      * 
@@ -192,6 +229,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -200,6 +239,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -209,6 +250,8 @@ public enum State
      */
     public static final int SUCCEEDED_VALUE = 2;
     /**
+     *
+     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -217,6 +260,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.
@@ -226,6 +271,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
@@ -236,7 +283,6 @@ public enum State
      */
     public static final int CANCELLED_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -261,52 +307,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;
@@ -326,38 +377,52 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
+   *
+   *
    * 
    * 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() { + @java.lang.Override + public com.google.cloud.translate.v3.BatchTranslateMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3.BatchTranslateMetadata.State result = com.google.cloud.translate.v3.BatchTranslateMetadata.State.valueOf(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.valueOf(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_; /** + * + * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -368,12 +433,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; 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 @@ -384,6 +452,8 @@ public long getFailedCharacters() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 4; private long totalCharacters_; /** + * + * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -391,6 +461,7 @@ public long getFailedCharacters() {
    * 
* * int64 total_characters = 4; + * * @return The totalCharacters. */ @java.lang.Override @@ -401,11 +472,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 @@ -413,11 +487,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 @@ -425,6 +502,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -437,6 +516,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -448,9 +528,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) { @@ -474,25 +555,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -502,24 +580,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -535,14 +610,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(); @@ -553,117 +625,126 @@ 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() @@ -671,16 +752,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -702,9 +782,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 @@ -723,7 +803,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); + com.google.cloud.translate.v3.BatchTranslateMetadata result = + new com.google.cloud.translate.v3.BatchTranslateMetadata(this); result.state_ = state_; result.translatedCharacters_ = translatedCharacters_; result.failedCharacters_ = failedCharacters_; @@ -741,38 +822,39 @@ public com.google.cloud.translate.v3.BatchTranslateMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -780,7 +862,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()); } @@ -815,7 +898,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.BatchTranslateMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.BatchTranslateMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -827,51 +911,67 @@ public Builder mergeFrom( 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3.BatchTranslateMetadata.State result = com.google.cloud.translate.v3.BatchTranslateMetadata.State.valueOf(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.valueOf(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. */ @@ -879,33 +979,39 @@ public Builder setState(com.google.cloud.translate.v3.BatchTranslateMetadata.Sta if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3.BatchTranslateMetadata.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); 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 @@ -913,43 +1019,52 @@ 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. */ public Builder setTranslatedCharacters(long value) { - + translatedCharacters_ = value; onChanged(); return this; } /** + * + * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { - + translatedCharacters_ = 0L; onChanged(); 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 @@ -957,39 +1072,47 @@ 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. */ public Builder setFailedCharacters(long value) { - + failedCharacters_ = value; onChanged(); 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() { - + failedCharacters_ = 0L; onChanged(); 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
@@ -997,6 +1120,7 @@ public Builder clearFailedCharacters() {
      * 
* * int64 total_characters = 4; + * * @return The totalCharacters. */ @java.lang.Override @@ -1004,6 +1128,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
@@ -1011,16 +1137,19 @@ public long getTotalCharacters() {
      * 
* * int64 total_characters = 4; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ public Builder setTotalCharacters(long value) { - + totalCharacters_ = value; onChanged(); return this; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1028,10 +1157,11 @@ public Builder setTotalCharacters(long value) {
      * 
* * int64 total_characters = 4; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { - + totalCharacters_ = 0L; onChanged(); return this; @@ -1039,34 +1169,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 submitTimeBuilder_ != null || submitTime_ != null; } /** + * + * *
      * 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.
      * 
@@ -1087,14 +1230,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(); onChanged(); @@ -1105,6 +1249,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1115,7 +1261,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1127,6 +1273,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1145,6 +1293,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1152,11 +1302,13 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 5; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1167,11 +1319,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.
      * 
@@ -1179,21 +1334,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); } @@ -1203,12 +1361,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(); } @@ -1217,16 +1375,16 @@ 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 { - return new BatchTranslateMetadata(input, extensionRegistry); - } - }; + 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 { + return new BatchTranslateMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1241,6 +1399,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.BatchTranslateMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java index 337d2d9e0..9833c9206 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateMetadataOrBuilder.java @@ -1,53 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java similarity index 73% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java index 7709d2e72..1d9f9f1d7 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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,30 +30,29 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BatchTranslateResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,87 +71,96 @@ private BatchTranslateResponse(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            totalCharacters_ = input.readInt64();
-            break;
-          }
-          case 16: {
-
-            translatedCharacters_ = input.readInt64();
-            break;
-          }
-          case 24: {
-
-            failedCharacters_ = input.readInt64();
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (submitTime_ != null) {
-              subBuilder = submitTime_.toBuilder();
+          case 8:
+            {
+              totalCharacters_ = input.readInt64();
+              break;
             }
-            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(submitTime_);
-              submitTime_ = subBuilder.buildPartial();
+          case 16:
+            {
+              translatedCharacters_ = input.readInt64();
+              break;
             }
-
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (endTime_ != null) {
-              subBuilder = endTime_.toBuilder();
+          case 24:
+            {
+              failedCharacters_ = input.readInt64();
+              break;
             }
-            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(endTime_);
-              endTime_ = subBuilder.buildPartial();
+          case 34:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (submitTime_ != null) {
+                subBuilder = submitTime_.toBuilder();
+              }
+              submitTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(submitTime_);
+                submitTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 42:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (endTime_ != null) {
+                subBuilder = endTime_.toBuilder();
+              }
+              endTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(endTime_);
+                endTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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_;
   /**
+   *
+   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; + * * @return The totalCharacters. */ @java.lang.Override @@ -146,11 +171,14 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_; /** + * + * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -161,11 +189,14 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_; /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -176,11 +207,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 @@ -188,11 +222,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 @@ -200,6 +237,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -214,6 +253,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
@@ -221,6 +262,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -228,6 +270,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -235,6 +279,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ @java.lang.Override @@ -242,6 +287,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
@@ -256,6 +303,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -267,8 +315,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_);
     }
@@ -294,24 +341,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -321,28 +363,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -356,14 +394,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();
@@ -378,96 +413,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]
@@ -477,21 +519,23 @@ 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()
@@ -499,16 +543,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -534,9 +577,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
@@ -555,7 +598,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);
+      com.google.cloud.translate.v3.BatchTranslateResponse result =
+          new com.google.cloud.translate.v3.BatchTranslateResponse(this);
       result.totalCharacters_ = totalCharacters_;
       result.translatedCharacters_ = translatedCharacters_;
       result.failedCharacters_ = failedCharacters_;
@@ -577,38 +621,39 @@ public com.google.cloud.translate.v3.BatchTranslateResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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;
@@ -616,7 +661,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());
       }
@@ -651,7 +697,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.translate.v3.BatchTranslateResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.translate.v3.BatchTranslateResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -661,13 +708,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private long totalCharacters_ ;
+    private long totalCharacters_;
     /**
+     *
+     *
      * 
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; + * * @return The totalCharacters. */ @java.lang.Override @@ -675,42 +725,51 @@ 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. */ public Builder setTotalCharacters(long value) { - + totalCharacters_ = value; onChanged(); return this; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { - + totalCharacters_ = 0L; onChanged(); 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 @@ -718,42 +777,51 @@ 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. */ public Builder setTranslatedCharacters(long value) { - + translatedCharacters_ = value; onChanged(); return this; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { - + translatedCharacters_ = 0L; onChanged(); 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 @@ -761,30 +829,36 @@ 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. */ public Builder setFailedCharacters(long value) { - + failedCharacters_ = value; onChanged(); return this; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { - + failedCharacters_ = 0L; onChanged(); return this; @@ -792,34 +866,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 submitTimeBuilder_ != null || submitTime_ != null; } /** + * + * *
      * 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.
      * 
@@ -840,14 +927,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(); onChanged(); @@ -858,6 +946,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -868,7 +958,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -880,6 +970,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -898,6 +990,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -905,11 +999,13 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 4; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -920,11 +1016,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.
      * 
@@ -932,14 +1031,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_; @@ -947,8 +1049,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
@@ -956,12 +1063,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -969,6 +1079,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -979,6 +1090,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1001,6 +1114,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
@@ -1009,8 +1124,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();
         onChanged();
@@ -1021,6 +1135,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1033,7 +1149,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1045,6 +1161,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
@@ -1065,6 +1183,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1074,11 +1194,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1091,11 +1213,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
@@ -1105,21 +1228,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);
     }
 
@@ -1129,12 +1255,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();
   }
@@ -1143,16 +1269,16 @@ 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 {
-      return new BatchTranslateResponse(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new BatchTranslateResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1167,6 +1293,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.BatchTranslateResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
similarity index 76%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
index e7a723c70..59d3e3653 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateResponseOrBuilder.java
@@ -1,61 +1,94 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
similarity index 65%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
index 1ef9f9d6f..d68282046 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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_ = ""; @@ -28,16 +46,15 @@ private BatchTranslateTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateTextRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchTranslateTextRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,102 +74,114 @@ private BatchTranslateTextRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + sourceLanguageCode_ = s; + break; } - targetLanguageCodes_.add(s); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - models_ = com.google.protobuf.MapField.newMapField( - ModelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + targetLanguageCodes_.add(s); + break; } - com.google.protobuf.MapEntry - models__ = input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - models_.getMutableMap().put( - models__.getKey(), models__.getValue()); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - inputConfigs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 34: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + models_ = + com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry models__ = + input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + models_.getMutableMap().put(models__.getKey(), models__.getValue()); + break; } - inputConfigs_.add( - input.readMessage(com.google.cloud.translate.v3.InputConfig.parser(), extensionRegistry)); - break; - } - case 50: { - com.google.cloud.translate.v3.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); + case 42: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + inputConfigs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + inputConfigs_.add( + input.readMessage( + com.google.cloud.translate.v3.InputConfig.parser(), extensionRegistry)); + break; } - outputConfig_ = input.readMessage(com.google.cloud.translate.v3.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + case 50: + { + com.google.cloud.translate.v3.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.translate.v3.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - glossaries_ = com.google.protobuf.MapField.newMapField( - GlossariesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; + case 58: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + glossaries_ = + com.google.protobuf.MapField.newMapField( + GlossariesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + glossaries__ = + input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + glossaries_.getMutableMap().put(glossaries__.getKey(), glossaries__.getValue()); + break; } - com.google.protobuf.MapEntry - glossaries__ = input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - glossaries_.getMutableMap().put( - glossaries__.getKey(), glossaries__.getValue()); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; + case 74: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { targetLanguageCodes_ = targetLanguageCodes_.getUnmodifiableView(); @@ -164,15 +193,15 @@ private BatchTranslateTextRequest( makeExtensionsImmutable(); } } - 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(); @@ -181,21 +210,25 @@ 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Location to make a call. Must refer to a caller's project.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -205,7 +238,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 @@ -214,14 +250,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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -231,17 +268,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 { @@ -252,11 +290,14 @@ public java.lang.String getParent() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; 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 @@ -265,29 +306,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 { @@ -298,34 +339,45 @@ public java.lang.String getSourceLanguageCode() { public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList 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 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. */ @@ -333,38 +385,40 @@ 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, + ""); } - 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_; } @@ -373,6 +427,8 @@ 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,
@@ -388,22 +444,22 @@ 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 java.lang.NullPointerException(); }
+  public boolean containsModels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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,
@@ -420,11 +476,12 @@ public java.util.Map getModels() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   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,
@@ -441,16 +498,16 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getModelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetModels().getMap();
+  public java.lang.String getModelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    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,
@@ -467,12 +524,11 @@ public 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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -482,6 +538,8 @@ public java.lang.String getModelsOrThrow(
   public static final int INPUT_CONFIGS_FIELD_NUMBER = 5;
   private java.util.List inputConfigs_;
   /**
+   *
+   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -489,13 +547,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.
@@ -503,14 +565,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.
@@ -518,13 +584,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.
@@ -532,13 +602,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.
@@ -546,24 +620,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 @@ -571,27 +651,38 @@ 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() { @@ -599,24 +690,32 @@ public com.google.cloud.translate.v3.OutputConfigOrBuilder getOutputConfigOrBuil } 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()); } + + 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 - internalGetGlossaries() { + 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_; } @@ -625,72 +724,89 @@ 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 java.lang.NullPointerException(); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { @@ -700,24 +816,23 @@ 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, + ""); } - 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_; } @@ -726,6 +841,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -738,22 +855,22 @@ 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 java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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.
    * Label keys and values can be no longer than 63 characters
@@ -767,11 +884,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -785,16 +903,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -808,12 +926,11 @@ public 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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -821,6 +938,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -832,8 +950,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_);
     }
@@ -843,30 +960,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);
     unknownFields.writeTo(output);
   }
 
@@ -890,43 +995,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -936,32 +1042,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1007,114 +1106,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(); @@ -1123,13 +1229,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(); @@ -1138,16 +1243,18 @@ 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() @@ -1155,17 +1262,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getInputConfigsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1194,9 +1301,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 @@ -1215,7 +1322,8 @@ 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); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.sourceLanguageCode_ = sourceLanguageCode_; @@ -1252,38 +1360,39 @@ public com.google.cloud.translate.v3.BatchTranslateTextRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -1291,7 +1400,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_; onChanged(); @@ -1310,8 +1420,7 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest } onChanged(); } - internalGetMutableModels().mergeFrom( - other.internalGetModels()); + internalGetMutableModels().mergeFrom(other.internalGetModels()); if (inputConfigsBuilder_ == null) { if (!other.inputConfigs_.isEmpty()) { if (inputConfigs_.isEmpty()) { @@ -1330,9 +1439,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000004); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputConfigsFieldBuilder() : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputConfigsFieldBuilder() + : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1341,10 +1451,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3.BatchTranslateTextRequest if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableGlossaries().mergeFrom( - other.internalGetGlossaries()); - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1364,7 +1472,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.BatchTranslateTextRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.BatchTranslateTextRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1373,10 +1482,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1386,14 +1498,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; @@ -1402,6 +1516,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1411,16 +1527,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 { @@ -1428,6 +1545,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1437,21 +1556,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1461,16 +1584,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1480,17 +1608,19 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1498,18 +1628,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; @@ -1518,20 +1650,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 { @@ -1539,95 +1672,115 @@ 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) { + public Builder setSourceLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; 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() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); 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) { + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTargetLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * 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_.getUnmodifiableView(); } /** + * + * *
      * 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. */ @@ -1635,80 +1788,95 @@ 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) { + public Builder setTargetLanguageCodes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); 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 targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes( - java.lang.String value) { + public Builder addTargetLanguageCodes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); 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 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_); 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() { @@ -1718,42 +1886,44 @@ public Builder clearTargetLanguageCodes() { 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) { + public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); onChanged(); 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() { - onChanged();; + internalGetMutableModels() { + onChanged(); + ; 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,6 +1935,8 @@ 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,
@@ -1780,22 +1952,22 @@ 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 java.lang.NullPointerException(); }
+    public boolean containsModels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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,
@@ -1812,11 +1984,12 @@ public java.util.Map getModels() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     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,
@@ -1833,16 +2006,17 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getModelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetModels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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,
@@ -1859,12 +2033,11 @@ public 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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1872,11 +2045,12 @@ public java.lang.String getModelsOrThrow(
     }
 
     public Builder clearModels() {
-      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,
@@ -1892,23 +2066,21 @@ 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 java.lang.NullPointerException(); }
-      internalGetMutableModels().getMutableMap()
-          .remove(key);
+    public Builder removeModels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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() {
       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,
@@ -1924,16 +2096,19 @@ 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 java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableModels().getMutableMap()
-          .put(key, value);
+    public Builder putModels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableModels().getMutableMap().put(key, value);
       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,
@@ -1949,27 +2124,31 @@ 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);
       return this;
     }
 
     private java.util.List inputConfigs_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureInputConfigsIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
-        inputConfigs_ = new java.util.ArrayList(inputConfigs_);
+        inputConfigs_ =
+            new java.util.ArrayList(inputConfigs_);
         bitField0_ |= 0x00000004;
-       }
+      }
     }
 
     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.
@@ -1977,7 +2156,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) { @@ -1987,6 +2168,8 @@ public java.util.List getInputConfigs } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1994,7 +2177,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) { @@ -2004,6 +2189,8 @@ public int getInputConfigsCount() { } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2011,7 +2198,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) { @@ -2021,6 +2210,8 @@ public com.google.cloud.translate.v3.InputConfig getInputConfigs(int index) { } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2028,10 +2219,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(); @@ -2045,6 +2237,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2052,7 +2246,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) { @@ -2066,6 +2262,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2073,7 +2271,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) { @@ -2089,6 +2289,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.
@@ -2096,10 +2298,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(); @@ -2113,6 +2316,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2120,7 +2325,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) { @@ -2134,6 +2341,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2141,7 +2350,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) { @@ -2155,6 +2366,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2162,14 +2375,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); @@ -2177,6 +2391,8 @@ public Builder addAllInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2184,7 +2400,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) { @@ -2197,6 +2415,8 @@ public Builder clearInputConfigs() { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2204,7 +2424,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) { @@ -2217,6 +2439,8 @@ public Builder removeInputConfigs(int index) { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2224,13 +2448,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.
@@ -2238,16 +2465,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.
@@ -2255,10 +2486,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 { @@ -2266,6 +2499,8 @@ public com.google.cloud.translate.v3.InputConfigOrBuilder getInputConfigsOrBuild } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2273,13 +2508,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.
@@ -2287,14 +2526,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.
@@ -2302,22 +2544,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_ & 0x00000004) != 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_ & 0x00000004) != 0), getParentForChildren(), isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2325,45 +2572,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 outputConfigBuilder_ != null || 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. */ 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) { @@ -2379,13 +2645,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) { @@ -2399,19 +2669,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.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 (outputConfig_ != null) { outputConfig_ = - com.google.cloud.translate.v3.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -2423,13 +2699,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() { if (outputConfigBuilder_ == null) { @@ -2443,75 +2723,97 @@ 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() { - + 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.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 - 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 glossaries_; } - private com.google.protobuf.MapField - internalGetMutableGlossaries() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + internalGetMutableGlossaries() { + onChanged(); + ; 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(); @@ -2523,74 +2825,93 @@ 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 java.lang.NullPointerException(); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2598,83 +2919,92 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOr } public Builder clearGlossaries() { - 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 java.lang.NullPointerException(); } - internalGetMutableGlossaries().getMutableMap() - .remove(key); + public Builder removeGlossaries(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableGlossaries().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableGlossaries() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3.TranslateTextGlossaryConfig> + getMutableGlossaries() { 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableGlossaries().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.translate.v3.TranslateTextGlossaryConfig value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableGlossaries().getMutableMap().put(key, value); 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); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -2686,6 +3016,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2698,22 +3030,22 @@ 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 java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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.
      * Label keys and values can be no longer than 63 characters
@@ -2727,11 +3059,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2745,16 +3078,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2768,12 +3102,11 @@ public 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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2781,11 +3114,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2798,23 +3132,21 @@ 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 java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2827,16 +3159,19 @@ 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 java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2849,16 +3184,13 @@ 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);
       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);
     }
 
@@ -2868,12 +3200,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();
   }
@@ -2882,16 +3214,16 @@ 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 {
-      return new BatchTranslateTextRequest(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new BatchTranslateTextRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2906,6 +3238,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3.BatchTranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
similarity index 73%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
index d5daed594..06bc5fefe 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/BatchTranslateTextRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -17,11 +35,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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -31,74 +54,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,
@@ -116,6 +162,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,
@@ -131,15 +179,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,
@@ -155,9 +201,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,
@@ -173,11 +220,10 @@ boolean containsModels(
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getModelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getModelsOrDefault(java.lang.String key, 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,
@@ -193,11 +239,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.
@@ -205,11 +251,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.
@@ -217,10 +266,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.
@@ -228,10 +281,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.
@@ -239,11 +296,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.
@@ -251,104 +312,135 @@ 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]; + * */ - com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrDefault( - java.lang.String key, - com.google.cloud.translate.v3.TranslateTextGlossaryConfig defaultValue); + java.lang.String key, 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.
    * Label keys and values can be no longer than 63 characters
@@ -363,6 +455,8 @@ com.google.cloud.translate.v3.TranslateTextGlossaryConfig getGlossariesOrThrow(
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -375,15 +469,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.
    * Label keys and values can be no longer than 63 characters
@@ -396,9 +488,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.
    * Label keys and values can be no longer than 63 characters
@@ -411,11 +504,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -428,7 +520,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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
similarity index 72%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
index 661334b85..29082ec13 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadata.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,16 +46,15 @@ private CreateGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateGlossaryMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CreateGlossaryMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,73 +73,82 @@ private CreateGlossaryMetadata(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              name_ = s;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (submitTime_ != null) {
-              subBuilder = submitTime_.toBuilder();
+              state_ = rawValue;
+              break;
             }
-            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(submitTime_);
-              submitTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (submitTime_ != null) {
+                subBuilder = submitTime_.toBuilder();
+              }
+              submitTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(submitTime_);
+                submitTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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.
      * 
@@ -131,6 +157,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -139,6 +167,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The glossary was successfully created.
      * 
@@ -147,6 +177,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * Failed to create the glossary.
      * 
@@ -155,6 +187,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -164,6 +198,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -175,6 +211,8 @@ public enum State ; /** + * + * *
      * Invalid.
      * 
@@ -183,6 +221,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -191,6 +231,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The glossary was successfully created.
      * 
@@ -199,6 +241,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * Failed to create the glossary.
      * 
@@ -207,6 +251,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.
@@ -216,6 +262,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -224,7 +272,6 @@ public enum State */ public static final int CANCELLED_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -249,52 +296,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; @@ -314,11 +366,14 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -327,29 +382,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 { @@ -360,38 +415,52 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.translate.v3.CreateGlossaryMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3.CreateGlossaryMetadata.State.valueOf(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.valueOf(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 @@ -399,11 +468,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 @@ -411,6 +483,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.
    * 
@@ -423,6 +497,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -434,12 +509,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) { @@ -457,13 +533,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -473,20 +549,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -513,96 +588,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]
@@ -611,21 +693,23 @@ 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()
@@ -633,16 +717,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -660,9 +743,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
@@ -681,7 +764,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);
+      com.google.cloud.translate.v3.CreateGlossaryMetadata result =
+          new com.google.cloud.translate.v3.CreateGlossaryMetadata(this);
       result.name_ = name_;
       result.state_ = state_;
       if (submitTimeBuilder_ == null) {
@@ -697,38 +781,39 @@ public com.google.cloud.translate.v3.CreateGlossaryMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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;
@@ -736,7 +821,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_;
         onChanged();
@@ -766,7 +852,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.translate.v3.CreateGlossaryMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.translate.v3.CreateGlossaryMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -778,18 +865,20 @@ public Builder mergeFrom(
 
     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; @@ -798,20 +887,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 { @@ -819,54 +909,61 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -874,51 +971,67 @@ 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3.CreateGlossaryMetadata.State.valueOf(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.valueOf(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. */ @@ -926,21 +1039,24 @@ public Builder setState(com.google.cloud.translate.v3.CreateGlossaryMetadata.Sta if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); 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() { - + state_ = 0; onChanged(); return this; @@ -948,34 +1064,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 submitTimeBuilder_ != null || submitTime_ != null; } /** + * + * *
      * 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.
      * 
@@ -996,14 +1125,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(); onChanged(); @@ -1014,6 +1144,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1024,7 +1156,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1036,6 +1168,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1054,6 +1188,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1061,11 +1197,13 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 3; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1076,11 +1214,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.
      * 
@@ -1088,21 +1229,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); } @@ -1112,12 +1256,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(); } @@ -1126,16 +1270,16 @@ 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 { - return new CreateGlossaryMetadata(input, extensionRegistry); - } - }; + 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 { + return new CreateGlossaryMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1150,6 +1294,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.CreateGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java index 91012a73b..5d2f18e04 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryMetadataOrBuilder.java @@ -1,70 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java similarity index 62% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java index 216870ba2..74a4df700 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateGlossaryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,65 +70,76 @@ private CreateGlossaryRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.translate.v3.Glossary.Builder subBuilder = null; - if (glossary_ != null) { - subBuilder = glossary_.toBuilder(); + parent_ = s; + break; } - glossary_ = input.readMessage(com.google.cloud.translate.v3.Glossary.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossary_); - glossary_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.translate.v3.Glossary.Builder subBuilder = null; + if (glossary_ != null) { + subBuilder = glossary_.toBuilder(); + } + glossary_ = + input.readMessage( + com.google.cloud.translate.v3.Glossary.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossary_); + glossary_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -120,29 +148,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 { @@ -153,11 +183,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 @@ -165,23 +200,34 @@ 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() { @@ -189,6 +235,7 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossaryOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +247,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_); } @@ -221,8 +267,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,19 +277,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -269,117 +313,126 @@ 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() @@ -387,16 +440,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +464,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 @@ -433,7 +485,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); + com.google.cloud.translate.v3.CreateGlossaryRequest result = + new com.google.cloud.translate.v3.CreateGlossaryRequest(this); result.parent_ = parent_; if (glossaryBuilder_ == null) { result.glossary_ = glossary_; @@ -448,38 +501,39 @@ public com.google.cloud.translate.v3.CreateGlossaryRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -487,7 +541,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_; onChanged(); @@ -514,7 +569,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.CreateGlossaryRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.CreateGlossaryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -526,18 +582,22 @@ public Builder mergeFrom( 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; @@ -546,20 +606,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 { @@ -567,54 +630,67 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -622,39 +698,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 glossaryBuilder_ != null || 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. */ 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) { @@ -670,14 +765,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(); onChanged(); @@ -688,17 +786,23 @@ 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 (glossary_ != null) { glossary_ = - com.google.cloud.translate.v3.Glossary.newBuilder(glossary_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3.Glossary.newBuilder(glossary_) + .mergeFrom(value) + .buildPartial(); } else { glossary_ = value; } @@ -710,11 +814,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() { if (glossaryBuilder_ == null) { @@ -728,55 +836,71 @@ 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() { - + onChanged(); 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); } @@ -786,12 +910,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(); } @@ -800,16 +924,16 @@ 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 { - return new CreateGlossaryRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateGlossaryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -824,6 +948,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.CreateGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java new file mode 100644 index 000000000..90dbc8f39 --- /dev/null +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/CreateGlossaryRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java similarity index 72% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java index 4a6ab8fdf..bb27c1b2f 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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,16 +46,15 @@ private DeleteGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteGlossaryMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private DeleteGlossaryMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,73 +73,82 @@ private DeleteGlossaryMetadata(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              name_ = s;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (submitTime_ != null) {
-              subBuilder = submitTime_.toBuilder();
+              state_ = rawValue;
+              break;
             }
-            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(submitTime_);
-              submitTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (submitTime_ != null) {
+                subBuilder = submitTime_.toBuilder();
+              }
+              submitTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(submitTime_);
+                submitTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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.
      * 
@@ -131,6 +157,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -139,6 +167,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The glossary was successfully deleted.
      * 
@@ -147,6 +177,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * Failed to delete the glossary.
      * 
@@ -155,6 +187,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -164,6 +198,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -175,6 +211,8 @@ public enum State ; /** + * + * *
      * Invalid.
      * 
@@ -183,6 +221,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -191,6 +231,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The glossary was successfully deleted.
      * 
@@ -199,6 +241,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * Failed to delete the glossary.
      * 
@@ -207,6 +251,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.
@@ -216,6 +262,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -224,7 +272,6 @@ public enum State */ public static final int CANCELLED_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -249,52 +296,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; @@ -314,11 +366,14 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -327,29 +382,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 { @@ -360,38 +415,52 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.translate.v3.DeleteGlossaryMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.valueOf(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.valueOf(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 @@ -399,11 +468,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 @@ -411,6 +483,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.
    * 
@@ -423,6 +497,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -434,12 +509,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) { @@ -457,13 +533,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -473,20 +549,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -513,96 +588,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]
@@ -611,21 +693,23 @@ 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()
@@ -633,16 +717,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -660,9 +743,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
@@ -681,7 +764,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);
+      com.google.cloud.translate.v3.DeleteGlossaryMetadata result =
+          new com.google.cloud.translate.v3.DeleteGlossaryMetadata(this);
       result.name_ = name_;
       result.state_ = state_;
       if (submitTimeBuilder_ == null) {
@@ -697,38 +781,39 @@ public com.google.cloud.translate.v3.DeleteGlossaryMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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;
@@ -736,7 +821,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_;
         onChanged();
@@ -766,7 +852,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.translate.v3.DeleteGlossaryMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.translate.v3.DeleteGlossaryMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -778,18 +865,20 @@ public Builder mergeFrom(
 
     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; @@ -798,20 +887,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 { @@ -819,54 +909,61 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -874,51 +971,67 @@ 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3.DeleteGlossaryMetadata.State.valueOf(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.valueOf(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. */ @@ -926,21 +1039,24 @@ public Builder setState(com.google.cloud.translate.v3.DeleteGlossaryMetadata.Sta if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); 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() { - + state_ = 0; onChanged(); return this; @@ -948,34 +1064,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 submitTimeBuilder_ != null || submitTime_ != null; } /** + * + * *
      * 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.
      * 
@@ -996,14 +1125,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(); onChanged(); @@ -1014,6 +1144,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1024,7 +1156,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1036,6 +1168,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1054,6 +1188,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1061,11 +1197,13 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 3; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1076,11 +1214,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.
      * 
@@ -1088,21 +1229,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); } @@ -1112,12 +1256,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(); } @@ -1126,16 +1270,16 @@ 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 { - return new DeleteGlossaryMetadata(input, extensionRegistry); - } - }; + 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 { + return new DeleteGlossaryMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1150,6 +1294,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DeleteGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java index 47cc452ba..9fb092a35 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryMetadataOrBuilder.java @@ -1,70 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java similarity index 65% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java index 2be018d15..dac71e757 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteGlossaryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private DeleteGlossaryRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -107,29 +132,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 { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,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_); } @@ -174,15 +201,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +229,126 @@ 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() @@ -320,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +374,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 @@ -360,7 +395,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); + com.google.cloud.translate.v3.DeleteGlossaryRequest result = + new com.google.cloud.translate.v3.DeleteGlossaryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.translate.v3.DeleteGlossaryRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -409,7 +446,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_; onChanged(); @@ -433,7 +471,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.DeleteGlossaryRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.DeleteGlossaryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +484,22 @@ public Builder mergeFrom( 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; @@ -465,20 +508,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 { @@ -486,61 +532,74 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; 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); } @@ -550,12 +609,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(); } @@ -564,16 +623,16 @@ 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 { - return new DeleteGlossaryRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteGlossaryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DeleteGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java new file mode 100644 index 000000000..de0e1ac16 --- /dev/null +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java similarity index 72% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java index 702a67901..ef2fedc8a 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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,31 +29,31 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private DeleteGlossaryResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,78 +72,88 @@ private DeleteGlossaryResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (submitTime_ != null) {
-              subBuilder = submitTime_.toBuilder();
-            }
-            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(submitTime_);
-              submitTime_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (submitTime_ != null) {
+                subBuilder = submitTime_.toBuilder();
+              }
+              submitTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(submitTime_);
+                submitTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (endTime_ != null) {
-              subBuilder = endTime_.toBuilder();
-            }
-            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(endTime_);
-              endTime_ = subBuilder.buildPartial();
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (endTime_ != null) {
+                subBuilder = endTime_.toBuilder();
+              }
+              endTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(endTime_);
+                endTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -135,29 +162,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 { @@ -168,11 +195,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 @@ -180,11 +210,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 @@ -192,6 +225,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.
    * 
@@ -206,6 +241,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
@@ -213,6 +250,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -220,6 +258,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
@@ -227,6 +267,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ @java.lang.Override @@ -234,6 +275,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
@@ -248,6 +291,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -259,8 +303,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_);
     }
@@ -283,12 +326,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -298,24 +339,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -344,96 +383,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]
@@ -442,21 +488,23 @@ 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()
@@ -464,16 +512,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -495,9 +542,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
@@ -516,7 +563,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);
+      com.google.cloud.translate.v3.DeleteGlossaryResponse result =
+          new com.google.cloud.translate.v3.DeleteGlossaryResponse(this);
       result.name_ = name_;
       if (submitTimeBuilder_ == null) {
         result.submitTime_ = submitTime_;
@@ -536,38 +584,39 @@ public com.google.cloud.translate.v3.DeleteGlossaryResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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;
@@ -575,7 +624,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_;
         onChanged();
@@ -605,7 +655,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.translate.v3.DeleteGlossaryResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.translate.v3.DeleteGlossaryResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -617,18 +668,20 @@ public Builder mergeFrom(
 
     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; @@ -637,20 +690,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 { @@ -658,54 +712,61 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -713,34 +774,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 submitTimeBuilder_ != null || submitTime_ != null; } /** + * + * *
      * 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.
      * 
@@ -761,14 +835,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(); onChanged(); @@ -779,6 +854,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -789,7 +866,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -801,6 +878,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -819,6 +898,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -826,11 +907,13 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 2; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -841,11 +924,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.
      * 
@@ -853,14 +939,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_; @@ -868,8 +957,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
@@ -877,12 +971,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -890,6 +987,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -900,6 +998,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
@@ -922,6 +1022,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
@@ -930,8 +1032,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();
         onChanged();
@@ -942,6 +1043,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -954,7 +1057,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -966,6 +1069,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
@@ -986,6 +1091,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -995,11 +1102,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1012,11 +1121,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
@@ -1026,21 +1136,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);
     }
 
@@ -1050,12 +1163,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();
   }
@@ -1064,16 +1177,16 @@ 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 {
-      return new DeleteGlossaryResponse(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new DeleteGlossaryResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1088,6 +1201,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DeleteGlossaryResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
similarity index 73%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
index e406e3597..e7ce985aa 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DeleteGlossaryResponseOrBuilder.java
@@ -1,51 +1,80 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
similarity index 72%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
index 279dd2c37..4c674d9b2 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,16 +45,15 @@ private DetectLanguageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectLanguageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetectLanguageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,95 +73,103 @@ private DetectLanguageRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 1; - source_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + model_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + parent_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -160,25 +185,29 @@ 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -190,7 +219,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 @@ -199,14 +231,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.
@@ -218,17 +251,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 { @@ -239,6 +273,8 @@ public java.lang.String getParent() { public static final int MODEL_FIELD_NUMBER = 4; private volatile java.lang.Object model_; /** + * + * *
    * Optional. The language detection model to be used.
    * Format:
@@ -249,6 +285,7 @@ public java.lang.String getParent() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -257,14 +294,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.
    * Format:
@@ -275,16 +313,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 { @@ -294,22 +331,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() { @@ -320,8 +363,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; @@ -330,23 +372,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; } @@ -359,12 +402,15 @@ public java.lang.String getContent() { public static final int MIME_TYPE_FIELD_NUMBER = 3; 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 @@ -373,30 +419,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 { @@ -405,24 +451,23 @@ 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, + ""); } - 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_; } @@ -431,6 +476,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -443,22 +490,22 @@ 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 java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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.
    * Label keys and values can be no longer than 63 characters
@@ -472,11 +519,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -490,16 +538,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -513,12 +561,11 @@ public 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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -526,6 +573,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -537,8 +585,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_);
     }
@@ -551,12 +598,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);
     unknownFields.writeTo(output);
   }
 
@@ -578,15 +621,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -596,26 +639,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:
@@ -655,139 +694,146 @@ 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() @@ -795,16 +841,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -821,9 +866,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 @@ -842,7 +887,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); + com.google.cloud.translate.v3.DetectLanguageRequest result = + new com.google.cloud.translate.v3.DetectLanguageRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.model_ = model_; @@ -861,38 +907,39 @@ public com.google.cloud.translate.v3.DetectLanguageRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -900,7 +947,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_; onChanged(); @@ -913,18 +961,19 @@ public Builder mergeFrom(com.google.cloud.translate.v3.DetectLanguageRequest oth mimeType_ = other.mimeType_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); 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.unknownFields); onChanged(); @@ -945,7 +994,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.DetectLanguageRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.DetectLanguageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -954,12 +1004,12 @@ public Builder mergeFrom( } 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() { @@ -973,6 +1023,8 @@ public Builder clearSource() { private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -984,14 +1036,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; @@ -1000,6 +1054,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1011,16 +1067,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 +1085,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1039,21 +1098,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1065,16 +1128,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1086,17 +1154,19 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1104,6 +1174,8 @@ public Builder setParentBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1114,13 +1186,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; @@ -1129,6 +1201,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1139,15 +1213,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 { @@ -1155,6 +1228,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1165,20 +1240,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) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1189,15 +1266,18 @@ public Builder setModel(
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1208,27 +1288,30 @@ 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) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -1236,11 +1319,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 @@ -1250,8 +1336,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; @@ -1262,24 +1347,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; } @@ -1289,30 +1375,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) { + public Builder setContent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 1; + 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() { @@ -1324,20 +1415,22 @@ 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) { + public Builder setContentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 1; source_ = value; onChanged(); @@ -1346,19 +1439,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; @@ -1367,21 +1462,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 { @@ -1389,78 +1485,84 @@ 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) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; 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() { - + mimeType_ = getDefaultInstance().getMimeType(); 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]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -1472,6 +1574,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1484,22 +1588,22 @@ 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 java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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.
      * Label keys and values can be no longer than 63 characters
@@ -1513,11 +1617,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1531,16 +1636,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1554,12 +1660,11 @@ public 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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1567,11 +1672,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1584,23 +1690,21 @@ 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 java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1613,16 +1717,19 @@ 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 java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1635,16 +1742,13 @@ 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);
       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);
     }
 
@@ -1654,12 +1758,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();
   }
@@ -1668,16 +1772,16 @@ 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 {
-      return new DetectLanguageRequest(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new DetectLanguageRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1692,6 +1796,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DetectLanguageRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
similarity index 79%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
index 510f4c138..df6f7e15d 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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.
@@ -19,11 +37,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.
@@ -35,13 +58,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.
    * Format:
@@ -52,10 +79,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.
    * Format:
@@ -66,63 +96,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.
    * Label keys and values can be no longer than 63 characters
@@ -137,6 +182,8 @@ public interface DetectLanguageRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -149,15 +196,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.
    * Label keys and values can be no longer than 63 characters
@@ -170,9 +215,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.
    * Label keys and values can be no longer than 63 characters
@@ -185,11 +231,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -202,9 +247,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);
 
   public com.google.cloud.translate.v3.DetectLanguageRequest.SourceCase getSourceCase();
 }
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
similarity index 75%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
index f3b7a5c94..e2be566e7 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponse.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetectLanguageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,29 +71,31 @@ private DetectLanguageResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languages_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languages_.add( + input.readMessage( + com.google.cloud.translate.v3.DetectedLanguage.parser(), extensionRegistry)); + break; } - languages_.add( - input.readMessage(com.google.cloud.translate.v3.DetectedLanguage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -85,22 +104,27 @@ private DetectLanguageResponse( makeExtensionsImmutable(); } } - 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; 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.
@@ -113,6 +137,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.
@@ -121,11 +147,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.
@@ -138,6 +166,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.
@@ -150,6 +180,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.
@@ -158,12 +190,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;
@@ -175,8 +207,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));
     }
@@ -190,8 +221,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -201,15 +231,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -231,117 +261,126 @@ 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() @@ -349,17 +388,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLanguagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +412,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 @@ -394,7 +433,8 @@ 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); int from_bitField0_ = bitField0_; if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -413,38 +453,39 @@ public com.google.cloud.translate.v3.DetectLanguageResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -452,7 +493,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()) { @@ -471,9 +513,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_); } @@ -498,7 +541,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.DetectLanguageResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.DetectLanguageResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -507,21 +551,29 @@ public Builder mergeFrom( } 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.
@@ -537,6 +589,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.
@@ -552,6 +606,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.
@@ -567,6 +623,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.
@@ -574,8 +632,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();
@@ -589,6 +646,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.
@@ -608,6 +667,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.
@@ -629,6 +690,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.
@@ -636,8 +699,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();
@@ -651,6 +713,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.
@@ -670,6 +734,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.
@@ -689,6 +755,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.
@@ -700,8 +768,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);
@@ -709,6 +776,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.
@@ -727,6 +796,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.
@@ -745,6 +816,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.
@@ -752,11 +825,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.
@@ -767,11 +841,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.
@@ -779,8 +856,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 {
@@ -788,6 +865,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.
@@ -796,10 +875,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.
@@ -807,12 +888,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.
@@ -820,27 +902,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);
     }
 
@@ -850,12 +935,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();
   }
@@ -864,16 +949,16 @@ 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 {
-      return new DetectLanguageResponse(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new DetectLanguageResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -888,6 +973,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.DetectLanguageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
similarity index 72%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
index 10d47edde..b0ef344a2 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectLanguageResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
similarity index 71%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
index 5594ed94b..19ccc370a 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetectedLanguage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,58 +70,64 @@ private DetectedLanguage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - languageCode_ = s; - break; - } - case 21: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + case 21: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -113,30 +136,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 { @@ -147,11 +170,14 @@ public java.lang.String getLanguageCode() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** + * + * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -160,6 +186,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +198,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_); } @@ -192,8 +218,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (confidence_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -203,18 +228,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,125 +253,133 @@ 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) + unknownFields.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() @@ -355,16 +387,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +407,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 @@ -397,7 +428,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); + com.google.cloud.translate.v3.DetectedLanguage result = + new com.google.cloud.translate.v3.DetectedLanguage(this); result.languageCode_ = languageCode_; result.confidence_ = confidence_; onBuilt(); @@ -408,38 +440,39 @@ public com.google.cloud.translate.v3.DetectedLanguage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -486,19 +519,21 @@ public Builder mergeFrom( 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; @@ -507,21 +542,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 { @@ -529,69 +565,79 @@ 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) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; 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() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); 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) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); 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 @@ -599,37 +645,43 @@ 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. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; 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); } @@ -639,12 +691,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(); } @@ -653,16 +705,16 @@ 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 { - return new DetectedLanguage(input, extensionRegistry); - } - }; + 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 { + return new DetectedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -677,6 +729,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java similarity index 56% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java index 37d3969b9..3ccbae42a 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguageOrBuilder.java @@ -1,40 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java similarity index 74% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java index 62827a9fa..ef772498f 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfig.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DocumentInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,72 +70,81 @@ private DocumentInputConfig( case 0: done = true; break; - case 10: { - sourceCase_ = 1; - source_ = input.readBytes(); - break; - } - case 18: { - com.google.cloud.translate.v3.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = ((com.google.cloud.translate.v3.GcsSource) source_).toBuilder(); + case 10: + { + sourceCase_ = 1; + source_ = input.readBytes(); + break; } - source_ = - input.readMessage(com.google.cloud.translate.v3.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsSource) source_); - source_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.translate.v3.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.translate.v3.GcsSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.translate.v3.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 2; + break; } - sourceCase_ = 2; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + mimeType_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -134,30 +160,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 @@ -165,11 +197,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 @@ -182,12 +217,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 @@ -195,22 +233,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
@@ -221,7 +264,7 @@ 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();
   }
@@ -229,6 +272,8 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
   public static final int MIME_TYPE_FIELD_NUMBER = 4;
   private volatile java.lang.Object mimeType_;
   /**
+   *
+   *
    * 
    * Specifies the input document's mime_type.
    * If not specified it will be determined using the file extension for
@@ -242,6 +287,7 @@ public com.google.cloud.translate.v3.GcsSourceOrBuilder getGcsSourceOrBuilder()
    * 
* * string mime_type = 4; + * * @return The mimeType. */ @java.lang.Override @@ -250,14 +296,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.
    * If not specified it will be determined using the file extension for
@@ -271,16 +318,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 { @@ -289,6 +335,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -300,11 +347,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_); @@ -322,13 +367,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_); @@ -341,24 +387,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: @@ -394,117 +438,126 @@ 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() @@ -512,16 +565,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -533,9 +585,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 @@ -554,7 +606,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); + com.google.cloud.translate.v3.DocumentInputConfig result = + new com.google.cloud.translate.v3.DocumentInputConfig(this); if (sourceCase_ == 1) { result.source_ = source_; } @@ -575,38 +628,39 @@ public com.google.cloud.translate.v3.DocumentInputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -614,23 +668,27 @@ 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_; 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.unknownFields); onChanged(); @@ -651,7 +709,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.DocumentInputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.DocumentInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -660,12 +719,12 @@ public Builder mergeFrom( } 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() { @@ -675,24 +734,29 @@ public Builder clearSource() { return this; } - /** + * + * *
      * 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() { @@ -702,29 +766,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(); - } - sourceCase_ = 1; + 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() { @@ -737,14 +807,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 @@ -752,12 +828,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 @@ -775,6 +854,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
@@ -796,6 +877,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
@@ -803,8 +886,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();
@@ -815,6 +897,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -824,10 +908,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;
         }
@@ -842,6 +929,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
@@ -866,6 +955,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -877,6 +968,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
@@ -896,6 +989,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
@@ -904,26 +999,34 @@ 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());
         source_ = null;
       }
       sourceCase_ = 2;
-      onChanged();;
+      onChanged();
+      ;
       return gcsSourceBuilder_;
     }
 
     private java.lang.Object mimeType_ = "";
     /**
+     *
+     *
      * 
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -937,13 +1040,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; @@ -952,6 +1055,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -965,15 +1070,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 { @@ -981,6 +1085,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -994,20 +1100,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) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** + * + * *
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -1021,15 +1129,18 @@ public Builder setMimeType(
      * 
* * string mime_type = 4; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** + * + * *
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -1043,23 +1154,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) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; 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); } @@ -1069,12 +1180,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(); } @@ -1083,16 +1194,16 @@ 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 { - return new DocumentInputConfig(input, extensionRegistry); - } - }; + 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 { + return new DocumentInputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1107,6 +1218,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java similarity index 79% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java index bcc485c0b..5ef7fe41c 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentInputConfigOrBuilder.java @@ -1,52 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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.
    * If not specified it will be determined using the file extension for
@@ -70,10 +102,13 @@ public interface DocumentInputConfigOrBuilder extends
    * 
* * string mime_type = 4; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Specifies the input document's mime_type.
    * If not specified it will be determined using the file extension for
@@ -87,10 +122,10 @@ public interface DocumentInputConfigOrBuilder extends
    * 
* * string mime_type = 4; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); public com.google.cloud.translate.v3.DocumentInputConfig.SourceCase getSourceCase(); } diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java similarity index 82% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java index 15693d5ba..a6a44efb4 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfig.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DocumentOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,66 +70,75 @@ private DocumentOutputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = ((com.google.cloud.translate.v3.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage(com.google.cloud.translate.v3.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.translate.v3.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = + ((com.google.cloud.translate.v3.GcsDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.translate.v3.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 1; + break; } - destinationCase_ = 1; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + mimeType_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -128,24 +154,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/`.
@@ -183,7 +213,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 @@ -191,6 +224,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -228,17 +263,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/`.
@@ -276,12 +316,14 @@ 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(); } @@ -289,6 +331,8 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr public static final int MIME_TYPE_FIELD_NUMBER = 3; 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
@@ -302,6 +346,7 @@ public com.google.cloud.translate.v3.GcsDestinationOrBuilder getGcsDestinationOr
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -310,14 +355,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
@@ -331,16 +377,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 { @@ -349,6 +394,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -360,8 +406,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_); } @@ -378,8 +423,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_); @@ -392,20 +438,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: @@ -437,117 +482,126 @@ 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() @@ -555,16 +609,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -576,9 +629,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 @@ -597,7 +650,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); + com.google.cloud.translate.v3.DocumentOutputConfig result = + new com.google.cloud.translate.v3.DocumentOutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -615,38 +669,39 @@ public com.google.cloud.translate.v3.DocumentOutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -654,19 +709,22 @@ 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_; 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.unknownFields); onChanged(); @@ -687,7 +745,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.DocumentOutputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.DocumentOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -696,12 +755,12 @@ public Builder mergeFrom( } 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() { @@ -711,10 +770,14 @@ public Builder clearDestination() { return this; } - 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/`.
@@ -752,7 +815,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 @@ -760,6 +826,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -797,7 +865,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 @@ -815,6 +886,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/`.
@@ -852,7 +925,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) { @@ -868,6 +943,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/`.
@@ -905,7 +982,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) { @@ -919,6 +998,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -956,14 +1037,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; } @@ -978,6 +1064,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/`.
@@ -1015,7 +1103,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) { @@ -1034,6 +1124,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1071,12 +1163,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/`.
@@ -1114,7 +1210,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() { @@ -1128,6 +1226,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/`.
@@ -1165,29 +1265,39 @@ 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()); destination_ = null; } destinationCase_ = 1; - onChanged();; + onChanged(); + ; return gcsDestinationBuilder_; } 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
@@ -1201,13 +1311,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; @@ -1216,6 +1326,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
@@ -1229,15 +1341,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 { @@ -1245,6 +1356,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
@@ -1258,20 +1371,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) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; 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
@@ -1285,15 +1400,18 @@ public Builder setMimeType(
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); 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
@@ -1307,23 +1425,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) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; 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); } @@ -1333,12 +1451,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(); } @@ -1347,16 +1465,16 @@ 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 { - return new DocumentOutputConfig(input, extensionRegistry); - } - }; + 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 { + return new DocumentOutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1371,6 +1489,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java similarity index 87% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java index ecaa9af64..9f863d830 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentOutputConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/`.
@@ -45,11 +63,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/`.
@@ -87,11 +110,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/`.
@@ -129,11 +157,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
@@ -147,10 +179,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
@@ -164,10 +199,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(); public com.google.cloud.translate.v3.DocumentOutputConfig.DestinationCase getDestinationCase(); } diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java similarity index 74% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java index 06bd343c1..0234b4a66 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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,16 +45,15 @@ private DocumentTranslation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentTranslation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DocumentTranslation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,40 +73,42 @@ private DocumentTranslation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - byteStreamOutputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + byteStreamOutputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + byteStreamOutputs_.add(input.readBytes()); + break; } - byteStreamOutputs_.add(input.readBytes()); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - detectedLanguageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + detectedLanguageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { byteStreamOutputs_ = java.util.Collections.unmodifiableList(byteStreamOutputs_); // C @@ -98,22 +117,27 @@ private DocumentTranslation( makeExtensionsImmutable(); } } - 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; 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
@@ -121,14 +145,16 @@ private DocumentTranslation(
    * 
* * 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
@@ -136,12 +162,15 @@ private DocumentTranslation(
    * 
* * 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
@@ -149,6 +178,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. */ @@ -159,11 +189,14 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ @java.lang.Override @@ -172,29 +205,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 { @@ -205,6 +238,8 @@ public java.lang.String getMimeType() { public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 3; 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,
@@ -214,6 +249,7 @@ public java.lang.String getMimeType() {
    * 
* * string detected_language_code = 3; + * * @return The detectedLanguageCode. */ @java.lang.Override @@ -222,14 +258,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,
@@ -239,16 +276,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 { @@ -257,6 +293,7 @@ public java.lang.String getDetectedLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,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 { for (int i = 0; i < byteStreamOutputs_.size(); i++) { output.writeBytes(1, byteStreamOutputs_.get(i)); } @@ -291,8 +327,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(); @@ -311,19 +347,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -349,117 +383,126 @@ 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() @@ -467,16 +510,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +532,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 @@ -511,7 +553,8 @@ 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); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { byteStreamOutputs_ = java.util.Collections.unmodifiableList(byteStreamOutputs_); @@ -528,38 +571,39 @@ public com.google.cloud.translate.v3.DocumentTranslation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -567,7 +611,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_; @@ -605,7 +650,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.DocumentTranslation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.DocumentTranslation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -614,16 +660,22 @@ public Builder mergeFrom( } 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
@@ -631,14 +683,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
@@ -646,12 +701,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
@@ -659,6 +717,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. */ @@ -666,6 +725,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
@@ -673,21 +734,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) { + public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - ensureByteStreamOutputsIsMutable(); + 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
@@ -695,19 +758,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(); - } - ensureByteStreamOutputsIsMutable(); + 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
@@ -715,18 +781,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
@@ -734,6 +802,7 @@ public Builder addAllByteStreamOutputs(
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @return This builder for chaining. */ public Builder clearByteStreamOutputs() { @@ -745,18 +814,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; @@ -765,20 +836,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 { @@ -786,54 +858,61 @@ 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) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); 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) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; @@ -841,6 +920,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,
@@ -850,13 +931,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; @@ -865,6 +946,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,
@@ -874,15 +957,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 { @@ -890,6 +972,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,
@@ -899,20 +983,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) { + public Builder setDetectedLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + detectedLanguageCode_ = value; onChanged(); return this; } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -922,15 +1008,18 @@ public Builder setDetectedLanguageCode(
      * 
* * string detected_language_code = 3; + * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { - + detectedLanguageCode_ = getDefaultInstance().getDetectedLanguageCode(); onChanged(); return this; } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -940,23 +1029,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) { + public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detectedLanguageCode_ = value; 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); } @@ -966,12 +1055,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(); } @@ -980,16 +1069,16 @@ 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 { - return new DocumentTranslation(input, extensionRegistry); - } - }; + 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 { + return new DocumentTranslation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1004,6 +1093,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.DocumentTranslation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java similarity index 76% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java index a0de30876..7e00d3346 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DocumentTranslationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java similarity index 73% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java index df8dd569c..754e59a1a 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestination.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private GcsDestination( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - outputUriPrefix_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + outputUriPrefix_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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
@@ -103,6 +125,7 @@ private GcsDestination(
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUriPrefix. */ @java.lang.Override @@ -111,14 +134,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
@@ -128,16 +152,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 { @@ -146,6 +169,7 @@ public java.lang.String getOutputUriPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +181,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_); } @@ -182,15 +205,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -209,118 +232,127 @@ 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() @@ -328,16 +360,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +378,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 @@ -368,7 +399,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); + com.google.cloud.translate.v3.GcsDestination result = + new com.google.cloud.translate.v3.GcsDestination(this); result.outputUriPrefix_ = outputUriPrefix_; onBuilt(); return result; @@ -378,38 +410,39 @@ public com.google.cloud.translate.v3.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -453,6 +486,8 @@ public Builder mergeFrom( 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
@@ -462,13 +497,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; @@ -477,6 +512,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
@@ -486,15 +523,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 { @@ -502,6 +538,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
@@ -511,20 +549,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) { + public Builder setOutputUriPrefix(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUriPrefix_ = value; 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
@@ -534,15 +574,18 @@ public Builder setOutputUriPrefix(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { - + outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix(); 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,23 +595,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) { + public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUriPrefix_ = value; 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); } @@ -578,12 +621,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(); } @@ -592,16 +635,16 @@ 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 { - return new GcsDestination(input, extensionRegistry); - } - }; + 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 { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -616,6 +659,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java similarity index 64% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java index 70032240c..623f945bd 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java similarity index 70% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java index eb01c016d..adb4369b9 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSource.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,58 @@ private GcsSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - inputUri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + inputUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -107,29 +130,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 { @@ -138,6 +161,7 @@ public java.lang.String getInputUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,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_); } @@ -174,15 +197,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -201,118 +223,127 @@ 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() @@ -320,16 +351,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +369,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 @@ -360,7 +390,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); + com.google.cloud.translate.v3.GcsSource result = + new com.google.cloud.translate.v3.GcsSource(this); result.inputUri_ = inputUri_; onBuilt(); return result; @@ -370,38 +401,39 @@ public com.google.cloud.translate.v3.GcsSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -445,18 +477,20 @@ public Builder mergeFrom( 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; @@ -465,20 +499,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 { @@ -486,61 +521,68 @@ 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) { + public Builder setInputUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + inputUri_ = value; 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() { - + inputUri_ = getDefaultInstance().getInputUri(); onChanged(); 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) { + public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputUri_ = value; 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); } @@ -550,12 +592,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(); } @@ -564,16 +606,16 @@ 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 { - return new GcsSource(input, extensionRegistry); - } - }; + 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 { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +630,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java similarity index 52% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java index d2e2d20ee..dd91af19b 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GcsSourceOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java similarity index 66% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java index 28b72e6be..77ed251f4 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetGlossaryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private GetGlossaryRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -107,29 +132,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 { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,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_); } @@ -174,15 +201,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -201,118 +228,127 @@ 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() @@ -320,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +374,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 @@ -360,7 +395,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); + com.google.cloud.translate.v3.GetGlossaryRequest result = + new com.google.cloud.translate.v3.GetGlossaryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.translate.v3.GetGlossaryRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -409,7 +446,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_; onChanged(); @@ -445,18 +483,22 @@ public Builder mergeFrom( 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; @@ -465,20 +507,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 { @@ -486,61 +531,74 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; 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); } @@ -550,12 +608,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(); } @@ -564,16 +622,16 @@ 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 { - return new GetGlossaryRequest(input, extensionRegistry); - } - }; + 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 { + return new GetGlossaryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +646,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.GetGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java new file mode 100644 index 000000000..92058e74d --- /dev/null +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetGlossaryRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java similarity index 74% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java index de9521a8d..c892af190 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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,16 +45,15 @@ private GetSupportedLanguagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSupportedLanguagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetSupportedLanguagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,59 +72,66 @@ private GetSupportedLanguagesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - displayLanguageCode_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + displayLanguageCode_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + model_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -120,7 +144,10 @@ private GetSupportedLanguagesRequest(
    * 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 @@ -129,14 +156,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.
@@ -149,17 +177,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 { @@ -170,6 +199,8 @@ public java.lang.String getParent() { public static final int DISPLAY_LANGUAGE_CODE_FIELD_NUMBER = 1; 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
@@ -177,6 +208,7 @@ public java.lang.String getParent() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayLanguageCode. */ @java.lang.Override @@ -185,14 +217,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
@@ -200,16 +233,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 { @@ -220,6 +252,8 @@ public java.lang.String getDisplayLanguageCode() { public static final int MODEL_FIELD_NUMBER = 2; private volatile java.lang.Object model_; /** + * + * *
    * Optional. Get supported languages of this model.
    * The format depends on model type:
@@ -232,6 +266,7 @@ public java.lang.String getDisplayLanguageCode() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -240,14 +275,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.
    * The format depends on model type:
@@ -260,16 +296,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 { @@ -278,6 +313,7 @@ public java.lang.String getModel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +325,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_); } @@ -326,19 +361,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,117 +395,127 @@ 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() @@ -480,16 +523,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -503,9 +545,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 @@ -524,7 +566,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); + com.google.cloud.translate.v3.GetSupportedLanguagesRequest result = + new com.google.cloud.translate.v3.GetSupportedLanguagesRequest(this); result.parent_ = parent_; result.displayLanguageCode_ = displayLanguageCode_; result.model_ = model_; @@ -536,38 +579,39 @@ public com.google.cloud.translate.v3.GetSupportedLanguagesRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -575,7 +619,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_; onChanged(); @@ -607,7 +652,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.GetSupportedLanguagesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -619,6 +665,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -631,14 +679,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; @@ -647,6 +697,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -659,16 +711,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 { @@ -676,6 +729,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -688,21 +743,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -715,16 +774,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -737,17 +801,19 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -755,6 +821,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
@@ -762,13 +830,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; @@ -777,6 +845,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
@@ -784,15 +854,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 { @@ -800,6 +869,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
@@ -807,20 +878,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) { + public Builder setDisplayLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayLanguageCode_ = value; 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
@@ -828,15 +901,18 @@ public Builder setDisplayLanguageCode(
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayLanguageCode() { - + displayLanguageCode_ = getDefaultInstance().getDisplayLanguageCode(); 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
@@ -844,16 +920,16 @@ 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) { + public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayLanguageCode_ = value; onChanged(); return this; @@ -861,6 +937,8 @@ public Builder setDisplayLanguageCodeBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -873,13 +951,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; @@ -888,6 +966,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -900,15 +980,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 { @@ -916,6 +995,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -928,20 +1009,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) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -954,15 +1037,18 @@ public Builder setModel(
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -975,23 +1061,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) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; 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); } @@ -1001,12 +1087,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(); } @@ -1015,16 +1101,16 @@ 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 { - return new GetSupportedLanguagesRequest(input, extensionRegistry); - } - }; + 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 { + return new GetSupportedLanguagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1039,6 +1125,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.translate.v3.GetSupportedLanguagesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java index 38a02a921..bcf4d1f75 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GetSupportedLanguagesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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.
@@ -20,11 +38,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.
@@ -37,13 +60,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
@@ -51,10 +78,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
@@ -62,12 +92,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.
    * The format depends on model type:
@@ -80,10 +112,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.
    * The format depends on model type:
@@ -96,8 +131,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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java similarity index 73% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java index 8f7c2fbea..26506bbb4 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Glossary.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Glossary(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Glossary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,180 +70,217 @@ private Glossary( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 26: { - com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder subBuilder = null; - if (languagesCase_ == 3) { - subBuilder = ((com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_).toBuilder(); - } - languages_ = - input.readMessage(com.google.cloud.translate.v3.Glossary.LanguageCodePair.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_); - languages_ = subBuilder.buildPartial(); - } - languagesCase_ = 3; - break; - } - case 34: { - com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder subBuilder = null; - if (languagesCase_ == 4) { - subBuilder = ((com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_).toBuilder(); - } - languages_ = - input.readMessage(com.google.cloud.translate.v3.Glossary.LanguageCodesSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_); - languages_ = subBuilder.buildPartial(); + name_ = s; + break; } - languagesCase_ = 4; - break; - } - case 42: { - com.google.cloud.translate.v3.GlossaryInputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); + case 26: + { + com.google.cloud.translate.v3.Glossary.LanguageCodePair.Builder subBuilder = null; + if (languagesCase_ == 3) { + subBuilder = + ((com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_) + .toBuilder(); + } + languages_ = + input.readMessage( + com.google.cloud.translate.v3.Glossary.LanguageCodePair.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.translate.v3.Glossary.LanguageCodePair) languages_); + languages_ = subBuilder.buildPartial(); + } + languagesCase_ = 3; + break; } - inputConfig_ = input.readMessage(com.google.cloud.translate.v3.GlossaryInputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.Builder subBuilder = null; + if (languagesCase_ == 4) { + subBuilder = + ((com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_) + .toBuilder(); + } + languages_ = + input.readMessage( + com.google.cloud.translate.v3.Glossary.LanguageCodesSet.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) languages_); + languages_ = subBuilder.buildPartial(); + } + languagesCase_ = 4; + break; } + case 42: + { + com.google.cloud.translate.v3.GlossaryInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.translate.v3.GlossaryInputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } - break; - } - case 48: { - - entryCount_ = input.readInt32(); - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (submitTime_ != null) { - subBuilder = submitTime_.toBuilder(); + break; } - submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submitTime_); - submitTime_ = subBuilder.buildPartial(); + case 48: + { + entryCount_ = input.readInt32(); + break; } + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (submitTime_ != null) { + subBuilder = submitTime_.toBuilder(); + } + submitTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(submitTime_); + submitTime_ = subBuilder.buildPartial(); + } - break; - } - case 66: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + break; } + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 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.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_ = ""; @@ -234,16 +288,15 @@ private LanguageCodePair() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LanguageCodePair(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LanguageCodePair( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -262,59 +315,66 @@ private LanguageCodePair( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + targetLanguageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -323,30 +383,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 { @@ -357,12 +417,15 @@ public java.lang.String getSourceLanguageCode() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 2; 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 @@ -371,30 +434,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 { @@ -403,6 +466,7 @@ public java.lang.String getTargetLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -414,8 +478,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_); } @@ -445,17 +508,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -477,87 +539,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 @@ -567,27 +636,32 @@ 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() @@ -595,16 +669,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -616,9 +689,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 @@ -637,7 +710,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); + com.google.cloud.translate.v3.Glossary.LanguageCodePair result = + new com.google.cloud.translate.v3.Glossary.LanguageCodePair(this); result.sourceLanguageCode_ = sourceLanguageCode_; result.targetLanguageCode_ = targetLanguageCode_; onBuilt(); @@ -648,38 +722,41 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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; @@ -687,7 +764,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_; onChanged(); @@ -715,7 +793,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.Glossary.LanguageCodePair) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.Glossary.LanguageCodePair) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -727,19 +806,21 @@ public Builder mergeFrom( 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; @@ -748,21 +829,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 { @@ -770,57 +852,64 @@ 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) { + public Builder setSourceLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; 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() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); 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; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -828,19 +917,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; @@ -849,21 +940,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 { @@ -871,61 +963,69 @@ 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) { + public Builder setTargetLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; 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() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); 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; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -938,12 +1038,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(); } @@ -952,16 +1052,16 @@ 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 { - return new LanguageCodePair(input, extensionRegistry); - } - }; + 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 { + return new LanguageCodePair(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -976,14 +1076,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 BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -991,11 +1093,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.
@@ -1003,10 +1107,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.
@@ -1014,11 +1121,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.
@@ -1026,44 +1136,46 @@ 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.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LanguageCodesSet(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LanguageCodesSet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1083,29 +1195,29 @@ private LanguageCodesSet( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languageCodes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languageCodes_.add(s); + break; } - languageCodes_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languageCodes_ = languageCodes_.getUnmodifiableView(); @@ -1114,22 +1226,27 @@ private LanguageCodesSet( makeExtensionsImmutable(); } } - 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; private com.google.protobuf.LazyStringList languageCodes_; /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1137,13 +1254,15 @@ private LanguageCodesSet(
      * 
* * 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.
@@ -1151,12 +1270,15 @@ private LanguageCodesSet(
      * 
* * 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.
@@ -1164,6 +1286,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. */ @@ -1171,6 +1294,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.
@@ -1178,15 +1303,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; @@ -1198,8 +1324,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)); } @@ -1228,15 +1353,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1258,87 +1383,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 @@ -1348,27 +1480,32 @@ 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() @@ -1376,16 +1513,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1395,9 +1531,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_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 @@ -1416,7 +1552,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); + com.google.cloud.translate.v3.Glossary.LanguageCodesSet result = + new com.google.cloud.translate.v3.Glossary.LanguageCodesSet(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { languageCodes_ = languageCodes_.getUnmodifiableView(); @@ -1431,38 +1568,41 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSet buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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; @@ -1470,7 +1610,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_; @@ -1500,7 +1641,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.Glossary.LanguageCodesSet) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1509,16 +1651,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList languageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); 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.
@@ -1526,13 +1673,15 @@ 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() { return languageCodes_.getUnmodifiableView(); } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1540,12 +1689,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.
@@ -1553,6 +1705,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. */ @@ -1560,6 +1713,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.
@@ -1567,14 +1722,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.
@@ -1582,21 +1739,23 @@ 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) { + public Builder setLanguageCodes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); languageCodes_.set(index, value); 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.
@@ -1604,20 +1763,22 @@ 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) { + public Builder addLanguageCodes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); languageCodes_.add(value); 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.
@@ -1625,18 +1786,19 @@ 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_); 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.
@@ -1644,6 +1806,7 @@ public Builder addAllLanguageCodes(
        * 
* * repeated string language_codes = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCodes() { @@ -1653,6 +1816,8 @@ public Builder clearLanguageCodes() { 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.
@@ -1660,20 +1825,21 @@ 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) { + public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguageCodesIsMutable(); languageCodes_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1686,12 +1852,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(); } @@ -1700,16 +1866,16 @@ 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 { - return new LanguageCodesSet(input, extensionRegistry); - } - }; + 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 { + return new LanguageCodesSet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1724,18 +1890,20 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Glossary.LanguageCodesSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int languagesCase_ = 0; 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; } @@ -1751,32 +1919,38 @@ 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; 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 @@ -1785,30 +1959,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 { @@ -1818,11 +1992,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 @@ -1830,21 +2007,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.
    * 
@@ -1852,20 +2034,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 @@ -1873,21 +2059,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.
    * 
@@ -1895,9 +2086,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(); } @@ -1905,12 +2097,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 @@ -1918,19 +2113,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.
@@ -1946,11 +2148,14 @@ public com.google.cloud.translate.v3.GlossaryInputConfigOrBuilder getInputConfig
   public static final int ENTRY_COUNT_FIELD_NUMBER = 6;
   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 @@ -1961,11 +2166,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 @@ -1973,11 +2182,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 @@ -1985,11 +2198,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() { @@ -1999,11 +2215,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 @@ -2011,11 +2231,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 @@ -2023,11 +2247,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() { @@ -2035,6 +2262,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2046,8 +2274,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_); } @@ -2082,28 +2309,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()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2113,41 +2338,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.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 (!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: @@ -2196,118 +2414,127 @@ 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() @@ -2315,16 +2542,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2356,9 +2582,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 @@ -2377,7 +2603,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); + com.google.cloud.translate.v3.Glossary result = + new com.google.cloud.translate.v3.Glossary(this); result.name_ = name_; if (languagesCase_ == 3) { if (languagePairBuilder_ == null) { @@ -2418,38 +2645,39 @@ public com.google.cloud.translate.v3.Glossary buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -2475,17 +2703,20 @@ public Builder mergeFrom(com.google.cloud.translate.v3.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.unknownFields); onChanged(); @@ -2515,12 +2746,12 @@ public Builder mergeFrom( } 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() { @@ -2530,22 +2761,23 @@ public Builder clearLanguages() { return this; } - 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; @@ -2554,21 +2786,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 { @@ -2576,70 +2809,83 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } 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 @@ -2647,11 +2893,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 @@ -2669,6 +2918,8 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePair getLanguagePair() } } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2689,6 +2940,8 @@ public Builder setLanguagePair(com.google.cloud.translate.v3.Glossary.LanguageCo return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2707,18 +2960,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; } @@ -2733,6 +2993,8 @@ public Builder mergeLanguagePair(com.google.cloud.translate.v3.Glossary.Language return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2756,16 +3018,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.
      * 
@@ -2773,7 +3040,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 { @@ -2784,6 +3052,8 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodePairOrBuilder getLangu } } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2791,32 +3061,44 @@ 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()); languages_ = null; } languagesCase_ = 3; - onChanged();; + onChanged(); + ; return languagePairBuilder_; } 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 @@ -2824,11 +3106,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 @@ -2846,13 +3131,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(); @@ -2866,6 +3154,8 @@ public Builder setLanguageCodesSet(com.google.cloud.translate.v3.Glossary.Langua return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
@@ -2884,18 +3174,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; } @@ -2910,6 +3207,8 @@ public Builder mergeLanguageCodesSet(com.google.cloud.translate.v3.Glossary.Lang return this; } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
@@ -2933,16 +3232,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.
      * 
@@ -2950,7 +3254,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 { @@ -2961,6 +3266,8 @@ public com.google.cloud.translate.v3.Glossary.LanguageCodesSetOrBuilder getLangu } } /** + * + * *
      * Used with equivalent term set glossaries.
      * 
@@ -2968,56 +3275,75 @@ 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()); languages_ = null; } languagesCase_ = 4; - onChanged();; + onChanged(); + ; return languageCodesSetBuilder_; } 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 inputConfigBuilder_ != null || 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. */ 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.
@@ -3039,6 +3365,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.
@@ -3058,6 +3386,8 @@ public Builder setInputConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3069,7 +3399,9 @@ public Builder mergeInputConfig(com.google.cloud.translate.v3.GlossaryInputConfi
       if (inputConfigBuilder_ == null) {
         if (inputConfig_ != null) {
           inputConfig_ =
-            com.google.cloud.translate.v3.GlossaryInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial();
+              com.google.cloud.translate.v3.GlossaryInputConfig.newBuilder(inputConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           inputConfig_ = value;
         }
@@ -3081,6 +3413,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.
@@ -3100,6 +3434,8 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3108,11 +3444,13 @@ public Builder clearInputConfig() {
      * .google.cloud.translation.v3.GlossaryInputConfig input_config = 5;
      */
     public com.google.cloud.translate.v3.GlossaryInputConfig.Builder getInputConfigBuilder() {
-      
+
       onChanged();
       return getInputConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3124,11 +3462,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.
@@ -3137,26 +3478,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 @@ -3164,30 +3511,36 @@ 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. */ public Builder setEntryCount(int value) { - + entryCount_ = value; onChanged(); 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() { - + entryCount_ = 0; onChanged(); return this; @@ -3195,39 +3548,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 submitTimeBuilder_ != null || 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. */ 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) { @@ -3243,14 +3615,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(); onChanged(); @@ -3261,17 +3636,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 (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -3283,11 +3662,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() { if (submitTimeBuilder_ == null) { @@ -3301,48 +3684,64 @@ 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() { - + onChanged(); 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_; @@ -3350,24 +3749,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 endTimeBuilder_ != null || 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. */ public com.google.protobuf.Timestamp getEndTime() { @@ -3378,11 +3788,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) { @@ -3398,14 +3811,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(); onChanged(); @@ -3416,17 +3831,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 (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -3438,11 +3856,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() { if (endTimeBuilder_ == null) { @@ -3456,55 +3877,66 @@ 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() { - + onChanged(); 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); } @@ -3514,12 +3946,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(); } @@ -3528,16 +3960,16 @@ 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 { - return new Glossary(input, extensionRegistry); - } - }; + 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 { + return new Glossary(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3552,6 +3984,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Glossary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java similarity index 78% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java index 314f8379b..3f94cc2ec 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GlossaryInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,60 +68,67 @@ private GlossaryInputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.translate.v3.GcsSource) source_).toBuilder(); + case 10: + { + com.google.cloud.translate.v3.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.translate.v3.GcsSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.translate.v3.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 1; + break; } - source_ = - input.readMessage(com.google.cloud.translate.v3.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsSource) source_); - source_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - sourceCase_ = 1; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -121,24 +144,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
@@ -159,6 +186,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -166,6 +194,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
@@ -186,16 +216,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
@@ -220,12 +253,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;
@@ -237,8 +271,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_);
     }
@@ -252,8 +285,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -263,18 +297,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:
@@ -304,117 +338,126 @@ 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() @@ -422,16 +465,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,9 +483,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 @@ -462,7 +504,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); + com.google.cloud.translate.v3.GlossaryInputConfig result = + new com.google.cloud.translate.v3.GlossaryInputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -479,38 +522,39 @@ public com.google.cloud.translate.v3.GlossaryInputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -518,15 +562,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.unknownFields); onChanged(); @@ -547,7 +594,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.GlossaryInputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.GlossaryInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -556,12 +604,12 @@ public Builder mergeFrom( } 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() { @@ -571,10 +619,14 @@ public Builder clearSource() { return this; } - 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
@@ -595,6 +647,7 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -602,6 +655,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
@@ -622,6 +677,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -639,6 +695,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
@@ -674,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
@@ -695,8 +755,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();
@@ -707,6 +766,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
@@ -730,10 +791,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;
         }
@@ -748,6 +812,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
@@ -786,6 +852,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
@@ -811,6 +879,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
@@ -844,6 +914,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
@@ -866,26 +938,32 @@ 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());
         source_ = null;
       }
       sourceCase_ = 1;
-      onChanged();;
+      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);
     }
 
@@ -895,12 +973,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();
   }
@@ -909,16 +987,16 @@ 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 {
-      return new GlossaryInputConfig(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new GlossaryInputConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -933,6 +1011,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.GlossaryInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
similarity index 84%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
index c9d34ffd9..ad6ac9a15 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryInputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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
@@ -28,10 +46,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
@@ -52,10 +73,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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
similarity index 100%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryName.java
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
similarity index 81%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
index aa464574e..9781de312 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/GlossaryOrBuilder.java
@@ -1,53 +1,82 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,66 +159,91 @@ 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(); diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java similarity index 79% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java index 309de419f..be847355b 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfig.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,66 +70,74 @@ private InputConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 18: { - com.google.cloud.translate.v3.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = ((com.google.cloud.translate.v3.GcsSource) source_).toBuilder(); + mimeType_ = s; + break; } - source_ = - input.readMessage(com.google.cloud.translate.v3.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsSource) source_); - source_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.translate.v3.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.translate.v3.GcsSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.translate.v3.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 2; + break; } - sourceCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -128,25 +153,29 @@ 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; 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.
@@ -155,6 +184,7 @@ public int getNumber() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -163,14 +193,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.
@@ -179,16 +210,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 { @@ -198,6 +228,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,
@@ -218,6 +250,7 @@ public java.lang.String getMimeType() {
    * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -225,6 +258,8 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -245,16 +280,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,
@@ -279,12 +317,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;
@@ -296,8 +335,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_);
     }
@@ -317,8 +355,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -328,20 +367,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:
@@ -372,118 +410,127 @@ 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() @@ -491,16 +538,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -512,9 +558,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 @@ -533,7 +579,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); + com.google.cloud.translate.v3.InputConfig result = + new com.google.cloud.translate.v3.InputConfig(this); result.mimeType_ = mimeType_; if (sourceCase_ == 2) { if (gcsSourceBuilder_ == null) { @@ -551,38 +598,39 @@ public com.google.cloud.translate.v3.InputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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,13 +644,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.unknownFields); onChanged(); @@ -632,12 +682,12 @@ public Builder mergeFrom( } 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() { @@ -647,9 +697,10 @@ public Builder clearSource() { return this; } - private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -658,13 +709,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; @@ -673,6 +724,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.
@@ -681,15 +734,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 { @@ -697,6 +749,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.
@@ -705,20 +759,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) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -727,15 +783,18 @@ public Builder setMimeType(
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -744,24 +803,29 @@ 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) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; } 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,
@@ -782,6 +846,7 @@ public Builder setMimeTypeBytes(
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -789,6 +854,8 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -809,6 +876,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override @@ -826,6 +894,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,
@@ -861,6 +931,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,
@@ -882,8 +954,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();
@@ -894,6 +965,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -917,10 +990,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;
         }
@@ -935,6 +1011,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,
@@ -973,6 +1051,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -998,6 +1078,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,
@@ -1031,6 +1113,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,
@@ -1053,26 +1137,32 @@ 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());
         source_ = null;
       }
       sourceCase_ = 2;
-      onChanged();;
+      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);
     }
 
@@ -1082,12 +1172,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();
   }
@@ -1096,16 +1186,16 @@ 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 {
-      return new InputConfig(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new InputConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1120,6 +1210,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.InputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
similarity index 85%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
index 4ea2174b1..3249799d3 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/InputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,
@@ -54,10 +77,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,
@@ -78,10 +104,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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
similarity index 76%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
index f591855ea..2660b0f75 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,16 +45,15 @@ private ListGlossariesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGlossariesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListGlossariesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,69 +72,79 @@ private ListGlossariesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -126,29 +153,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 { @@ -159,12 +188,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; 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 @@ -175,6 +207,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; 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]
@@ -183,6 +217,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -191,14 +226,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]
@@ -207,16 +243,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 { @@ -227,6 +262,8 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; 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
@@ -247,6 +284,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -255,14 +293,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
@@ -283,16 +322,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 { @@ -301,6 +339,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -312,8 +351,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_); } @@ -339,8 +377,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_); @@ -356,21 +393,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -396,117 +430,126 @@ 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() @@ -514,16 +557,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -539,9 +581,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 @@ -560,7 +602,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); + com.google.cloud.translate.v3.ListGlossariesRequest result = + new com.google.cloud.translate.v3.ListGlossariesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -573,38 +616,39 @@ public com.google.cloud.translate.v3.ListGlossariesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -612,7 +656,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_; onChanged(); @@ -647,7 +692,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.ListGlossariesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.ListGlossariesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -659,18 +705,22 @@ public Builder mergeFrom( 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; @@ -679,20 +729,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 { @@ -700,67 +753,83 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); 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 @@ -768,32 +837,38 @@ 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. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); 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() { - + pageSize_ = 0; onChanged(); return this; @@ -801,6 +876,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]
@@ -809,13 +886,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; @@ -824,6 +901,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]
@@ -832,15 +911,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 { @@ -848,6 +926,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]
@@ -856,20 +936,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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]
@@ -878,15 +960,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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]
@@ -895,16 +980,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -912,6 +997,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
@@ -932,13 +1019,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; @@ -947,6 +1034,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
@@ -967,15 +1056,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 { @@ -983,6 +1071,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
@@ -1003,20 +1093,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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1037,15 +1129,18 @@ public Builder setFilter(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1066,23 +1161,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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; 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); } @@ -1092,12 +1187,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(); } @@ -1106,16 +1201,16 @@ 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 { - return new ListGlossariesRequest(input, extensionRegistry); - } - }; + 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 { + return new ListGlossariesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1130,6 +1225,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.ListGlossariesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java index fd96eb4ac..a939c96be 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesRequestOrBuilder.java @@ -1,44 +1,74 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java similarity index 75% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java index d83654f88..3576e2661 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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,16 +44,15 @@ private ListGlossariesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGlossariesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListGlossariesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,37 @@ private ListGlossariesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - glossaries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + glossaries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + glossaries_.add( + input.readMessage( + com.google.cloud.translate.v3.Glossary.parser(), extensionRegistry)); + break; } - glossaries_.add( - input.readMessage(com.google.cloud.translate.v3.Glossary.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { glossaries_ = java.util.Collections.unmodifiableList(glossaries_); @@ -92,22 +111,27 @@ private ListGlossariesResponse( makeExtensionsImmutable(); } } - 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; private java.util.List glossaries_; /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -119,6 +143,8 @@ public java.util.List getGlossariesList( return glossaries_; } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -126,11 +152,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.
    * 
@@ -142,6 +170,8 @@ public int getGlossariesCount() { return glossaries_.size(); } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -153,6 +183,8 @@ public com.google.cloud.translate.v3.Glossary getGlossaries(int index) { return glossaries_.get(index); } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -160,14 +192,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; 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
@@ -175,6 +208,7 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,14 +217,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
@@ -198,16 +233,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 { @@ -216,6 +250,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,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)); } @@ -245,8 +279,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_); @@ -259,17 +292,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +325,126 @@ 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() @@ -411,17 +452,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getGlossariesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +478,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 @@ -458,7 +499,8 @@ 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); int from_bitField0_ = bitField0_; if (glossariesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +520,39 @@ public com.google.cloud.translate.v3.ListGlossariesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -517,7 +560,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()) { @@ -536,9 +580,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_); } @@ -567,7 +612,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.ListGlossariesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.ListGlossariesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +622,28 @@ public Builder mergeFrom( } 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.
      * 
@@ -605,6 +658,8 @@ public java.util.List getGlossariesList( } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -619,6 +674,8 @@ public int getGlossariesCount() { } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -633,14 +690,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(); @@ -654,6 +712,8 @@ public Builder setGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -672,6 +732,8 @@ public Builder setGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -692,14 +754,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(); @@ -713,14 +776,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()); @@ -731,6 +795,8 @@ public Builder addGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -749,6 +815,8 @@ public Builder addGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -759,8 +827,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); @@ -768,6 +835,8 @@ public Builder addAllGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -785,6 +854,8 @@ public Builder clearGlossaries() { return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -802,39 +873,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 { @@ -842,6 +918,8 @@ public com.google.cloud.translate.v3.GlossaryOrBuilder getGlossariesOrBuilder( } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -849,42 +927,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_; @@ -892,6 +976,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
@@ -899,13 +985,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; @@ -914,6 +1000,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
@@ -921,15 +1009,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 { @@ -937,6 +1024,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
@@ -944,20 +1033,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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -965,15 +1056,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -981,23 +1075,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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; 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); } @@ -1007,12 +1101,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(); } @@ -1021,16 +1115,16 @@ 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 { - return new ListGlossariesResponse(input, extensionRegistry); - } - }; + 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 { + return new ListGlossariesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1045,6 +1139,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.ListGlossariesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java index 29c4dd7cf..88c512be6 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/ListGlossariesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java similarity index 100% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/LocationName.java diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java similarity index 88% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java index b5de0109b..99c2b51cd 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,60 +68,68 @@ private OutputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = ((com.google.cloud.translate.v3.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage(com.google.cloud.translate.v3.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.translate.v3.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = + ((com.google.cloud.translate.v3.GcsDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.translate.v3.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 1; + break; } - destinationCase_ = 1; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -121,24 +145,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
@@ -202,6 +230,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -209,6 +238,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
@@ -272,16 +303,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
@@ -349,12 +383,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;
@@ -366,8 +401,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_);
     }
@@ -381,8 +415,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -392,18 +427,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:
@@ -432,118 +467,127 @@ 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() @@ -551,16 +595,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -570,9 +613,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 @@ -591,7 +634,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); + com.google.cloud.translate.v3.OutputConfig result = + new com.google.cloud.translate.v3.OutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -608,38 +652,39 @@ public com.google.cloud.translate.v3.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -649,13 +694,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.unknownFields); onChanged(); @@ -685,12 +732,12 @@ public Builder mergeFrom( } 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() { @@ -700,10 +747,14 @@ public Builder clearDestination() { return this; } - 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
@@ -767,6 +818,7 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -774,6 +826,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
@@ -837,6 +891,7 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -854,6 +909,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
@@ -932,6 +989,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
@@ -1008,6 +1067,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
@@ -1074,10 +1135,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;
         }
@@ -1092,6 +1156,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
@@ -1173,6 +1239,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
@@ -1241,6 +1309,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
@@ -1317,6 +1387,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
@@ -1382,26 +1454,32 @@ 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());
         destination_ = null;
       }
       destinationCase_ = 1;
-      onChanged();;
+      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);
     }
 
@@ -1411,12 +1489,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();
   }
@@ -1425,16 +1503,16 @@ 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 {
-      return new OutputConfig(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new OutputConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1449,6 +1527,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.OutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
similarity index 94%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
index b4dc3fcea..5f460bdfd 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OutputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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
@@ -71,10 +89,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
@@ -138,10 +159,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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
similarity index 74%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
index 2f7ef8dd2..5566dc4eb 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguage.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,16 +45,15 @@ private SupportedLanguage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SupportedLanguage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SupportedLanguage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,63 +72,69 @@ private SupportedLanguage(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            languageCode_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 24: {
-
-            supportSource_ = input.readBool();
-            break;
-          }
-          case 32: {
+              languageCode_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            supportTarget_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              displayName_ = s;
+              break;
+            }
+          case 24:
+            {
+              supportSource_ = input.readBool();
+              break;
+            }
+          case 32:
+            {
+              supportTarget_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   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
@@ -120,6 +143,7 @@ private SupportedLanguage(
    * 
* * string language_code = 1; + * * @return The languageCode. */ @java.lang.Override @@ -128,14 +152,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
@@ -144,16 +169,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 { @@ -164,12 +188,15 @@ public java.lang.String getLanguageCode() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; 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 @@ -178,30 +205,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 { @@ -212,11 +239,14 @@ public java.lang.String getDisplayName() { public static final int SUPPORT_SOURCE_FIELD_NUMBER = 3; private boolean supportSource_; /** + * + * *
    * Can be used as source language.
    * 
* * bool support_source = 3; + * * @return The supportSource. */ @java.lang.Override @@ -227,11 +257,14 @@ public boolean getSupportSource() { public static final int SUPPORT_TARGET_FIELD_NUMBER = 4; private boolean supportTarget_; /** + * + * *
    * Can be used as target language.
    * 
* * bool support_target = 4; + * * @return The supportTarget. */ @java.lang.Override @@ -240,6 +273,7 @@ public boolean getSupportTarget() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,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(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -281,12 +314,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -296,21 +327,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,107 +355,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) + unknownFields.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.
@@ -435,21 +468,23 @@ 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()
@@ -457,16 +492,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -482,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_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
@@ -503,7 +537,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);
+      com.google.cloud.translate.v3.SupportedLanguage result =
+          new com.google.cloud.translate.v3.SupportedLanguage(this);
       result.languageCode_ = languageCode_;
       result.displayName_ = displayName_;
       result.supportSource_ = supportSource_;
@@ -516,38 +551,39 @@ public com.google.cloud.translate.v3.SupportedLanguage buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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;
@@ -555,7 +591,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_;
         onChanged();
@@ -601,6 +638,8 @@ public Builder mergeFrom(
 
     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
@@ -609,13 +648,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; @@ -624,6 +663,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
@@ -632,15 +673,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 { @@ -648,6 +688,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
@@ -656,20 +698,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) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -678,15 +722,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -695,16 +742,16 @@ 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) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -712,19 +759,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; @@ -733,21 +782,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 { @@ -755,69 +805,79 @@ 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) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; 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() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); 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) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private boolean supportSource_ ; + private boolean supportSource_; /** + * + * *
      * Can be used as source language.
      * 
* * bool support_source = 3; + * * @return The supportSource. */ @java.lang.Override @@ -825,42 +885,51 @@ 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. */ public Builder setSupportSource(boolean value) { - + supportSource_ = value; onChanged(); return this; } /** + * + * *
      * Can be used as source language.
      * 
* * bool support_source = 3; + * * @return This builder for chaining. */ public Builder clearSupportSource() { - + supportSource_ = false; onChanged(); return this; } - private boolean supportTarget_ ; + private boolean supportTarget_; /** + * + * *
      * Can be used as target language.
      * 
* * bool support_target = 4; + * * @return The supportTarget. */ @java.lang.Override @@ -868,37 +937,43 @@ 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. */ public Builder setSupportTarget(boolean value) { - + supportTarget_ = value; onChanged(); return this; } /** + * + * *
      * Can be used as target language.
      * 
* * bool support_target = 4; + * * @return This builder for chaining. */ public Builder clearSupportTarget() { - + supportTarget_ = false; 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); } @@ -908,12 +983,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(); } @@ -922,16 +997,16 @@ 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 { - return new SupportedLanguage(input, extensionRegistry); - } - }; + 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 { + return new SupportedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -946,6 +1021,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.SupportedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java similarity index 69% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java index 3f08df156..2798fd964 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguageOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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, 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java similarity index 75% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java index 06c86c3e1..592faab38 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguages.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SupportedLanguages( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,29 +71,31 @@ private SupportedLanguages( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languages_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languages_.add( + input.readMessage( + com.google.cloud.translate.v3.SupportedLanguage.parser(), extensionRegistry)); + break; } - languages_.add( - input.readMessage(com.google.cloud.translate.v3.SupportedLanguage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -85,22 +104,27 @@ private SupportedLanguages( makeExtensionsImmutable(); } } - 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; private java.util.List languages_; /** + * + * *
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -113,6 +137,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.
@@ -121,11 +147,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.
@@ -138,6 +166,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.
@@ -150,6 +180,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.
@@ -158,12 +190,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;
@@ -175,8 +207,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));
     }
@@ -190,8 +221,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -201,15 +231,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -230,118 +260,127 @@ 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() @@ -349,17 +388,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLanguagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +412,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 @@ -394,7 +433,8 @@ 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); int from_bitField0_ = bitField0_; if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -413,38 +453,39 @@ public com.google.cloud.translate.v3.SupportedLanguages buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -452,7 +493,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()) { @@ -471,9 +513,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_); } @@ -507,21 +550,29 @@ public Builder mergeFrom( } 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.
@@ -537,6 +588,8 @@ public java.util.List getLangua
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -552,6 +605,8 @@ public int getLanguagesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -567,6 +622,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.
@@ -574,8 +631,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();
@@ -589,6 +645,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -608,6 +666,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -629,6 +689,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.
@@ -636,8 +698,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();
@@ -651,6 +712,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -670,6 +733,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -689,6 +754,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -700,8 +767,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);
@@ -709,6 +775,8 @@ public Builder addAllLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -727,6 +795,8 @@ public Builder clearLanguages() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -745,6 +815,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.
@@ -752,11 +824,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.
@@ -767,11 +840,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.
@@ -779,8 +855,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 {
@@ -788,6 +864,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.
@@ -796,10 +874,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.
@@ -807,12 +887,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.
@@ -820,27 +901,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);
     }
 
@@ -850,12 +934,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();
   }
@@ -864,16 +948,16 @@ 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 {
-      return new SupportedLanguages(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new SupportedLanguages(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -888,6 +972,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.SupportedLanguages getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
similarity index 71%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
index 098702c63..4e4e03457 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/SupportedLanguagesOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
similarity index 69%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
index 1c2e8fab0..6eaf74e6a 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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_ = ""; @@ -28,16 +46,15 @@ private TranslateDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateDocumentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranslateDocumentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,129 +74,148 @@ private TranslateDocumentRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - sourceLanguageCode_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - case 34: { - com.google.cloud.translate.v3.DocumentInputConfig.Builder subBuilder = null; - if (documentInputConfig_ != null) { - subBuilder = documentInputConfig_.toBuilder(); + parent_ = s; + break; } - documentInputConfig_ = input.readMessage(com.google.cloud.translate.v3.DocumentInputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentInputConfig_); - documentInputConfig_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + sourceLanguageCode_ = s; + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 42: { - com.google.cloud.translate.v3.DocumentOutputConfig.Builder subBuilder = null; - if (documentOutputConfig_ != null) { - subBuilder = documentOutputConfig_.toBuilder(); + targetLanguageCode_ = s; + break; } - documentOutputConfig_ = input.readMessage(com.google.cloud.translate.v3.DocumentOutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentOutputConfig_); - documentOutputConfig_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.translate.v3.DocumentInputConfig.Builder subBuilder = null; + if (documentInputConfig_ != null) { + subBuilder = documentInputConfig_.toBuilder(); + } + documentInputConfig_ = + input.readMessage( + com.google.cloud.translate.v3.DocumentInputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentInputConfig_); + documentInputConfig_ = subBuilder.buildPartial(); + } + + break; } + case 42: + { + com.google.cloud.translate.v3.DocumentOutputConfig.Builder subBuilder = null; + if (documentOutputConfig_ != null) { + subBuilder = documentOutputConfig_.toBuilder(); + } + documentOutputConfig_ = + input.readMessage( + com.google.cloud.translate.v3.DocumentOutputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentOutputConfig_); + documentOutputConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - model_ = s; - break; - } - case 58: { - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder subBuilder = null; - if (glossaryConfig_ != null) { - subBuilder = glossaryConfig_.toBuilder(); + model_ = s; + break; } - glossaryConfig_ = input.readMessage(com.google.cloud.translate.v3.TranslateTextGlossaryConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryConfig_); - glossaryConfig_ = subBuilder.buildPartial(); + case 58: + { + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder subBuilder = null; + if (glossaryConfig_ != null) { + subBuilder = glossaryConfig_.toBuilder(); + } + glossaryConfig_ = + input.readMessage( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryConfig_); + glossaryConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 66: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -192,6 +228,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -200,14 +237,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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -220,16 +258,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 { @@ -240,6 +277,8 @@ public java.lang.String getParent() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; 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
@@ -250,6 +289,7 @@ public java.lang.String getParent() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -258,14 +298,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
@@ -276,16 +317,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 { @@ -296,12 +336,15 @@ public java.lang.String getSourceLanguageCode() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 3; 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 @@ -310,30 +353,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 { @@ -344,11 +387,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 @@ -356,32 +404,46 @@ 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() { + public com.google.cloud.translate.v3.DocumentInputConfigOrBuilder + getDocumentInputConfigOrBuilder() { return getDocumentInputConfig(); } 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
@@ -390,7 +452,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 @@ -398,6 +463,8 @@ public boolean hasDocumentOutputConfig() { return documentOutputConfig_ != null; } /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -406,14 +473,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
@@ -422,16 +496,21 @@ 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() { + public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder + getDocumentOutputConfigOrBuilder() { return getDocumentOutputConfig(); } public static final int MODEL_FIELD_NUMBER = 6; private volatile java.lang.Object model_; /** + * + * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -444,6 +523,7 @@ public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOu
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -452,14 +532,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.
    * The format depends on model type:
@@ -472,16 +553,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 { @@ -492,13 +572,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 @@ -506,52 +591,63 @@ 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() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { return getGlossaryConfig(); } 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, + ""); } - 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_; } @@ -560,6 +656,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -572,22 +670,22 @@ 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 java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -601,11 +699,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -619,16 +718,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -642,12 +741,11 @@ public 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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -655,6 +753,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -666,8 +765,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_);
     }
@@ -689,12 +787,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);
     unknownFields.writeTo(output);
   }
 
@@ -714,29 +808,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -746,38 +838,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.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 (!getGlossaryConfig().equals(other.getGlossaryConfig())) return false;
     }
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -819,139 +904,147 @@ public int hashCode() {
   }
 
   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() @@ -959,16 +1052,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1003,9 +1095,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 @@ -1024,7 +1116,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); + com.google.cloud.translate.v3.TranslateDocumentRequest result = + new com.google.cloud.translate.v3.TranslateDocumentRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.sourceLanguageCode_ = sourceLanguageCode_; @@ -1055,38 +1148,39 @@ public com.google.cloud.translate.v3.TranslateDocumentRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -1094,7 +1188,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_; onChanged(); @@ -1120,8 +1215,7 @@ public Builder mergeFrom(com.google.cloud.translate.v3.TranslateDocumentRequest if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1141,7 +1235,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.TranslateDocumentRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.TranslateDocumentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1150,10 +1245,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1166,13 +1264,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; @@ -1181,6 +1279,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1193,15 +1293,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 { @@ -1209,6 +1308,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1221,20 +1322,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1247,15 +1350,18 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1268,16 +1374,16 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1285,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
@@ -1295,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; @@ -1310,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
@@ -1320,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 { @@ -1336,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
@@ -1346,20 +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) { + public Builder setSourceLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; 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
@@ -1370,15 +1483,18 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); 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
@@ -1389,16 +1505,16 @@ 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) { + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -1406,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; @@ -1427,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 { @@ -1449,57 +1568,64 @@ 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) { + public Builder setTargetLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; 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() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); 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]; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; @@ -1507,39 +1633,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 documentInputConfigBuilder_ != null || 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. */ 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) { @@ -1555,11 +1700,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) { @@ -1573,17 +1722,24 @@ 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 (documentInputConfig_ != null) { documentInputConfig_ = - com.google.cloud.translate.v3.DocumentInputConfig.newBuilder(documentInputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3.DocumentInputConfig.newBuilder(documentInputConfig_) + .mergeFrom(value) + .buildPartial(); } else { documentInputConfig_ = value; } @@ -1595,11 +1751,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() { if (documentInputConfigBuilder_ == null) { @@ -1613,48 +1773,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() { + 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_; @@ -1662,8 +1840,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
@@ -1672,13 +1855,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 documentOutputConfigBuilder_ != null || documentOutputConfig_ != null; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1687,17 +1875,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
@@ -1706,9 +1901,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(); @@ -1722,6 +1920,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
@@ -1730,7 +1930,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) { @@ -1744,6 +1946,8 @@ public Builder setDocumentOutputConfig( return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1752,13 +1956,18 @@ 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 (documentOutputConfig_ != null) { documentOutputConfig_ = - com.google.cloud.translate.v3.DocumentOutputConfig.newBuilder(documentOutputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3.DocumentOutputConfig.newBuilder(documentOutputConfig_) + .mergeFrom(value) + .buildPartial(); } else { documentOutputConfig_ = value; } @@ -1770,6 +1979,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
@@ -1778,7 +1989,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() { if (documentOutputConfigBuilder_ == null) { @@ -1792,6 +2005,8 @@ public Builder clearDocumentOutputConfig() { return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1800,14 +2015,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() { + onChanged(); return getDocumentOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1816,17 +2036,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
@@ -1835,17 +2061,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_; @@ -1853,6 +2084,8 @@ public com.google.cloud.translate.v3.DocumentOutputConfigOrBuilder getDocumentOu private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1865,13 +2098,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; @@ -1880,6 +2113,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1892,15 +2127,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 { @@ -1908,6 +2142,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1920,20 +2156,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) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1946,15 +2184,18 @@ public Builder setModel(
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1967,16 +2208,16 @@ 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) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; @@ -1984,47 +2225,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 glossaryConfigBuilder_ != null || 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. */ 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(); @@ -2038,13 +2299,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) { @@ -2058,19 +2323,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.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 (glossaryConfig_ != null) { glossaryConfig_ = - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_) + .mergeFrom(value) + .buildPartial(); } else { glossaryConfig_ = value; } @@ -2082,13 +2354,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() { if (glossaryConfigBuilder_ == null) { @@ -2102,75 +2378,92 @@ 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() { + 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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,6 +2475,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2194,22 +2489,22 @@ 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 java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2223,11 +2518,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2241,16 +2537,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2264,12 +2561,11 @@ public 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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2277,11 +2573,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2294,23 +2591,21 @@ 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 java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2323,16 +2618,19 @@ 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 java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2345,16 +2643,13 @@ 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);
       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);
     }
 
@@ -2364,12 +2659,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();
   }
@@ -2378,16 +2673,16 @@ 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 {
-      return new TranslateDocumentRequest(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new TranslateDocumentRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2402,6 +2697,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.TranslateDocumentRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java
similarity index 78%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java
index 4d2832468..5ee3b8759 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -20,10 +38,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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -36,12 +57,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
@@ -52,10 +75,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
@@ -66,61 +92,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.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
@@ -129,11 +176,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
@@ -142,11 +194,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
@@ -155,11 +212,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.
    * The format depends on model type:
@@ -172,10 +233,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.
    * The format depends on model type:
@@ -188,45 +252,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.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -241,6 +321,8 @@ public interface TranslateDocumentRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -253,15 +335,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.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -274,9 +354,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.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -289,11 +370,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -306,7 +386,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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java
similarity index 71%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java
index 6422555a3..c9884661e 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponse.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranslateDocumentResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,91 +70,109 @@ private TranslateDocumentResponse( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3.DocumentTranslation.Builder subBuilder = null; - if (documentTranslation_ != null) { - subBuilder = documentTranslation_.toBuilder(); - } - documentTranslation_ = input.readMessage(com.google.cloud.translate.v3.DocumentTranslation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentTranslation_); - documentTranslation_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.translate.v3.DocumentTranslation.Builder subBuilder = null; + if (documentTranslation_ != null) { + subBuilder = documentTranslation_.toBuilder(); + } + documentTranslation_ = + input.readMessage( + com.google.cloud.translate.v3.DocumentTranslation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentTranslation_); + documentTranslation_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.translate.v3.DocumentTranslation.Builder subBuilder = null; - if (glossaryDocumentTranslation_ != null) { - subBuilder = glossaryDocumentTranslation_.toBuilder(); - } - glossaryDocumentTranslation_ = input.readMessage(com.google.cloud.translate.v3.DocumentTranslation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryDocumentTranslation_); - glossaryDocumentTranslation_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.translate.v3.DocumentTranslation.Builder subBuilder = null; + if (glossaryDocumentTranslation_ != null) { + subBuilder = glossaryDocumentTranslation_.toBuilder(); + } + glossaryDocumentTranslation_ = + input.readMessage( + com.google.cloud.translate.v3.DocumentTranslation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryDocumentTranslation_); + glossaryDocumentTranslation_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - model_ = s; - break; - } - case 34: { - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder subBuilder = null; - if (glossaryConfig_ != null) { - subBuilder = glossaryConfig_.toBuilder(); + break; } - glossaryConfig_ = input.readMessage(com.google.cloud.translate.v3.TranslateTextGlossaryConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryConfig_); - glossaryConfig_ = subBuilder.buildPartial(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; } + case 34: + { + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder subBuilder = null; + if (glossaryConfig_ != null) { + subBuilder = glossaryConfig_.toBuilder(); + } + glossaryConfig_ = + input.readMessage( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryConfig_); + glossaryConfig_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -145,18 +180,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.
    * 
@@ -164,20 +206,25 @@ 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() { + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder + getDocumentTranslationOrBuilder() { return getDocumentTranslation(); } 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 @@ -185,36 +232,48 @@ 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() { + public com.google.cloud.translate.v3.DocumentTranslationOrBuilder + getGlossaryDocumentTranslationOrBuilder() { return getGlossaryDocumentTranslation(); } public static final int MODEL_FIELD_NUMBER = 3; private volatile java.lang.Object model_; /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -226,6 +285,7 @@ public com.google.cloud.translate.v3.DocumentTranslationOrBuilder getGlossaryDoc
    * 
* * string model = 3; + * * @return The model. */ @java.lang.Override @@ -234,14 +294,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.
@@ -253,16 +314,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 { @@ -273,11 +333,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 @@ -285,18 +348,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.
    * 
@@ -304,11 +374,13 @@ 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() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { return getGlossaryConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -320,8 +392,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()); } @@ -344,19 +415,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -366,29 +436,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -421,117 +489,127 @@ 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() @@ -539,16 +617,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -576,9 +653,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 @@ -597,7 +674,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); + com.google.cloud.translate.v3.TranslateDocumentResponse result = + new com.google.cloud.translate.v3.TranslateDocumentResponse(this); if (documentTranslationBuilder_ == null) { result.documentTranslation_ = documentTranslation_; } else { @@ -622,38 +700,39 @@ public com.google.cloud.translate.v3.TranslateDocumentResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -661,7 +740,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()); } @@ -694,7 +774,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.TranslateDocumentResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.TranslateDocumentResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -706,34 +787,47 @@ public Builder mergeFrom( 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 documentTranslationBuilder_ != null || documentTranslation_ != null; } /** + * + * *
      * 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.
      * 
@@ -754,6 +848,8 @@ public Builder setDocumentTranslation(com.google.cloud.translate.v3.DocumentTran return this; } /** + * + * *
      * Translated document.
      * 
@@ -772,17 +868,22 @@ 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 (documentTranslation_ != null) { documentTranslation_ = - com.google.cloud.translate.v3.DocumentTranslation.newBuilder(documentTranslation_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3.DocumentTranslation.newBuilder(documentTranslation_) + .mergeFrom(value) + .buildPartial(); } else { documentTranslation_ = value; } @@ -794,6 +895,8 @@ public Builder mergeDocumentTranslation(com.google.cloud.translate.v3.DocumentTr return this; } /** + * + * *
      * Translated document.
      * 
@@ -812,33 +915,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() { + 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.
      * 
@@ -846,14 +958,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_; @@ -861,47 +976,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 glossaryDocumentTranslationBuilder_ != null || 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. */ 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(); @@ -915,13 +1047,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) { @@ -935,19 +1070,26 @@ 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 (glossaryDocumentTranslation_ != null) { glossaryDocumentTranslation_ = - com.google.cloud.translate.v3.DocumentTranslation.newBuilder(glossaryDocumentTranslation_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3.DocumentTranslation.newBuilder( + glossaryDocumentTranslation_) + .mergeFrom(value) + .buildPartial(); } else { glossaryDocumentTranslation_ = value; } @@ -959,13 +1101,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() { if (glossaryDocumentTranslationBuilder_ == null) { @@ -979,54 +1124,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() { + 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_; @@ -1034,6 +1194,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.
@@ -1045,13 +1207,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; @@ -1060,6 +1222,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1071,15 +1235,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 { @@ -1087,6 +1250,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1098,20 +1263,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) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1123,15 +1290,18 @@ public Builder setModel(
      * 
* * string model = 3; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1143,16 +1313,16 @@ 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) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; @@ -1160,41 +1330,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 glossaryConfigBuilder_ != null || glossaryConfig_ != null; } /** + * + * *
      * 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(); @@ -1208,6 +1392,8 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlos return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
@@ -1226,17 +1412,22 @@ 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 (glossaryConfig_ != null) { glossaryConfig_ = - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_) + .mergeFrom(value) + .buildPartial(); } else { glossaryConfig_ = value; } @@ -1248,6 +1439,8 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGl return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
@@ -1266,33 +1459,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() { + 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.
      * 
@@ -1300,21 +1502,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); } @@ -1324,12 +1529,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(); } @@ -1338,16 +1543,16 @@ 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 { - return new TranslateDocumentResponse(input, extensionRegistry); - } - }; + 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 { + return new TranslateDocumentResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1362,6 +1567,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.translate.v3.TranslateDocumentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java similarity index 78% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java index f4a0d88ce..fbd5e73db 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateDocumentResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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.
@@ -79,10 +117,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.
@@ -94,30 +135,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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java similarity index 72% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java index 466fdeef8..4076ceade 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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,31 +28,31 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TranslateTextGlossaryConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,52 +71,57 @@ private TranslateTextGlossaryConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            glossary_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            ignoreCase_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              glossary_ = s;
+              break;
+            }
+          case 16:
+            {
+              ignoreCase_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   private volatile java.lang.Object glossary_;
   /**
+   *
+   *
    * 
    * Required. The `glossary` to be applied for this translation.
    * The format depends on glossary:
@@ -108,6 +130,7 @@ private TranslateTextGlossaryConfig(
    * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The glossary. */ @java.lang.Override @@ -116,14 +139,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.
    * The format depends on glossary:
@@ -132,16 +156,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 { @@ -152,12 +175,15 @@ public java.lang.String getGlossary() { public static final int IGNORE_CASE_FIELD_NUMBER = 2; 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 @@ -166,6 +192,7 @@ public boolean getIgnoreCase() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +204,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_); } @@ -198,8 +224,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -209,17 +234,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,104 +258,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) + unknownFields.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.
@@ -339,21 +370,23 @@ 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()
@@ -361,16 +394,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -382,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_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
@@ -403,7 +435,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);
+      com.google.cloud.translate.v3.TranslateTextGlossaryConfig result =
+          new com.google.cloud.translate.v3.TranslateTextGlossaryConfig(this);
       result.glossary_ = glossary_;
       result.ignoreCase_ = ignoreCase_;
       onBuilt();
@@ -414,38 +447,39 @@ public com.google.cloud.translate.v3.TranslateTextGlossaryConfig buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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;
@@ -453,7 +487,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_;
         onChanged();
@@ -480,7 +515,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.translate.v3.TranslateTextGlossaryConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.translate.v3.TranslateTextGlossaryConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -492,6 +528,8 @@ public Builder mergeFrom(
 
     private java.lang.Object glossary_ = "";
     /**
+     *
+     *
      * 
      * Required. The `glossary` to be applied for this translation.
      * The format depends on glossary:
@@ -500,13 +538,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; @@ -515,6 +553,8 @@ public java.lang.String getGlossary() { } } /** + * + * *
      * Required. The `glossary` to be applied for this translation.
      * The format depends on glossary:
@@ -523,15 +563,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 { @@ -539,6 +578,8 @@ public java.lang.String getGlossary() { } } /** + * + * *
      * Required. The `glossary` to be applied for this translation.
      * The format depends on glossary:
@@ -547,20 +588,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) { + public Builder setGlossary(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + glossary_ = value; onChanged(); return this; } /** + * + * *
      * Required. The `glossary` to be applied for this translation.
      * The format depends on glossary:
@@ -569,15 +612,18 @@ public Builder setGlossary(
      * 
* * string glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGlossary() { - + glossary_ = getDefaultInstance().getGlossary(); onChanged(); return this; } /** + * + * *
      * Required. The `glossary` to be applied for this translation.
      * The format depends on glossary:
@@ -586,29 +632,32 @@ 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) { + public Builder setGlossaryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + glossary_ = value; onChanged(); 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 @@ -616,39 +665,45 @@ 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. */ public Builder setIgnoreCase(boolean value) { - + ignoreCase_ = value; onChanged(); 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() { - + ignoreCase_ = false; 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); } @@ -658,12 +713,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(); } @@ -672,16 +727,16 @@ 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 { - return new TranslateTextGlossaryConfig(input, extensionRegistry); - } - }; + 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 { + return new TranslateTextGlossaryConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -696,6 +751,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.translate.v3.TranslateTextGlossaryConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java similarity index 64% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java index 5b6f6e15e..d4a473629 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextGlossaryConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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.
    * The format depends on glossary:
@@ -16,10 +34,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.
    * The format depends on glossary:
@@ -28,18 +49,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.
    * 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java similarity index 73% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java index 5e91c614c..587cdbf5c 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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.EMPTY; mimeType_ = ""; @@ -30,16 +48,15 @@ private TranslateTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateTextRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranslateTextRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,85 +76,94 @@ private TranslateTextRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - contents_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + contents_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + contents_.add(s); + break; } - contents_.add(s); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + targetLanguageCode_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; - } - case 58: { - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder subBuilder = null; - if (glossaryConfig_ != null) { - subBuilder = glossaryConfig_.toBuilder(); + model_ = s; + break; } - glossaryConfig_ = input.readMessage(com.google.cloud.translate.v3.TranslateTextGlossaryConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryConfig_); - glossaryConfig_ = subBuilder.buildPartial(); + case 58: + { + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder subBuilder = null; + if (glossaryConfig_ != null) { + subBuilder = glossaryConfig_.toBuilder(); + } + glossaryConfig_ = + input.readMessage( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryConfig_); + glossaryConfig_ = subBuilder.buildPartial(); + } + + break; } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 82: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + parent_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 82: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { contents_ = contents_.getUnmodifiableView(); @@ -146,34 +172,38 @@ private TranslateTextRequest( makeExtensionsImmutable(); } } - 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; private com.google.protobuf.LazyStringList contents_; /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -182,13 +212,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
@@ -197,12 +229,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
@@ -211,6 +246,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. */ @@ -218,6 +254,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
@@ -226,23 +264,26 @@ 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; 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 @@ -251,30 +292,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 { @@ -285,6 +326,8 @@ public java.lang.String getMimeType() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 4; 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
@@ -294,6 +337,7 @@ public java.lang.String getMimeType() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -302,14 +346,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
@@ -319,16 +364,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 { @@ -339,12 +383,15 @@ public java.lang.String getSourceLanguageCode() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 5; 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 @@ -353,30 +400,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 { @@ -387,6 +434,8 @@ public java.lang.String getTargetLanguageCode() { public static final int PARENT_FIELD_NUMBER = 8; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -400,7 +449,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 @@ -409,14 +461,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.
@@ -430,17 +483,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 { @@ -451,6 +505,8 @@ public java.lang.String getParent() { public static final int MODEL_FIELD_NUMBER = 6; private volatile java.lang.Object model_; /** + * + * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -465,6 +521,7 @@ public java.lang.String getParent() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -473,14 +530,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.
    * The format depends on model type:
@@ -495,16 +553,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 { @@ -515,13 +572,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 @@ -529,52 +591,63 @@ 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() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { return getGlossaryConfig(); } 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, + ""); } - 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_; } @@ -583,6 +656,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -595,22 +670,22 @@ 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 java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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.
    * Label keys and values can be no longer than 63 characters
@@ -624,11 +699,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -642,16 +718,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -665,12 +741,11 @@ public 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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -678,6 +753,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -689,8 +765,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));
     }
@@ -712,12 +787,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);
     unknownFields.writeTo(output);
   }
 
@@ -748,21 +819,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -772,32 +842,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -837,139 +900,146 @@ 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() @@ -977,16 +1047,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1013,9 +1082,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 @@ -1034,7 +1103,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); + com.google.cloud.translate.v3.TranslateTextRequest result = + new com.google.cloud.translate.v3.TranslateTextRequest(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { contents_ = contents_.getUnmodifiableView(); @@ -1061,38 +1131,39 @@ public com.google.cloud.translate.v3.TranslateTextRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -1100,7 +1171,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_; @@ -1134,8 +1206,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()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1155,7 +1226,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3.TranslateTextRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3.TranslateTextRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1164,16 +1236,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList contents_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList contents_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureContentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { contents_ = new com.google.protobuf.LazyStringArrayList(contents_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1182,13 +1259,15 @@ 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() { return contents_.getUnmodifiableView(); } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1197,12 +1276,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
@@ -1211,6 +1293,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. */ @@ -1218,6 +1301,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
@@ -1226,14 +1311,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
@@ -1242,21 +1329,23 @@ 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) { + public Builder setContents(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureContentsIsMutable(); + throw new NullPointerException(); + } + ensureContentsIsMutable(); contents_.set(index, value); 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
@@ -1265,20 +1354,22 @@ 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) { + public Builder addContents(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureContentsIsMutable(); + throw new NullPointerException(); + } + ensureContentsIsMutable(); contents_.add(value); 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
@@ -1287,18 +1378,19 @@ 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_); 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
@@ -1307,6 +1399,7 @@ public Builder addAllContents(
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearContents() { @@ -1316,6 +1409,8 @@ public Builder clearContents() { return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1324,15 +1419,15 @@ 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) { + public Builder addContentsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureContentsIsMutable(); contents_.add(value); onChanged(); @@ -1341,19 +1436,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; @@ -1362,21 +1459,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 { @@ -1384,57 +1482,64 @@ 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) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; 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() { - + mimeType_ = getDefaultInstance().getMimeType(); 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]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; @@ -1442,6 +1547,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
@@ -1451,13 +1558,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; @@ -1466,6 +1573,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
@@ -1475,15 +1584,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 { @@ -1491,6 +1599,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
@@ -1500,20 +1610,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) { + public Builder setSourceLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; 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
@@ -1523,15 +1635,18 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); 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
@@ -1541,16 +1656,16 @@ 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) { + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -1558,19 +1673,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; @@ -1579,21 +1696,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 { @@ -1601,57 +1719,64 @@ 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) { + public Builder setTargetLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; 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() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); 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]; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; @@ -1659,6 +1784,8 @@ public Builder setTargetLanguageCodeBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1672,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; @@ -1688,6 +1817,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1701,16 +1832,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 { @@ -1718,6 +1850,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1731,21 +1865,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1759,16 +1897,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1782,17 +1925,19 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1800,6 +1945,8 @@ public Builder setParentBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1814,13 +1961,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; @@ -1829,6 +1976,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1843,15 +1992,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 +2007,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1873,20 +2023,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) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1901,15 +2053,18 @@ public Builder setModel(
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1924,16 +2079,16 @@ 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) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; @@ -1941,47 +2096,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 glossaryConfigBuilder_ != null || 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. */ 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(); @@ -1995,13 +2170,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) { @@ -2015,19 +2194,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.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 (glossaryConfig_ != null) { glossaryConfig_ = - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_) + .mergeFrom(value) + .buildPartial(); } else { glossaryConfig_ = value; } @@ -2039,13 +2225,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() { if (glossaryConfigBuilder_ == null) { @@ -2059,75 +2249,92 @@ 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() { + 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -2139,6 +2346,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2151,22 +2360,22 @@ 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 java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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.
      * Label keys and values can be no longer than 63 characters
@@ -2180,11 +2389,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2198,16 +2408,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2221,12 +2432,11 @@ public 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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2234,11 +2444,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2251,23 +2462,21 @@ 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 java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2280,16 +2489,19 @@ 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 java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2302,16 +2514,13 @@ 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);
       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);
     }
 
@@ -2321,12 +2530,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();
   }
@@ -2335,16 +2544,16 @@ 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 {
-      return new TranslateTextRequest(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new TranslateTextRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2359,6 +2568,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.TranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
similarity index 82%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
index 37788a848..cac410ead 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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 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.
@@ -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.
@@ -164,13 +212,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.
    * The format depends on model type:
@@ -185,10 +237,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.
    * The format depends on model type:
@@ -203,45 +258,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.
    * Label keys and values can be no longer than 63 characters
@@ -256,6 +327,8 @@ public interface TranslateTextRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -268,15 +341,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.
    * Label keys and values can be no longer than 63 characters
@@ -289,9 +360,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.
    * Label keys and values can be no longer than 63 characters
@@ -304,11 +376,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -321,7 +392,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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
similarity index 80%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
index 2d8466eef..802a04bed 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponse.java
@@ -1,20 +1,34 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,16 +36,15 @@ private TranslateTextResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TranslateTextResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TranslateTextResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -51,38 +64,43 @@ private TranslateTextResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              translations_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                translations_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              translations_.add(
+                  input.readMessage(
+                      com.google.cloud.translate.v3.Translation.parser(), extensionRegistry));
+              break;
             }
-            translations_.add(
-                input.readMessage(com.google.cloud.translate.v3.Translation.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              glossaryTranslations_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                glossaryTranslations_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              glossaryTranslations_.add(
+                  input.readMessage(
+                      com.google.cloud.translate.v3.Translation.parser(), extensionRegistry));
+              break;
             }
-            glossaryTranslations_.add(
-                input.readMessage(com.google.cloud.translate.v3.Translation.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         translations_ = java.util.Collections.unmodifiableList(translations_);
@@ -94,22 +112,27 @@ private TranslateTextResponse(
       makeExtensionsImmutable();
     }
   }
-  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;
   private java.util.List translations_;
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -123,6 +146,8 @@ public java.util.List getTranslations
     return translations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -132,11 +157,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
@@ -150,6 +177,8 @@ public int getTranslationsCount() {
     return translations_.size();
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -163,6 +192,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
@@ -172,14 +203,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;
   private java.util.List glossaryTranslations_;
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -195,6 +227,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
@@ -206,11 +240,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
@@ -226,6 +262,8 @@ public int getGlossaryTranslationsCount() {
     return glossaryTranslations_.size();
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -241,6 +279,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
@@ -258,6 +298,7 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getGlossaryTranslation
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -269,8 +310,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));
     }
@@ -287,12 +327,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -302,17 +341,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -338,113 +376,118 @@ 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()
@@ -452,18 +495,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getTranslationsFieldBuilder();
         getGlossaryTranslationsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -483,9 +526,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
@@ -504,7 +547,8 @@ 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);
       int from_bitField0_ = bitField0_;
       if (translationsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -532,38 +576,39 @@ public com.google.cloud.translate.v3.TranslateTextResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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;
@@ -571,7 +616,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()) {
@@ -590,9 +636,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_);
           }
@@ -616,9 +663,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_);
           }
@@ -643,7 +691,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.translate.v3.TranslateTextResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.translate.v3.TranslateTextResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -652,21 +701,29 @@ public Builder mergeFrom(
       }
       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
@@ -683,6 +740,8 @@ public java.util.List getTranslations
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -699,6 +758,8 @@ public int getTranslationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -715,6 +776,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
@@ -723,8 +786,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();
@@ -738,6 +800,8 @@ public Builder setTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -758,6 +822,8 @@ public Builder setTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -780,6 +846,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
@@ -788,8 +856,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();
@@ -803,6 +870,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -823,6 +892,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -843,6 +914,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -855,8 +928,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);
@@ -864,6 +936,8 @@ public Builder addAllTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -883,6 +957,8 @@ public Builder clearTranslations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -902,6 +978,8 @@ public Builder removeTranslations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -910,11 +988,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
@@ -923,14 +1002,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
@@ -939,8 +1020,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 {
@@ -948,6 +1029,8 @@ public com.google.cloud.translate.v3.TranslationOrBuilder getTranslationsOrBuild
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -957,10 +1040,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
@@ -969,12 +1054,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
@@ -983,38 +1069,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
@@ -1033,6 +1130,8 @@ public java.util.List getGlossaryTran
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1051,6 +1150,8 @@ public int getGlossaryTranslationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1069,6 +1170,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
@@ -1094,6 +1197,8 @@ public Builder setGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1116,6 +1221,8 @@ public Builder setGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1140,6 +1247,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
@@ -1165,6 +1274,8 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1187,6 +1298,8 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1209,6 +1322,8 @@ public Builder addGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1223,8 +1338,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);
@@ -1232,6 +1346,8 @@ public Builder addAllGlossaryTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1253,6 +1369,8 @@ public Builder clearGlossaryTranslations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1274,6 +1392,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
@@ -1289,6 +1409,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
@@ -1302,11 +1424,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
@@ -1317,8 +1442,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 {
@@ -1326,6 +1451,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
@@ -1337,10 +1464,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
@@ -1353,10 +1482,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
@@ -1367,16 +1498,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(),
@@ -1385,9 +1522,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);
     }
 
@@ -1397,12 +1534,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();
   }
@@ -1411,16 +1548,16 @@ 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 {
-      return new TranslateTextResponse(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new TranslateTextResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1435,6 +1572,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3.TranslateTextResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
similarity index 82%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
index 8a9c20edf..9d9910be4 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslateTextResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
similarity index 74%
rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
index 012270dc5..1f11ed9c8 100644
--- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
+++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/Translation.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,16 +45,15 @@ private Translation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Translation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Translation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,72 +72,83 @@ private Translation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - translatedText_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; - } - case 26: { - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder subBuilder = null; - if (glossaryConfig_ != null) { - subBuilder = glossaryConfig_.toBuilder(); + translatedText_ = s; + break; } - glossaryConfig_ = input.readMessage(com.google.cloud.translate.v3.TranslateTextGlossaryConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryConfig_); - glossaryConfig_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; } + case 26: + { + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.Builder subBuilder = null; + if (glossaryConfig_ != null) { + subBuilder = glossaryConfig_.toBuilder(); + } + glossaryConfig_ = + input.readMessage( + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryConfig_); + glossaryConfig_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - detectedLanguageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + detectedLanguageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object translatedText_; /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -128,6 +156,7 @@ private Translation(
    * 
* * string translated_text = 1; + * * @return The translatedText. */ @java.lang.Override @@ -136,14 +165,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
@@ -151,16 +181,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 { @@ -171,6 +200,8 @@ public java.lang.String getTranslatedText() { public static final int MODEL_FIELD_NUMBER = 2; private volatile java.lang.Object model_; /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -182,6 +213,7 @@ public java.lang.String getTranslatedText() {
    * 
* * string model = 2; + * * @return The model. */ @java.lang.Override @@ -190,14 +222,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.
@@ -209,16 +242,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 { @@ -229,6 +261,8 @@ public java.lang.String getModel() { public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 4; 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
@@ -237,6 +271,7 @@ public java.lang.String getModel() {
    * 
* * string detected_language_code = 4; + * * @return The detectedLanguageCode. */ @java.lang.Override @@ -245,14 +280,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
@@ -261,16 +297,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 { @@ -281,11 +316,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 @@ -293,18 +331,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.
    * 
@@ -312,11 +357,13 @@ 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() { + public com.google.cloud.translate.v3.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { return getGlossaryConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,8 +375,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_); } @@ -358,8 +404,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_); @@ -372,23 +417,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -416,118 +458,127 @@ 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() @@ -535,16 +586,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -564,9 +614,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 @@ -585,7 +635,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); + com.google.cloud.translate.v3.Translation result = + new com.google.cloud.translate.v3.Translation(this); result.translatedText_ = translatedText_; result.model_ = model_; result.detectedLanguageCode_ = detectedLanguageCode_; @@ -602,38 +653,39 @@ public com.google.cloud.translate.v3.Translation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -688,6 +740,8 @@ public Builder mergeFrom( private java.lang.Object translatedText_ = ""; /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -695,13 +749,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; @@ -710,6 +764,8 @@ public java.lang.String getTranslatedText() { } } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -717,15 +773,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 { @@ -733,6 +788,8 @@ public java.lang.String getTranslatedText() { } } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -740,20 +797,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) { + public Builder setTranslatedText(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + translatedText_ = value; onChanged(); return this; } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -761,15 +820,18 @@ public Builder setTranslatedText(
      * 
* * string translated_text = 1; + * * @return This builder for chaining. */ public Builder clearTranslatedText() { - + translatedText_ = getDefaultInstance().getTranslatedText(); onChanged(); return this; } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -777,16 +839,16 @@ 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) { + public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + translatedText_ = value; onChanged(); return this; @@ -794,6 +856,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.
@@ -805,13 +869,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; @@ -820,6 +884,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -831,15 +897,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 { @@ -847,6 +912,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -858,20 +925,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) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -883,15 +952,18 @@ public Builder setModel(
      * 
* * string model = 2; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -903,16 +975,16 @@ 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) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; @@ -920,6 +992,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
@@ -928,13 +1002,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; @@ -943,6 +1017,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
@@ -951,15 +1027,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 { @@ -967,6 +1042,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
@@ -975,20 +1052,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) { + public Builder setDetectedLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + detectedLanguageCode_ = value; 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
@@ -997,15 +1076,18 @@ public Builder setDetectedLanguageCode(
      * 
* * string detected_language_code = 4; + * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { - + detectedLanguageCode_ = getDefaultInstance().getDetectedLanguageCode(); 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
@@ -1014,16 +1096,16 @@ 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) { + public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detectedLanguageCode_ = value; onChanged(); return this; @@ -1031,41 +1113,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 glossaryConfigBuilder_ != null || glossaryConfig_ != null; } /** + * + * *
      * 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(); @@ -1079,6 +1175,8 @@ public Builder setGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGlos return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
@@ -1097,17 +1195,22 @@ 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 (glossaryConfig_ != null) { glossaryConfig_ = - com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_) + .mergeFrom(value) + .buildPartial(); } else { glossaryConfig_ = value; } @@ -1119,6 +1222,8 @@ public Builder mergeGlossaryConfig(com.google.cloud.translate.v3.TranslateTextGl return this; } /** + * + * *
      * The `glossary_config` used for this translation.
      * 
@@ -1137,33 +1242,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() { + 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.
      * 
@@ -1171,21 +1285,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); } @@ -1195,12 +1312,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(); } @@ -1209,16 +1326,16 @@ 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 { - return new Translation(input, extensionRegistry); - } - }; + 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 { + return new Translation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1233,6 +1350,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3.Translation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java similarity index 79% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java rename to proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java index 1b1cbafe3..5bddec808 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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.
@@ -43,10 +66,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.
@@ -58,12 +84,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
@@ -72,10 +100,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
@@ -84,30 +115,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/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java new file mode 100644 index 000000000..d0d9cc1ad --- /dev/null +++ b/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/TranslationServiceProto.java @@ -0,0 +1,1015 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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\033goog" + + "le/protobuf/empty.proto\032\037google/protobuf" + + "/timestamp.proto\032\027google/rpc/status.prot" + + "o\"N\n\033TranslateTextGlossaryConfig\022\025\n\010glos" + + "sary\030\001 \001(\tB\003\340A\002\022\030\n\013ignore_case\030\002 \001(\010B\003\340A" + + "\001\"\265\003\n\024TranslateTextRequest\022\025\n\010contents\030\001" + + " \003(\tB\003\340A\002\022\026\n\tmime_type\030\003 \001(\tB\003\340A\001\022!\n\024sou" + + "rce_language_code\030\004 \001(\tB\003\340A\001\022!\n\024target_l" + + "anguage_code\030\005 \001(\tB\003\340A\002\0229\n\006parent\030\010 \001(\tB" + + ")\340A\002\372A#\n!locations.googleapis.com/Locati" + + "on\022\022\n\005model\030\006 \001(\tB\003\340A\001\022V\n\017glossary_confi" + + "g\030\007 \001(\01328.google.cloud.translation.v3.Tr" + + "anslateTextGlossaryConfigB\003\340A\001\022R\n\006labels" + + "\030\n \003(\0132=.google.cloud.translation.v3.Tra" + + "nslateTextRequest.LabelsEntryB\003\340A\001\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"\240\001\n\025TranslateTextResponse\022>\n\014translati" + + "ons\030\001 \003(\0132(.google.cloud.translation.v3." + + "Translation\022G\n\025glossary_translations\030\003 \003" + + "(\0132(.google.cloud.translation.v3.Transla" + + "tion\"\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_languag" + + "e_code\030\004 \001(\t\022Q\n\017glossary_config\030\003 \001(\01328." + + "google.cloud.translation.v3.TranslateTex" + + "tGlossaryConfig\"\237\002\n\025DetectLanguageReques" + + "t\0229\n\006parent\030\005 \001(\tB)\340A\002\372A#\n!locations.goo" + + "gleapis.com/Location\022\022\n\005model\030\004 \001(\tB\003\340A\001" + + "\022\021\n\007content\030\001 \001(\tH\000\022\026\n\tmime_type\030\003 \001(\tB\003" + + "\340A\001\022S\n\006labels\030\006 \003(\0132>.google.cloud.trans" + + "lation.v3.DetectLanguageRequest.LabelsEn" + + "tryB\003\340A\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\"\221\001\n\034GetSupportedLan" + + "guagesRequest\0229\n\006parent\030\003 \001(\tB)\340A\002\372A#\n!l" + + "ocations.googleapis.com/Location\022\"\n\025disp" + + "lay_language_code\030\001 \001(\tB\003\340A\001\022\022\n\005model\030\002 " + + "\001(\tB\003\340A\001\"W\n\022SupportedLanguages\022A\n\tlangua" + + "ges\030\001 \003(\0132..google.cloud.translation.v3." + + "SupportedLanguage\"p\n\021SupportedLanguage\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\016support_t" + + "arget\030\004 \001(\010\"#\n\tGcsSource\022\026\n\tinput_uri\030\001 " + + "\001(\tB\003\340A\002\"m\n\013InputConfig\022\026\n\tmime_type\030\001 \001" + + "(\tB\003\340A\001\022<\n\ngcs_source\030\002 \001(\0132&.google.clo" + + "ud.translation.v3.GcsSourceH\000B\010\n\006source\"" + + "0\n\016GcsDestination\022\036\n\021output_uri_prefix\030\001" + + " \001(\tB\003\340A\002\"e\n\014OutputConfig\022F\n\017gcs_destina" + + "tion\030\001 \001(\0132+.google.cloud.translation.v3" + + ".GcsDestinationH\000B\r\n\013destination\"\203\001\n\023Doc" + + "umentInputConfig\022\021\n\007content\030\001 \001(\014H\000\022<\n\ng" + + "cs_source\030\002 \001(\0132&.google.cloud.translati" + + "on.v3.GcsSourceH\000\022\021\n\tmime_type\030\004 \001(\tB\010\n\006" + + "source\"\212\001\n\024DocumentOutputConfig\022K\n\017gcs_d" + + "estination\030\001 \001(\0132+.google.cloud.translat" + + "ion.v3.GcsDestinationB\003\340A\001H\000\022\026\n\tmime_typ" + + "e\030\003 \001(\tB\003\340A\001B\r\n\013destination\"\226\004\n\030Translat" + + "eDocumentRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022!\n" + + "\024source_language_code\030\002 \001(\tB\003\340A\001\022!\n\024targ" + + "et_language_code\030\003 \001(\tB\003\340A\002\022T\n\025document_" + + "input_config\030\004 \001(\01320.google.cloud.transl" + + "ation.v3.DocumentInputConfigB\003\340A\002\022V\n\026doc" + + "ument_output_config\030\005 \001(\01321.google.cloud" + + ".translation.v3.DocumentOutputConfigB\003\340A" + + "\001\022\022\n\005model\030\006 \001(\tB\003\340A\001\022V\n\017glossary_config" + + "\030\007 \001(\01328.google.cloud.translation.v3.Tra" + + "nslateTextGlossaryConfigB\003\340A\001\022V\n\006labels\030" + + "\010 \003(\0132A.google.cloud.translation.v3.Tran" + + "slateDocumentRequest.LabelsEntryB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"e\n\023DocumentTranslation\022\033\n\023byte_stre" + + "am_outputs\030\001 \003(\014\022\021\n\tmime_type\030\002 \001(\t\022\036\n\026d" + + "etected_language_code\030\003 \001(\t\"\246\002\n\031Translat" + + "eDocumentResponse\022N\n\024document_translatio" + + "n\030\001 \001(\01320.google.cloud.translation.v3.Do" + + "cumentTranslation\022W\n\035glossary_document_t" + + "ranslation\030\002 \001(\01320.google.cloud.translat" + + "ion.v3.DocumentTranslation\022\r\n\005model\030\003 \001(" + + "\t\022Q\n\017glossary_config\030\004 \001(\01328.google.clou" + + "d.translation.v3.TranslateTextGlossaryCo" + + "nfig\"\210\006\n\031BatchTranslateTextRequest\0229\n\006pa" + + "rent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis" + + ".com/Location\022!\n\024source_language_code\030\002 " + + "\001(\tB\003\340A\002\022\"\n\025target_language_codes\030\003 \003(\tB" + + "\003\340A\002\022W\n\006models\030\004 \003(\0132B.google.cloud.tran" + + "slation.v3.BatchTranslateTextRequest.Mod" + + "elsEntryB\003\340A\001\022D\n\rinput_configs\030\005 \003(\0132(.g" + + "oogle.cloud.translation.v3.InputConfigB\003" + + "\340A\002\022E\n\routput_config\030\006 \001(\0132).google.clou" + + "d.translation.v3.OutputConfigB\003\340A\002\022_\n\ngl" + + "ossaries\030\007 \003(\0132F.google.cloud.translatio" + + "n.v3.BatchTranslateTextRequest.Glossarie" + + "sEntryB\003\340A\001\022W\n\006labels\030\t \003(\0132B.google.clo" + + "ud.translation.v3.BatchTranslateTextRequ" + + "est.LabelsEntryB\003\340A\001\032-\n\013ModelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032k\n\017Glossarie" + + "sEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002 \001(\01328.goo" + + "gle.cloud.translation.v3.TranslateTextGl" + + "ossaryConfig:\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\026BatchTransla" + + "teMetadata\022H\n\005state\030\001 \001(\01629.google.cloud" + + ".translation.v3.BatchTranslateMetadata.S" + + "tate\022\035\n\025translated_characters\030\002 \001(\003\022\031\n\021f" + + "ailed_characters\030\003 \001(\003\022\030\n\020total_characte" + + "rs\030\004 \001(\003\022/\n\013submit_time\030\005 \001(\0132\032.google.p" + + "rotobuf.Timestamp\"e\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\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" + + "\"\313\001\n\026BatchTranslateResponse\022\030\n\020total_cha" + + "racters\030\001 \001(\003\022\035\n\025translated_characters\030\002" + + " \001(\003\022\031\n\021failed_characters\030\003 \001(\003\022/\n\013submi" + + "t_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "\022,\n\010end_time\030\005 \001(\0132\032.google.protobuf.Tim" + + "estamp\"]\n\023GlossaryInputConfig\022<\n\ngcs_sou" + + "rce\030\001 \001(\0132&.google.cloud.translation.v3." + + "GcsSourceH\000B\010\n\006source\"\377\004\n\010Glossary\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\002\022O\n\rlanguage_pair\030\003 \001(\01326.g" + + "oogle.cloud.translation.v3.Glossary.Lang" + + "uageCodePairH\000\022T\n\022language_codes_set\030\004 \001" + + "(\01326.google.cloud.translation.v3.Glossar" + + "y.LanguageCodesSetH\000\022F\n\014input_config\030\005 \001" + + "(\01320.google.cloud.translation.v3.Glossar" + + "yInputConfig\022\030\n\013entry_count\030\006 \001(\005B\003\340A\003\0224" + + "\n\013submit_time\030\007 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0221\n\010end_time\030\010 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\032N\n\020LanguageCodeP" + + "air\022\034\n\024source_language_code\030\001 \001(\t\022\034\n\024tar" + + "get_language_code\030\002 \001(\t\032*\n\020LanguageCodes" + + "Set\022\026\n\016language_codes\030\001 \003(\t:e\352Ab\n!transl" + + "ate.googleapis.com/Glossary\022=projects/{p" + + "roject}/locations/{location}/glossaries/" + + "{glossary}B\013\n\tlanguages\"\220\001\n\025CreateGlossa" + + "ryRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locat" + + "ions.googleapis.com/Location\022<\n\010glossary" + + "\030\002 \001(\0132%.google.cloud.translation.v3.Glo" + + "ssaryB\003\340A\002\"M\n\022GetGlossaryRequest\0227\n\004name" + + "\030\001 \001(\tB)\340A\002\372A#\n!translate.googleapis.com" + + "/Glossary\"P\n\025DeleteGlossaryRequest\0227\n\004na" + + "me\030\001 \001(\tB)\340A\002\372A#\n!translate.googleapis.c" + + "om/Glossary\"\230\001\n\025ListGlossariesRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" + + "pis.com/Location\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001" + + "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(" + + "\tB\003\340A\001\"l\n\026ListGlossariesResponse\0229\n\nglos" + + "saries\030\001 \003(\0132%.google.cloud.translation." + + "v3.Glossary\022\027\n\017next_page_token\030\002 \001(\t\"\210\002\n" + + "\026CreateGlossaryMetadata\022\014\n\004name\030\001 \001(\t\022H\n" + + "\005state\030\002 \001(\01629.google.cloud.translation." + + "v3.CreateGlossaryMetadata.State\022/\n\013submi" + + "t_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNN" + + "ING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANC" + + "ELLING\020\004\022\r\n\tCANCELLED\020\005\"\210\002\n\026DeleteGlossa" + + "ryMetadata\022\014\n\004name\030\001 \001(\t\022H\n\005state\030\002 \001(\0162" + + "9.google.cloud.translation.v3.DeleteGlos" + + "saryMetadata.State\022/\n\013submit_time\030\003 \001(\0132" + + "\032.google.protobuf.Timestamp\"e\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCC" + + "EEDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tC" + + "ANCELLED\020\005\"\205\001\n\026DeleteGlossaryResponse\022\014\n" + + "\004name\030\001 \001(\t\022/\n\013submit_time\030\002 \001(\0132\032.googl" + + "e.protobuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032" + + ".google.protobuf.Timestamp\"\324\006\n\035BatchTran" + + "slateDocumentRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "!\n\024source_language_code\030\002 \001(\tB\003\340A\002\022\"\n\025ta" + + "rget_language_codes\030\003 \003(\tB\003\340A\002\022Q\n\rinput_" + + "configs\030\004 \003(\01325.google.cloud.translation" + + ".v3.BatchDocumentInputConfigB\003\340A\002\022R\n\rout" + + "put_config\030\005 \001(\01326.google.cloud.translat" + + "ion.v3.BatchDocumentOutputConfigB\003\340A\002\022[\n" + + "\006models\030\006 \003(\0132F.google.cloud.translation" + + ".v3.BatchTranslateDocumentRequest.Models" + + "EntryB\003\340A\001\022c\n\nglossaries\030\007 \003(\0132J.google." + + "cloud.translation.v3.BatchTranslateDocum" + + "entRequest.GlossariesEntryB\003\340A\001\022r\n\022forma" + + "t_conversions\030\010 \003(\0132Q.google.cloud.trans" + + "lation.v3.BatchTranslateDocumentRequest." + + "FormatConversionsEntryB\003\340A\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\202" + + "\323\344\223\002b\"1/v3/{parent=projects/*/locations/" + + "*}:translateText:\001*Z*\"%/v3/{parent=proje" + + "cts/*}:translateText:\001*\332A$parent,target_" + + "language_code,contents\332AIparent,model,mi" + + "me_type,source_language_code,target_lang" + + "uage_code,contents\022\207\002\n\016DetectLanguage\0222." + + "google.cloud.translation.v3.DetectLangua" + + "geRequest\0323.google.cloud.translation.v3." + + "DetectLanguageResponse\"\213\001\202\323\344\223\002d\"2/v3/{pa" + + "rent=projects/*/locations/*}:detectLangu" + + "age:\001*Z+\"&/v3/{parent=projects/*}:detect" + + "Language:\001*\332A\036parent,model,mime_type,con" + + "tent\022\227\002\n\025GetSupportedLanguages\0229.google." + + "cloud.translation.v3.GetSupportedLanguag" + + "esRequest\032/.google.cloud.translation.v3." + + "SupportedLanguages\"\221\001\202\323\344\223\002f\0226/v3/{parent" + + "=projects/*/locations/*}/supportedLangua" + + "gesZ,\022*/v3/{parent=projects/*}/supported" + + "Languages\332A\"parent,model,display_languag" + + "e_code\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\202\323\344" + + "\223\002;\"6/v3/{parent=projects/*/locations/*}" + + ":batchTranslateText:\001*\312A0\n\026BatchTranslat" + + "eResponse\022\026BatchTranslateMetadata\022\316\002\n\026Ba" + + "tchTranslateDocument\022:.google.cloud.tran" + + "slation.v3.BatchTranslateDocumentRequest" + + "\032\035.google.longrunning.Operation\"\330\001\202\323\344\223\002?" + + "\":/v3/{parent=projects/*/locations/*}:ba" + + "tchTranslateDocument:\001*\332AMparent,source_" + + "language_code,target_language_codes,inpu" + + "t_configs,output_config\312A@\n\036BatchTransla" + + "teDocumentResponse\022\036BatchTranslateDocume" + + "ntMetadata\022\334\001\n\016CreateGlossary\0222.google.c" + + "loud.translation.v3.CreateGlossaryReques" + + "t\032\035.google.longrunning.Operation\"w\202\323\344\223\002:" + + "\"./v3/{parent=projects/*/locations/*}/gl" + + "ossaries:\010glossary\332A\017parent,glossary\312A\"\n" + + "\010Glossary\022\026CreateGlossaryMetadata\022\272\001\n\016Li" + + "stGlossaries\0222.google.cloud.translation." + + "v3.ListGlossariesRequest\0323.google.cloud." + + "translation.v3.ListGlossariesResponse\"?\202" + + "\323\344\223\0020\022./v3/{parent=projects/*/locations/" + + "*}/glossaries\332A\006parent\022\244\001\n\013GetGlossary\022/" + + ".google.cloud.translation.v3.GetGlossary" + + "Request\032%.google.cloud.translation.v3.Gl" + + "ossary\"=\202\323\344\223\0020\022./v3/{name=projects/*/loc" + + "ations/*/glossaries/*}\332A\004name\022\325\001\n\016Delete" + + "Glossary\0222.google.cloud.translation.v3.D" + + "eleteGlossaryRequest\032\035.google.longrunnin" + + "g.Operation\"p\202\323\344\223\0020*./v3/{name=projects/" + + "*/locations/*/glossaries/*}\332A\004name\312A0\n\026D" + + "eleteGlossaryResponse\022\026DeleteGlossaryMet" + + "adata\032~\312A\030translate.googleapis.com\322A`htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/clou" + + "d-translationB\330\001\n\035com.google.cloud.trans" + + "late.v3B\027TranslationServiceProtoP\001ZBgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "translate/v3;translate\370\001\001\252\002\031Google.Cloud" + + ".Translate.V3\312\002\031Google\\Cloud\\Translate\\V" + + "3\352\002\034Google::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.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.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", + }); + 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", + "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", + }); + 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.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/location/locations.proto b/proto-google-cloud-translate-v3/src/main/proto/google/cloud/location/locations.proto similarity index 100% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/location/locations.proto rename to proto-google-cloud-translate-v3/src/main/proto/google/cloud/location/locations.proto diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto b/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto similarity index 100% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto rename to proto-google-cloud-translate-v3/src/main/proto/google/cloud/translate/v3/translation_service.proto diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequest.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequest.java similarity index 68% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequest.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequest.java index 0e0504b06..df03662eb 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequest.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto package com.google.cloud.location; /** + * + * *
  * The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
  * 
* * Protobuf type {@code google.cloud.location.GetLocationRequest} */ -public final class GetLocationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetLocationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.location.GetLocationRequest) GetLocationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetLocationRequest.newBuilder() to construct. private GetLocationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetLocationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetLocationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetLocationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,58 @@ private GetLocationRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_GetLocationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.GetLocationRequest.class, com.google.cloud.location.GetLocationRequest.Builder.class); + com.google.cloud.location.GetLocationRequest.class, + com.google.cloud.location.GetLocationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Resource name for the location.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -107,29 +130,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; } } /** + * + * *
    * Resource name for the location.
    * 
* * 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 { @@ -138,6 +161,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,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_); } @@ -174,15 +197,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.location.GetLocationRequest)) { return super.equals(obj); } - com.google.cloud.location.GetLocationRequest other = (com.google.cloud.location.GetLocationRequest) obj; + com.google.cloud.location.GetLocationRequest other = + (com.google.cloud.location.GetLocationRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -201,118 +224,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.location.GetLocationRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.location.GetLocationRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.GetLocationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.GetLocationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.GetLocationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.GetLocationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.GetLocationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.GetLocationRequest 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.location.GetLocationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.location.GetLocationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.location.GetLocationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.location.GetLocationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.location.GetLocationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.location.GetLocationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.location.GetLocationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
    * 
* * Protobuf type {@code google.cloud.location.GetLocationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.location.GetLocationRequest) com.google.cloud.location.GetLocationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_GetLocationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.GetLocationRequest.class, com.google.cloud.location.GetLocationRequest.Builder.class); + com.google.cloud.location.GetLocationRequest.class, + com.google.cloud.location.GetLocationRequest.Builder.class); } // Construct using com.google.cloud.location.GetLocationRequest.newBuilder() @@ -320,16 +352,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_GetLocationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_GetLocationRequest_descriptor; } @java.lang.Override @@ -360,7 +391,8 @@ public com.google.cloud.location.GetLocationRequest build() { @java.lang.Override public com.google.cloud.location.GetLocationRequest buildPartial() { - com.google.cloud.location.GetLocationRequest result = new com.google.cloud.location.GetLocationRequest(this); + com.google.cloud.location.GetLocationRequest result = + new com.google.cloud.location.GetLocationRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +402,39 @@ public com.google.cloud.location.GetLocationRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.location.GetLocationRequest) { - return mergeFrom((com.google.cloud.location.GetLocationRequest)other); + return mergeFrom((com.google.cloud.location.GetLocationRequest) other); } else { super.mergeFrom(other); return this; @@ -445,18 +478,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Resource name for the location.
      * 
* * 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; @@ -465,20 +500,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Resource name for the location.
      * 
* * 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 { @@ -486,61 +522,68 @@ public java.lang.String getName() { } } /** + * + * *
      * Resource name for the location.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Resource name for the location.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Resource name for the location.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; 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); } @@ -550,12 +593,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.location.GetLocationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.location.GetLocationRequest) private static final com.google.cloud.location.GetLocationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.location.GetLocationRequest(); } @@ -564,16 +607,16 @@ public static com.google.cloud.location.GetLocationRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLocationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLocationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLocationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetLocationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +631,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.location.GetLocationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java new file mode 100644 index 000000000..a8f3d0f9b --- /dev/null +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/location/locations.proto + +package com.google.cloud.location; + +public interface GetLocationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.location.GetLocationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name for the location.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Resource name for the location.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequest.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequest.java similarity index 71% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequest.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequest.java index a8fafc856..7fcb20d65 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/ListLocationsRequest.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto package com.google.cloud.location; /** + * + * *
  * The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
  * 
* * Protobuf type {@code google.cloud.location.ListLocationsRequest} */ -public final class ListLocationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLocationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.location.ListLocationsRequest) ListLocationsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLocationsRequest.newBuilder() to construct. private ListLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLocationsRequest() { name_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListLocationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLocationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListLocationsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,69 +72,77 @@ private ListLocationsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsRequest.class, com.google.cloud.location.ListLocationsRequest.Builder.class); + com.google.cloud.location.ListLocationsRequest.class, + com.google.cloud.location.ListLocationsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource that owns the locations collection, if applicable.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -126,29 +151,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 resource that owns the locations collection, if applicable.
    * 
* * 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 { @@ -159,11 +184,14 @@ public java.lang.String getName() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * The standard list filter.
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -172,29 +200,29 @@ 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; } } /** + * + * *
    * The standard list filter.
    * 
* * string filter = 2; + * * @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 { @@ -205,11 +233,14 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * The standard list page size.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -220,11 +251,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** + * + * *
    * The standard list page token.
    * 
* * string page_token = 4; + * * @return The pageToken. */ @java.lang.Override @@ -233,29 +267,29 @@ 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; } } /** + * + * *
    * The standard list page token.
    * 
* * string page_token = 4; + * * @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 { @@ -264,6 +298,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,8 +310,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_); } @@ -305,8 +339,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -319,21 +352,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.location.ListLocationsRequest)) { return super.equals(obj); } - com.google.cloud.location.ListLocationsRequest other = (com.google.cloud.location.ListLocationsRequest) obj; + com.google.cloud.location.ListLocationsRequest other = + (com.google.cloud.location.ListLocationsRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getName().equals(other.getName())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -358,118 +388,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.location.ListLocationsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.location.ListLocationsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.ListLocationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.ListLocationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.ListLocationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.ListLocationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.ListLocationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.ListLocationsRequest 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.location.ListLocationsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.location.ListLocationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.location.ListLocationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.location.ListLocationsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.location.ListLocationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.location.ListLocationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.location.ListLocationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
    * 
* * Protobuf type {@code google.cloud.location.ListLocationsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.location.ListLocationsRequest) com.google.cloud.location.ListLocationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsRequest.class, com.google.cloud.location.ListLocationsRequest.Builder.class); + com.google.cloud.location.ListLocationsRequest.class, + com.google.cloud.location.ListLocationsRequest.Builder.class); } // Construct using com.google.cloud.location.ListLocationsRequest.newBuilder() @@ -477,16 +516,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -502,9 +540,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsRequest_descriptor; } @java.lang.Override @@ -523,7 +561,8 @@ public com.google.cloud.location.ListLocationsRequest build() { @java.lang.Override public com.google.cloud.location.ListLocationsRequest buildPartial() { - com.google.cloud.location.ListLocationsRequest result = new com.google.cloud.location.ListLocationsRequest(this); + com.google.cloud.location.ListLocationsRequest result = + new com.google.cloud.location.ListLocationsRequest(this); result.name_ = name_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -536,38 +575,39 @@ public com.google.cloud.location.ListLocationsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.location.ListLocationsRequest) { - return mergeFrom((com.google.cloud.location.ListLocationsRequest)other); + return mergeFrom((com.google.cloud.location.ListLocationsRequest) other); } else { super.mergeFrom(other); return this; @@ -622,18 +662,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The resource that owns the locations collection, if applicable.
      * 
* * 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; @@ -642,20 +684,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource that owns the locations collection, if applicable.
      * 
* * 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 { @@ -663,54 +706,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource that owns the locations collection, if applicable.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource that owns the locations collection, if applicable.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource that owns the locations collection, if applicable.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -718,18 +768,20 @@ public Builder setNameBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * The standard list filter.
      * 
* * string filter = 2; + * * @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; @@ -738,20 +790,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * The standard list filter.
      * 
* * string filter = 2; + * * @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 { @@ -759,66 +812,76 @@ public java.lang.String getFilter() { } } /** + * + * *
      * The standard list filter.
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * The standard list filter.
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * The standard list filter.
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The standard list page size.
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -826,30 +889,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The standard list page size.
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The standard list page size.
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -857,18 +926,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The standard list page token.
      * 
* * string page_token = 4; + * * @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; @@ -877,20 +948,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The standard list page token.
      * 
* * string page_token = 4; + * * @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 { @@ -898,61 +970,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The standard list page token.
      * 
* * string page_token = 4; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * The standard list page token.
      * 
* * string page_token = 4; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * The standard list page token.
      * 
* * string page_token = 4; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; 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); } @@ -962,12 +1041,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.location.ListLocationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.location.ListLocationsRequest) private static final com.google.cloud.location.ListLocationsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.location.ListLocationsRequest(); } @@ -976,16 +1055,16 @@ public static com.google.cloud.location.ListLocationsRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLocationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLocationsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLocationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLocationsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1000,6 +1079,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.location.ListLocationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java index c7aae8901..3a3f39a7f 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java @@ -1,79 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto package com.google.cloud.location; -public interface ListLocationsRequestOrBuilder extends +public interface ListLocationsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.location.ListLocationsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource that owns the locations collection, if applicable.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource that owns the locations collection, if applicable.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The standard list filter.
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * The standard list filter.
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * The standard list page size.
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The standard list page token.
    * 
* * string page_token = 4; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The standard list page token.
    * 
* * string page_token = 4; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponse.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponse.java similarity index 74% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponse.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponse.java index 368d21f4a..77ad19930 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponse.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto package com.google.cloud.location; /** + * + * *
  * The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
  * 
* * Protobuf type {@code google.cloud.location.ListLocationsResponse} */ -public final class ListLocationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLocationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.location.ListLocationsResponse) ListLocationsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLocationsResponse.newBuilder() to construct. private ListLocationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLocationsResponse() { locations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListLocationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLocationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListLocationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,37 @@ private ListLocationsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + locations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + locations_.add( + input.readMessage( + com.google.cloud.location.Location.parser(), extensionRegistry)); + break; } - locations_.add( - input.readMessage(com.google.cloud.location.Location.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { locations_ = java.util.Collections.unmodifiableList(locations_); @@ -92,22 +111,27 @@ private ListLocationsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsResponse.class, com.google.cloud.location.ListLocationsResponse.Builder.class); + com.google.cloud.location.ListLocationsResponse.class, + com.google.cloud.location.ListLocationsResponse.Builder.class); } public static final int LOCATIONS_FIELD_NUMBER = 1; private java.util.List locations_; /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -119,6 +143,8 @@ public java.util.List getLocationsList() { return locations_; } /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -126,11 +152,13 @@ public java.util.List getLocationsList() { * repeated .google.cloud.location.Location locations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getLocationsOrBuilderList() { return locations_; } /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -142,6 +170,8 @@ public int getLocationsCount() { return locations_.size(); } /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -153,6 +183,8 @@ public com.google.cloud.location.Location getLocations(int index) { return locations_.get(index); } /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -160,19 +192,21 @@ public com.google.cloud.location.Location getLocations(int index) { * repeated .google.cloud.location.Location locations = 1; */ @java.lang.Override - public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder( - int index) { + public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index) { return locations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -181,29 +215,29 @@ 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; } } /** + * + * *
    * The standard List next-page token.
    * 
* * 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 { @@ -212,6 +246,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,8 +258,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 < locations_.size(); i++) { output.writeMessage(1, locations_.get(i)); } @@ -241,8 +275,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < locations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, locations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, locations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -255,17 +288,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.location.ListLocationsResponse)) { return super.equals(obj); } - com.google.cloud.location.ListLocationsResponse other = (com.google.cloud.location.ListLocationsResponse) obj; + com.google.cloud.location.ListLocationsResponse other = + (com.google.cloud.location.ListLocationsResponse) obj; - if (!getLocationsList() - .equals(other.getLocationsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getLocationsList().equals(other.getLocationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -288,118 +320,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.location.ListLocationsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.location.ListLocationsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.ListLocationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.ListLocationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.ListLocationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.ListLocationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.location.ListLocationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.location.ListLocationsResponse 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.location.ListLocationsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.location.ListLocationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.location.ListLocationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.location.ListLocationsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.location.ListLocationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.location.ListLocationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.location.ListLocationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
    * 
* * Protobuf type {@code google.cloud.location.ListLocationsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.location.ListLocationsResponse) com.google.cloud.location.ListLocationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsResponse.class, com.google.cloud.location.ListLocationsResponse.Builder.class); + com.google.cloud.location.ListLocationsResponse.class, + com.google.cloud.location.ListLocationsResponse.Builder.class); } // Construct using com.google.cloud.location.ListLocationsResponse.newBuilder() @@ -407,17 +448,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLocationsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -433,9 +474,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_ListLocationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_ListLocationsResponse_descriptor; } @java.lang.Override @@ -454,7 +495,8 @@ public com.google.cloud.location.ListLocationsResponse build() { @java.lang.Override public com.google.cloud.location.ListLocationsResponse buildPartial() { - com.google.cloud.location.ListLocationsResponse result = new com.google.cloud.location.ListLocationsResponse(this); + com.google.cloud.location.ListLocationsResponse result = + new com.google.cloud.location.ListLocationsResponse(this); int from_bitField0_ = bitField0_; if (locationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -474,38 +516,39 @@ public com.google.cloud.location.ListLocationsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.location.ListLocationsResponse) { - return mergeFrom((com.google.cloud.location.ListLocationsResponse)other); + return mergeFrom((com.google.cloud.location.ListLocationsResponse) other); } else { super.mergeFrom(other); return this; @@ -513,7 +556,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.location.ListLocationsResponse other) { - if (other == com.google.cloud.location.ListLocationsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.location.ListLocationsResponse.getDefaultInstance()) + return this; if (locationsBuilder_ == null) { if (!other.locations_.isEmpty()) { if (locations_.isEmpty()) { @@ -532,9 +576,10 @@ public Builder mergeFrom(com.google.cloud.location.ListLocationsResponse other) locationsBuilder_ = null; locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLocationsFieldBuilder() : null; + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationsFieldBuilder() + : null; } else { locationsBuilder_.addAllMessages(other.locations_); } @@ -572,21 +617,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List locations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLocationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { locations_ = new java.util.ArrayList(locations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, com.google.cloud.location.Location.Builder, com.google.cloud.location.LocationOrBuilder> locationsBuilder_; + com.google.cloud.location.Location, + com.google.cloud.location.Location.Builder, + com.google.cloud.location.LocationOrBuilder> + locationsBuilder_; /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -601,6 +653,8 @@ public java.util.List getLocationsList() { } } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -615,6 +669,8 @@ public int getLocationsCount() { } } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -629,14 +685,15 @@ public com.google.cloud.location.Location getLocations(int index) { } } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public Builder setLocations( - int index, com.google.cloud.location.Location value) { + public Builder setLocations(int index, com.google.cloud.location.Location value) { if (locationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -650,6 +707,8 @@ public Builder setLocations( return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -668,6 +727,8 @@ public Builder setLocations( return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -688,14 +749,15 @@ public Builder addLocations(com.google.cloud.location.Location value) { return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public Builder addLocations( - int index, com.google.cloud.location.Location value) { + public Builder addLocations(int index, com.google.cloud.location.Location value) { if (locationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -709,14 +771,15 @@ public Builder addLocations( return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public Builder addLocations( - com.google.cloud.location.Location.Builder builderForValue) { + public Builder addLocations(com.google.cloud.location.Location.Builder builderForValue) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); locations_.add(builderForValue.build()); @@ -727,6 +790,8 @@ public Builder addLocations( return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -745,6 +810,8 @@ public Builder addLocations( return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -755,8 +822,7 @@ public Builder addAllLocations( java.lang.Iterable values) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, locations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); onChanged(); } else { locationsBuilder_.addAllMessages(values); @@ -764,6 +830,8 @@ public Builder addAllLocations( return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -781,6 +849,8 @@ public Builder clearLocations() { return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -798,39 +868,44 @@ public Builder removeLocations(int index) { return this; } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public com.google.cloud.location.Location.Builder getLocationsBuilder( - int index) { + public com.google.cloud.location.Location.Builder getLocationsBuilder(int index) { return getLocationsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder( - int index) { + public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index) { if (locationsBuilder_ == null) { - return locations_.get(index); } else { + return locations_.get(index); + } else { return locationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public java.util.List - getLocationsOrBuilderList() { + public java.util.List + getLocationsOrBuilderList() { if (locationsBuilder_ != null) { return locationsBuilder_.getMessageOrBuilderList(); } else { @@ -838,6 +913,8 @@ public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder( } } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
@@ -845,42 +922,47 @@ public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder( * repeated .google.cloud.location.Location locations = 1; */ public com.google.cloud.location.Location.Builder addLocationsBuilder() { - return getLocationsFieldBuilder().addBuilder( - com.google.cloud.location.Location.getDefaultInstance()); + return getLocationsFieldBuilder() + .addBuilder(com.google.cloud.location.Location.getDefaultInstance()); } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public com.google.cloud.location.Location.Builder addLocationsBuilder( - int index) { - return getLocationsFieldBuilder().addBuilder( - index, com.google.cloud.location.Location.getDefaultInstance()); + public com.google.cloud.location.Location.Builder addLocationsBuilder(int index) { + return getLocationsFieldBuilder() + .addBuilder(index, com.google.cloud.location.Location.getDefaultInstance()); } /** + * + * *
      * A list of locations that matches the specified filter in the request.
      * 
* * repeated .google.cloud.location.Location locations = 1; */ - public java.util.List - getLocationsBuilderList() { + public java.util.List getLocationsBuilderList() { return getLocationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, com.google.cloud.location.Location.Builder, com.google.cloud.location.LocationOrBuilder> + com.google.cloud.location.Location, + com.google.cloud.location.Location.Builder, + com.google.cloud.location.LocationOrBuilder> getLocationsFieldBuilder() { if (locationsBuilder_ == null) { - locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, com.google.cloud.location.Location.Builder, com.google.cloud.location.LocationOrBuilder>( - locations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + locationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.location.Location, + com.google.cloud.location.Location.Builder, + com.google.cloud.location.LocationOrBuilder>( + locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); locations_ = null; } return locationsBuilder_; @@ -888,18 +970,20 @@ public com.google.cloud.location.Location.Builder addLocationsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The standard List next-page token.
      * 
* * 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; @@ -908,20 +992,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The standard List next-page token.
      * 
* * 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 { @@ -929,61 +1014,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * The standard List next-page token.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * The standard List next-page token.
      * 
* * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; 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); } @@ -993,12 +1085,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.location.ListLocationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.location.ListLocationsResponse) private static final com.google.cloud.location.ListLocationsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.location.ListLocationsResponse(); } @@ -1007,16 +1099,16 @@ public static com.google.cloud.location.ListLocationsResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLocationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLocationsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLocationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListLocationsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1031,6 +1123,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.location.ListLocationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java index f813b85a2..704771cc4 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto package com.google.cloud.location; -public interface ListLocationsResponseOrBuilder extends +public interface ListLocationsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.location.ListLocationsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
* * repeated .google.cloud.location.Location locations = 1; */ - java.util.List - getLocationsList(); + java.util.List getLocationsList(); /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -25,6 +44,8 @@ public interface ListLocationsResponseOrBuilder extends */ com.google.cloud.location.Location getLocations(int index); /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
@@ -33,41 +54,48 @@ public interface ListLocationsResponseOrBuilder extends */ int getLocationsCount(); /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
* * repeated .google.cloud.location.Location locations = 1; */ - java.util.List - getLocationsOrBuilderList(); + java.util.List getLocationsOrBuilderList(); /** + * + * *
    * A list of locations that matches the specified filter in the request.
    * 
* * repeated .google.cloud.location.Location locations = 1; */ - com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder( - int index); + com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index); /** + * + * *
    * The standard List next-page token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The standard List next-page token.
    * 
* * 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/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/Location.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/Location.java similarity index 68% rename from owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/Location.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/Location.java index 4af817e7e..0288131dc 100644 --- a/owl-bot-staging/v3/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/location/Location.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/Location.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/location/locations.proto package com.google.cloud.location; /** + * + * *
  * A resource that represents Google Cloud Platform location.
  * 
* * Protobuf type {@code google.cloud.location.Location} */ -public final class Location extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Location extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.location.Location) LocationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Location.newBuilder() to construct. private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Location() { name_ = ""; locationId_ = ""; @@ -27,16 +45,15 @@ private Location() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Location(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Location( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,103 +73,111 @@ private Location( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 26: { - com.google.protobuf.Any.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - metadata_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); + case 26: + { + com.google.protobuf.Any.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - locationId_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + locationId_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + displayName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_Location_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 2: 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.location.LocationsProto.internal_static_google_cloud_location_Location_fieldAccessorTable + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.Location.class, com.google.cloud.location.Location.Builder.class); + com.google.cloud.location.Location.class, + com.google.cloud.location.Location.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Resource name for the location, which may vary between implementations.
    * For example: `"projects/example-project/locations/us-east1"`
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -161,30 +186,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; } } /** + * + * *
    * Resource name for the location, which may vary between implementations.
    * For example: `"projects/example-project/locations/us-east1"`
    * 
* * 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 { @@ -195,11 +220,14 @@ public java.lang.String getName() { public static final int LOCATION_ID_FIELD_NUMBER = 4; private volatile java.lang.Object locationId_; /** + * + * *
    * The canonical id for this location. For example: `"us-east1"`.
    * 
* * string location_id = 4; + * * @return The locationId. */ @java.lang.Override @@ -208,29 +236,29 @@ public java.lang.String getLocationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationId_ = s; return s; } } /** + * + * *
    * The canonical id for this location. For example: `"us-east1"`.
    * 
* * string location_id = 4; + * * @return The bytes for locationId. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationIdBytes() { + public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locationId_ = b; return b; } else { @@ -241,12 +269,15 @@ public java.lang.String getLocationId() { public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** + * + * *
    * The friendly name for this location, typically a nearby city name.
    * For example, "Tokyo".
    * 
* * string display_name = 5; + * * @return The displayName. */ @java.lang.Override @@ -255,30 +286,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; } } /** + * + * *
    * The friendly name for this location, typically a nearby city name.
    * For example, "Tokyo".
    * 
* * string display_name = 5; + * * @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 { @@ -287,24 +318,23 @@ public java.lang.String getDisplayName() { } public static final int LABELS_FIELD_NUMBER = 2; + 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.location.LocationsProto.internal_static_google_cloud_location_Location_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.location.LocationsProto + .internal_static_google_cloud_location_Location_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - 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_; } @@ -313,6 +343,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -320,22 +352,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 2;
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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();
   }
   /**
+   *
+   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -344,11 +376,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -357,16 +390,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -375,12 +408,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -390,12 +422,15 @@ public java.lang.String getLabelsOrThrow(
   public static final int METADATA_FIELD_NUMBER = 3;
   private com.google.protobuf.Any metadata_;
   /**
+   *
+   *
    * 
    * Service-specific metadata. For example the available capacity at the given
    * location.
    * 
* * .google.protobuf.Any metadata = 3; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -403,12 +438,15 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Service-specific metadata. For example the available capacity at the given
    * location.
    * 
* * .google.protobuf.Any metadata = 3; + * * @return The metadata. */ @java.lang.Override @@ -416,6 +454,8 @@ public com.google.protobuf.Any getMetadata() { return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; } /** + * + * *
    * Service-specific metadata. For example the available capacity at the given
    * location.
@@ -429,6 +469,7 @@ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -440,17 +481,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_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        2);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2);
     if (metadata_ != null) {
       output.writeMessage(3, getMetadata());
     }
@@ -472,19 +508,18 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    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(2, 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(2, labels__);
     }
     if (metadata_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getMetadata());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, locationId_);
@@ -500,25 +535,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.location.Location)) {
       return super.equals(obj);
     }
     com.google.cloud.location.Location other = (com.google.cloud.location.Location) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getLocationId()
-        .equals(other.getLocationId())) return false;
-    if (!getDisplayName()
-        .equals(other.getDisplayName())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getLocationId().equals(other.getLocationId())) return false;
+    if (!getDisplayName().equals(other.getDisplayName())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (hasMetadata() != other.hasMetadata()) return false;
     if (hasMetadata()) {
-      if (!getMetadata()
-          .equals(other.getMetadata())) return false;
+      if (!getMetadata().equals(other.getMetadata())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -550,140 +580,146 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.location.Location parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.location.Location parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.location.Location parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.location.Location parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.cloud.location.Location parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.location.Location parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.location.Location parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.location.Location parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.location.Location 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.location.Location parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.location.Location 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.location.Location parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.location.Location parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.location.Location parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.location.Location prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 resource that represents Google Cloud Platform location.
    * 
* * Protobuf type {@code google.cloud.location.Location} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.location.Location) com.google.cloud.location.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_Location_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: 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 2: 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.location.LocationsProto.internal_static_google_cloud_location_Location_fieldAccessorTable + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.location.Location.class, com.google.cloud.location.Location.Builder.class); + com.google.cloud.location.Location.class, + com.google.cloud.location.Location.Builder.class); } // Construct using com.google.cloud.location.Location.newBuilder() @@ -691,16 +727,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -721,9 +756,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.location.LocationsProto.internal_static_google_cloud_location_Location_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.location.LocationsProto + .internal_static_google_cloud_location_Location_descriptor; } @java.lang.Override @@ -762,38 +797,39 @@ public com.google.cloud.location.Location buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.location.Location) { - return mergeFrom((com.google.cloud.location.Location)other); + return mergeFrom((com.google.cloud.location.Location) other); } else { super.mergeFrom(other); return this; @@ -814,8 +850,7 @@ public Builder mergeFrom(com.google.cloud.location.Location other) { displayName_ = other.displayName_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } @@ -847,23 +882,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * 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; @@ -872,21 +910,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * 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 { @@ -894,57 +933,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Resource name for the location, which may vary between implementations.
      * For example: `"projects/example-project/locations/us-east1"`
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -952,18 +998,20 @@ public Builder setNameBytes( private java.lang.Object locationId_ = ""; /** + * + * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; + * * @return The locationId. */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationId_ = s; return s; @@ -972,20 +1020,21 @@ public java.lang.String getLocationId() { } } /** + * + * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; + * * @return The bytes for locationId. */ - public com.google.protobuf.ByteString - getLocationIdBytes() { + public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locationId_ = b; return b; } else { @@ -993,54 +1042,61 @@ public java.lang.String getLocationId() { } } /** + * + * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; + * * @param value The locationId to set. * @return This builder for chaining. */ - public Builder setLocationId( - java.lang.String value) { + public Builder setLocationId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + locationId_ = value; onChanged(); return this; } /** + * + * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; + * * @return This builder for chaining. */ public Builder clearLocationId() { - + locationId_ = getDefaultInstance().getLocationId(); onChanged(); return this; } /** + * + * *
      * The canonical id for this location. For example: `"us-east1"`.
      * 
* * string location_id = 4; + * * @param value The bytes for locationId to set. * @return This builder for chaining. */ - public Builder setLocationIdBytes( - com.google.protobuf.ByteString value) { + public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + locationId_ = value; onChanged(); return this; @@ -1048,19 +1104,21 @@ public Builder setLocationIdBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; + * * @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; @@ -1069,21 +1127,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; + * * @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 { @@ -1091,78 +1150,84 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * The friendly name for this location, typically a nearby city name.
      * For example, "Tokyo".
      * 
* * string display_name = 5; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -1174,6 +1239,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1181,22 +1248,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 2;
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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();
     }
     /**
+     *
+     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1205,11 +1272,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1218,16 +1286,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1236,12 +1305,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1249,11 +1317,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1261,23 +1330,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 2;
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1285,16 +1352,19 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 2;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Cross-service attributes for the location. For example
      *     {"cloud.googleapis.com/region": "us-east1"}
@@ -1302,36 +1372,42 @@ public Builder putLabels(
      *
      * map<string, string> labels = 2;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
 
     private com.google.protobuf.Any metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> metadataBuilder_;
+            com.google.protobuf.Any,
+            com.google.protobuf.Any.Builder,
+            com.google.protobuf.AnyOrBuilder>
+        metadataBuilder_;
     /**
+     *
+     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
      * 
* * .google.protobuf.Any metadata = 3; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** + * + * *
      * Service-specific metadata. For example the available capacity at the given
      * location.
      * 
* * .google.protobuf.Any metadata = 3; + * * @return The metadata. */ public com.google.protobuf.Any getMetadata() { @@ -1342,6 +1418,8 @@ public com.google.protobuf.Any getMetadata() { } } /** + * + * *
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1363,6 +1441,8 @@ public Builder setMetadata(com.google.protobuf.Any value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1370,8 +1450,7 @@ public Builder setMetadata(com.google.protobuf.Any value) {
      *
      * .google.protobuf.Any metadata = 3;
      */
-    public Builder setMetadata(
-        com.google.protobuf.Any.Builder builderForValue) {
+    public Builder setMetadata(com.google.protobuf.Any.Builder builderForValue) {
       if (metadataBuilder_ == null) {
         metadata_ = builderForValue.build();
         onChanged();
@@ -1382,6 +1461,8 @@ public Builder setMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1392,8 +1473,7 @@ public Builder setMetadata(
     public Builder mergeMetadata(com.google.protobuf.Any value) {
       if (metadataBuilder_ == null) {
         if (metadata_ != null) {
-          metadata_ =
-            com.google.protobuf.Any.newBuilder(metadata_).mergeFrom(value).buildPartial();
+          metadata_ = com.google.protobuf.Any.newBuilder(metadata_).mergeFrom(value).buildPartial();
         } else {
           metadata_ = value;
         }
@@ -1405,6 +1485,8 @@ public Builder mergeMetadata(com.google.protobuf.Any value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1424,6 +1506,8 @@ public Builder clearMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1432,11 +1516,13 @@ public Builder clearMetadata() {
      * .google.protobuf.Any metadata = 3;
      */
     public com.google.protobuf.Any.Builder getMetadataBuilder() {
-      
+
       onChanged();
       return getMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1448,11 +1534,12 @@ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
       if (metadataBuilder_ != null) {
         return metadataBuilder_.getMessageOrBuilder();
       } else {
-        return metadata_ == null ?
-            com.google.protobuf.Any.getDefaultInstance() : metadata_;
+        return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_;
       }
     }
     /**
+     *
+     *
      * 
      * Service-specific metadata. For example the available capacity at the given
      * location.
@@ -1461,21 +1548,23 @@ public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() {
      * .google.protobuf.Any metadata = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
+            com.google.protobuf.Any,
+            com.google.protobuf.Any.Builder,
+            com.google.protobuf.AnyOrBuilder>
         getMetadataFieldBuilder() {
       if (metadataBuilder_ == null) {
-        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
-                getMetadata(),
-                getParentForChildren(),
-                isClean());
+        metadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Any,
+                com.google.protobuf.Any.Builder,
+                com.google.protobuf.AnyOrBuilder>(getMetadata(), getParentForChildren(), isClean());
         metadata_ = null;
       }
       return metadataBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1485,12 +1574,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.location.Location)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.location.Location)
   private static final com.google.cloud.location.Location DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.location.Location();
   }
@@ -1499,16 +1588,16 @@ public static com.google.cloud.location.Location getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Location parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Location(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Location parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Location(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1523,6 +1612,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.location.Location getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationOrBuilder.java
similarity index 72%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationOrBuilder.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationOrBuilder.java
index 0b24448b4..98ab25deb 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationOrBuilder.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationOrBuilder.java
@@ -1,77 +1,110 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/location/locations.proto
 
 package com.google.cloud.location;
 
-public interface LocationOrBuilder extends
+public interface LocationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.location.Location)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Resource name for the location, which may vary between implementations.
    * For example: `"projects/example-project/locations/us-east1"`
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Resource name for the location, which may vary between implementations.
    * For example: `"projects/example-project/locations/us-east1"`
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The canonical id for this location. For example: `"us-east1"`.
    * 
* * string location_id = 4; + * * @return The locationId. */ java.lang.String getLocationId(); /** + * + * *
    * The canonical id for this location. For example: `"us-east1"`.
    * 
* * string location_id = 4; + * * @return The bytes for locationId. */ - com.google.protobuf.ByteString - getLocationIdBytes(); + com.google.protobuf.ByteString getLocationIdBytes(); /** + * + * *
    * The friendly name for this location, typically a nearby city name.
    * For example, "Tokyo".
    * 
* * string display_name = 5; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The friendly name for this location, typically a nearby city name.
    * For example, "Tokyo".
    * 
* * string display_name = 5; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -81,6 +114,8 @@ public interface LocationOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -88,15 +123,13 @@ public interface LocationOrBuilder extends
    *
    * map<string, string> labels = 2;
    */
-  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();
   /**
+   *
+   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -104,9 +137,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 2;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -114,11 +148,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 2;
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Cross-service attributes for the location. For example
    *     {"cloud.googleapis.com/region": "us-east1"}
@@ -126,31 +159,37 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 2;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Service-specific metadata. For example the available capacity at the given
    * location.
    * 
* * .google.protobuf.Any metadata = 3; + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Service-specific metadata. For example the available capacity at the given
    * location.
    * 
* * .google.protobuf.Any metadata = 3; + * * @return The metadata. */ com.google.protobuf.Any getMetadata(); /** + * + * *
    * Service-specific metadata. For example the available capacity at the given
    * location.
diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsProto.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsProto.java
new file mode 100644
index 000000000..d2b6da306
--- /dev/null
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/location/LocationsProto.java
@@ -0,0 +1,150 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/location/locations.proto
+
+package com.google.cloud.location;
+
+public final class LocationsProto {
+  private LocationsProto() {}
+
+  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_location_ListLocationsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_location_ListLocationsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_location_GetLocationRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_location_Location_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_Location_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_location_Location_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n%google/cloud/location/locations.proto\022"
+          + "\025google.cloud.location\032\034google/api/annot"
+          + "ations.proto\032\031google/protobuf/any.proto\032"
+          + "\027google/api/client.proto\"[\n\024ListLocation"
+          + "sRequest\022\014\n\004name\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021"
+          + "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"d\n"
+          + "\025ListLocationsResponse\0222\n\tlocations\030\001 \003("
+          + "\0132\037.google.cloud.location.Location\022\027\n\017ne"
+          + "xt_page_token\030\002 \001(\t\"\"\n\022GetLocationReques"
+          + "t\022\014\n\004name\030\001 \001(\t\"\327\001\n\010Location\022\014\n\004name\030\001 \001"
+          + "(\t\022\023\n\013location_id\030\004 \001(\t\022\024\n\014display_name\030"
+          + "\005 \001(\t\022;\n\006labels\030\002 \003(\0132+.google.cloud.loc"
+          + "ation.Location.LabelsEntry\022&\n\010metadata\030\003"
+          + " \001(\0132\024.google.protobuf.Any\032-\n\013LabelsEntr"
+          + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\244\003\n\tLo"
+          + "cations\022\253\001\n\rListLocations\022+.google.cloud"
+          + ".location.ListLocationsRequest\032,.google."
+          + "cloud.location.ListLocationsResponse\"?\202\323"
+          + "\344\223\0029\022\024/v1/{name=locations}Z!\022\037/v1/{name="
+          + "projects/*}/locations\022\236\001\n\013GetLocation\022)."
+          + "google.cloud.location.GetLocationRequest"
+          + "\032\037.google.cloud.location.Location\"C\202\323\344\223\002"
+          + "=\022\026/v1/{name=locations/*}Z#\022!/v1/{name=p"
+          + "rojects/*/locations/*}\032H\312A\024cloud.googlea"
+          + "pis.com\322A.https://www.googleapis.com/aut"
+          + "h/cloud-platformBo\n\031com.google.cloud.loc"
+          + "ationB\016LocationsProtoP\001Z=google.golang.o"
+          + "rg/genproto/googleapis/cloud/location;lo"
+          + "cation\370\001\001b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+              com.google.protobuf.AnyProto.getDescriptor(),
+              com.google.api.ClientProto.getDescriptor(),
+            });
+    internal_static_google_cloud_location_ListLocationsRequest_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_location_ListLocationsRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "Filter", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_location_ListLocationsResponse_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_location_ListLocationsResponse_descriptor,
+            new java.lang.String[] {
+              "Locations", "NextPageToken",
+            });
+    internal_static_google_cloud_location_GetLocationRequest_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_location_GetLocationRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_location_Location_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_location_Location_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_location_Location_descriptor,
+            new java.lang.String[] {
+              "Name", "LocationId", "DisplayName", "Labels", "Metadata",
+            });
+    internal_static_google_cloud_location_Location_LabelsEntry_descriptor =
+        internal_static_google_cloud_location_Location_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_location_Location_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.protobuf.AnyProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java
similarity index 77%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java
index 6071759fa..aa931ee37 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfig.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchDocumentInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,60 +68,67 @@ private BatchDocumentInputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3beta1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.translate.v3beta1.GcsSource) source_).toBuilder(); + case 10: + { + com.google.cloud.translate.v3beta1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.translate.v3beta1.GcsSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.translate.v3beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 1; + break; } - source_ = - input.readMessage(com.google.cloud.translate.v3beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) source_); - source_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - sourceCase_ = 1; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -121,24 +144,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,
@@ -160,6 +187,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -167,6 +195,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
    * Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -188,16 +218,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,
@@ -223,12 +256,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;
@@ -240,8 +274,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_);
     }
@@ -255,8 +288,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -266,18 +300,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:
@@ -307,117 +341,127 @@ 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() @@ -425,16 +469,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +487,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 @@ -465,7 +508,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); + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig result = + new com.google.cloud.translate.v3beta1.BatchDocumentInputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -482,38 +526,39 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -521,15 +566,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.unknownFields); onChanged(); @@ -550,7 +598,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.BatchDocumentInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -559,12 +608,12 @@ public Builder mergeFrom( } 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() { @@ -574,10 +623,14 @@ public Builder clearSource() { return this; } - 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,
@@ -599,6 +652,7 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -606,6 +660,8 @@ public boolean hasGcsSource() { return sourceCase_ == 1; } /** + * + * *
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -627,6 +683,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -644,6 +701,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,
@@ -680,6 +739,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,
@@ -714,6 +775,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -738,10 +801,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;
         }
@@ -756,6 +822,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,
@@ -795,6 +863,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -821,6 +891,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,
@@ -855,6 +927,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,
@@ -878,26 +952,32 @@ 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());
         source_ = null;
       }
       sourceCase_ = 1;
-      onChanged();;
+      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);
     }
 
@@ -907,12 +987,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();
   }
@@ -921,16 +1001,16 @@ 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 {
-      return new BatchDocumentInputConfig(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new BatchDocumentInputConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -945,6 +1025,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
similarity index 83%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
index 388b91334..6ec7519a0 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentInputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,
@@ -29,10 +47,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,
@@ -54,10 +75,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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
similarity index 84%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
index a430e4a5e..207fc95e6 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfig.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchDocumentOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,60 +68,70 @@ private BatchDocumentOutputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3beta1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = ((com.google.cloud.translate.v3beta1.GcsDestination) destination_).toBuilder(); + case 10: + { + com.google.cloud.translate.v3beta1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = + ((com.google.cloud.translate.v3beta1.GcsDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.translate.v3beta1.GcsDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.translate.v3beta1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 1; + break; } - destination_ = - input.readMessage(com.google.cloud.translate.v3beta1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - destinationCase_ = 1; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -121,24 +147,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
@@ -181,6 +211,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -188,6 +219,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
@@ -230,16 +263,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
@@ -286,12 +322,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;
@@ -303,8 +340,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_);
     }
@@ -318,8 +354,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -329,18 +366,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:
@@ -370,117 +407,127 @@ 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() @@ -488,16 +535,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -507,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_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(); } @@ -528,7 +575,8 @@ 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); + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig result = + new com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -545,38 +593,39 @@ public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -584,15 +633,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.unknownFields); onChanged(); @@ -613,7 +666,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,12 +676,12 @@ public Builder mergeFrom( } 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() { @@ -637,10 +691,14 @@ public Builder clearDestination() { return this; } - 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
@@ -683,6 +741,7 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -690,6 +749,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
@@ -732,6 +793,7 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -749,6 +811,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
@@ -806,6 +870,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
@@ -861,6 +927,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
@@ -906,10 +974,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;
         }
@@ -924,6 +996,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
@@ -984,6 +1058,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
@@ -1031,6 +1107,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
@@ -1086,6 +1164,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
@@ -1130,26 +1210,32 @@ 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());
         destination_ = null;
       }
       destinationCase_ = 1;
-      onChanged();;
+      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);
     }
 
@@ -1159,12 +1245,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();
   }
@@ -1173,16 +1260,16 @@ 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 {
-      return new BatchDocumentOutputConfig(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new BatchDocumentOutputConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1197,6 +1284,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
similarity index 91%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
index 24d273b06..96d88eb9f 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchDocumentOutputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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
@@ -50,10 +68,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
@@ -96,10 +117,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
@@ -145,5 +169,6 @@ public interface BatchDocumentOutputConfigOrBuilder extends
    */
   com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder();
 
-  public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.DestinationCase getDestinationCase();
+  public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.DestinationCase
+      getDestinationCase();
 }
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
similarity index 72%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
index 52782fa38..b44aa6712 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadata.java
@@ -1,40 +1,58 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchTranslateDocumentMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,107 +71,115 @@ private BatchTranslateDocumentMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 16: { - - totalPages_ = input.readInt64(); - break; - } - case 24: { - - translatedPages_ = input.readInt64(); - break; - } - case 32: { - - failedPages_ = input.readInt64(); - break; - } - case 40: { - - totalBillablePages_ = input.readInt64(); - break; - } - case 48: { - - totalCharacters_ = input.readInt64(); - break; - } - case 56: { + case 8: + { + int rawValue = input.readEnum(); - translatedCharacters_ = input.readInt64(); - break; - } - case 64: { - - failedCharacters_ = input.readInt64(); - break; - } - case 72: { - - totalBillableCharacters_ = input.readInt64(); - break; - } - case 82: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (submitTime_ != null) { - subBuilder = submitTime_.toBuilder(); + state_ = rawValue; + break; } - submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submitTime_); - submitTime_ = subBuilder.buildPartial(); + case 16: + { + totalPages_ = input.readInt64(); + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 24: + { + translatedPages_ = input.readInt64(); + break; + } + case 32: + { + failedPages_ = input.readInt64(); + break; + } + case 40: + { + totalBillablePages_ = input.readInt64(); + break; + } + case 48: + { + totalCharacters_ = input.readInt64(); + break; + } + case 56: + { + translatedCharacters_ = input.readInt64(); + break; + } + case 64: + { + failedCharacters_ = input.readInt64(); + break; + } + case 72: + { + totalBillableCharacters_ = input.readInt64(); + break; + } + case 82: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (submitTime_ != null) { + subBuilder = submitTime_.toBuilder(); + } + submitTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(submitTime_); + submitTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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.
      * 
@@ -162,6 +188,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -170,6 +198,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -178,6 +208,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * The batch is done and no item was successfully processed.
      * 
@@ -186,6 +218,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -195,6 +229,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -208,6 +244,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Invalid.
      * 
@@ -216,6 +254,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -224,6 +264,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The batch is processed, and at least one item was successfully processed.
      * 
@@ -232,6 +274,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * The batch is done and no item was successfully processed.
      * 
@@ -240,6 +284,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.
@@ -249,6 +295,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
@@ -259,7 +307,6 @@ public enum State
      */
     public static final int CANCELLED_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -284,52 +331,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;
@@ -349,39 +401,53 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
+   *
+   *
    * 
    * 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() { + @java.lang.Override + public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.valueOf(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.valueOf(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_; /** + * + * *
    * 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 @@ -392,12 +458,15 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 3; 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 @@ -408,12 +477,15 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 4; 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 @@ -424,12 +496,15 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 5; 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 @@ -440,11 +515,14 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 6; private long totalCharacters_; /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents so far.
    * 
* * int64 total_characters = 6; + * * @return The totalCharacters. */ @java.lang.Override @@ -455,12 +533,15 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 7; 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 @@ -471,12 +552,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 8; 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 @@ -487,12 +571,15 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 9; 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 @@ -503,11 +590,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 @@ -515,11 +605,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 @@ -527,6 +620,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -539,6 +634,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -550,9 +646,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) { @@ -591,45 +688,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -639,34 +728,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -682,29 +763,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(); @@ -715,134 +788,145 @@ 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() + // Construct using + // com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -874,13 +958,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(); } @@ -895,7 +980,8 @@ 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); + com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata result = + new com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata(this); result.state_ = state_; result.totalPages_ = totalPages_; result.translatedPages_ = translatedPages_; @@ -918,46 +1004,50 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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,7 +1097,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1019,86 +1111,114 @@ public Builder mergeFrom( 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateDocumentMetadata.State.valueOf(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.valueOf(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(); } - + state_ = value.getNumber(); onChanged(); 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() { - + state_ = 0; onChanged(); 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 @@ -1106,45 +1226,54 @@ 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. */ public Builder setTotalPages(long value) { - + totalPages_ = value; onChanged(); 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() { - + totalPages_ = 0L; onChanged(); 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 @@ -1152,45 +1281,54 @@ 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. */ public Builder setTranslatedPages(long value) { - + translatedPages_ = value; onChanged(); 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() { - + translatedPages_ = 0L; onChanged(); 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 @@ -1198,45 +1336,54 @@ 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. */ public Builder setFailedPages(long value) { - + failedPages_ = value; onChanged(); 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() { - + failedPages_ = 0L; onChanged(); 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 @@ -1244,44 +1391,53 @@ 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. */ public Builder setTotalBillablePages(long value) { - + totalBillablePages_ = value; onChanged(); 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() { - + totalBillablePages_ = 0L; onChanged(); 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 @@ -1289,43 +1445,52 @@ 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. */ public Builder setTotalCharacters(long value) { - + totalCharacters_ = value; onChanged(); 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() { - + totalCharacters_ = 0L; onChanged(); 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 @@ -1333,45 +1498,54 @@ 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. */ public Builder setTranslatedCharacters(long value) { - + translatedCharacters_ = value; onChanged(); 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() { - + translatedCharacters_ = 0L; onChanged(); 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 @@ -1379,45 +1553,54 @@ 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. */ public Builder setFailedCharacters(long value) { - + failedCharacters_ = value; onChanged(); 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() { - + failedCharacters_ = 0L; onChanged(); 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 @@ -1425,32 +1608,38 @@ 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. */ public Builder setTotalBillableCharacters(long value) { - + totalBillableCharacters_ = value; onChanged(); 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() { - + totalBillableCharacters_ = 0L; onChanged(); return this; @@ -1458,34 +1647,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 submitTimeBuilder_ != null || submitTime_ != null; } /** + * + * *
      * 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.
      * 
@@ -1506,14 +1708,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(); onChanged(); @@ -1524,6 +1727,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1534,7 +1739,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1546,6 +1751,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1564,6 +1771,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1571,11 +1780,13 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 10; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1586,11 +1797,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.
      * 
@@ -1598,21 +1812,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); } @@ -1622,30 +1839,32 @@ 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 { - return new BatchTranslateDocumentMetadata(input, extensionRegistry); - } - }; + 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 { + return new BatchTranslateDocumentMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1657,9 +1876,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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java similarity index 81% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java index d6562ae29..e59f2142c 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentMetadataOrBuilder.java @@ -1,137 +1,191 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java similarity index 64% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java index 667338eff..48ec3aab5 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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_ = ""; @@ -28,16 +46,15 @@ private BatchTranslateDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateDocumentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchTranslateDocumentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,102 +74,123 @@ private BatchTranslateDocumentRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + sourceLanguageCode_ = s; + break; } - targetLanguageCodes_.add(s); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - inputConfigs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + targetLanguageCodes_.add(s); + break; } - inputConfigs_.add( - input.readMessage(com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.parser(), extensionRegistry)); - break; - } - case 42: { - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); + case 34: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + inputConfigs_ = + new java.util.ArrayList< + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig>(); + mutable_bitField0_ |= 0x00000002; + } + inputConfigs_.add( + input.readMessage( + com.google.cloud.translate.v3beta1.BatchDocumentInputConfig.parser(), + extensionRegistry)); + break; } - outputConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + case 42: + { + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.Builder subBuilder = + null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - models_ = com.google.protobuf.MapField.newMapField( - ModelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; + case 50: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + models_ = + com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry models__ = + input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + models_.getMutableMap().put(models__.getKey(), models__.getValue()); + break; } - com.google.protobuf.MapEntry - models__ = input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - models_.getMutableMap().put( - models__.getKey(), models__.getValue()); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - glossaries_ = com.google.protobuf.MapField.newMapField( - GlossariesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; + case 58: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + glossaries_ = + com.google.protobuf.MapField.newMapField( + GlossariesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + glossaries__ = + input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + glossaries_.getMutableMap().put(glossaries__.getKey(), glossaries__.getValue()); + break; } - com.google.protobuf.MapEntry - glossaries__ = input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - glossaries_.getMutableMap().put( - glossaries__.getKey(), glossaries__.getValue()); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - formatConversions_ = com.google.protobuf.MapField.newMapField( - FormatConversionsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; + case 66: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + formatConversions_ = + com.google.protobuf.MapField.newMapField( + FormatConversionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry formatConversions__ = + input.readMessage( + FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + formatConversions_ + .getMutableMap() + .put(formatConversions__.getKey(), formatConversions__.getValue()); + break; } - com.google.protobuf.MapEntry - formatConversions__ = input.readMessage( - FormatConversionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - formatConversions_.getMutableMap().put( - formatConversions__.getKey(), formatConversions__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { targetLanguageCodes_ = targetLanguageCodes_.getUnmodifiableView(); @@ -164,15 +202,15 @@ private BatchTranslateDocumentRequest( makeExtensionsImmutable(); } } - 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(); @@ -181,21 +219,25 @@ 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -205,7 +247,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 @@ -214,14 +259,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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -231,17 +277,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 { @@ -252,6 +299,8 @@ public java.lang.String getParent() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; 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
@@ -259,6 +308,7 @@ public java.lang.String getParent() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -267,14 +317,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
@@ -282,16 +333,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 { @@ -302,37 +352,48 @@ public java.lang.String getSourceLanguageCode() { public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList 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 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. */ @@ -340,23 +401,28 @@ 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; private java.util.List inputConfigs_; /** + * + * *
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -364,13 +430,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.
@@ -378,14 +449,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.
@@ -393,13 +469,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.
@@ -407,13 +487,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.
@@ -421,24 +505,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 @@ -446,52 +537,63 @@ 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() { + public com.google.cloud.translate.v3beta1.BatchDocumentOutputConfigOrBuilder + getOutputConfigOrBuilder() { return getOutputConfig(); } 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, + ""); } - 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_; } @@ -500,6 +602,8 @@ 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,
@@ -515,22 +619,22 @@ 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 java.lang.NullPointerException(); }
+  public boolean containsModels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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,
@@ -547,11 +651,12 @@ public java.util.Map getModels() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   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,
@@ -568,16 +673,16 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getModelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetModels().getMap();
+  public java.lang.String getModelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    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,
@@ -594,12 +699,11 @@ public 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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -607,24 +711,32 @@ 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());
   }
+
   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_;
   }
@@ -633,70 +745,89 @@ 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 java.lang.NullPointerException(); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -704,21 +835,22 @@ 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, + ""); } - 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); @@ -730,6 +862,8 @@ 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
@@ -741,24 +875,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 java.lang.NullPointerException(); } + public boolean containsFormatConversions(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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
@@ -770,14 +906,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
@@ -789,19 +928,22 @@ 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 getFormatConversionsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetFormatConversions().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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
@@ -813,15 +955,16 @@ public 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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetFormatConversions().getMap(); + public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -829,6 +972,7 @@ public java.lang.String getFormatConversionsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -840,8 +984,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_); } @@ -857,20 +1000,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, @@ -899,42 +1033,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -944,32 +1079,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1015,114 +1143,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(); @@ -1131,13 +1266,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(); @@ -1146,16 +1280,18 @@ 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() @@ -1163,17 +1299,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getInputConfigsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1202,13 +1338,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(); } @@ -1223,7 +1360,8 @@ 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); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.sourceLanguageCode_ = sourceLanguageCode_; @@ -1260,46 +1398,50 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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_; onChanged(); @@ -1336,9 +1478,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocume inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000002); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputConfigsFieldBuilder() : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputConfigsFieldBuilder() + : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1347,12 +1490,9 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateDocume if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableModels().mergeFrom( - other.internalGetModels()); - internalGetMutableGlossaries().mergeFrom( - other.internalGetGlossaries()); - internalGetMutableFormatConversions().mergeFrom( - other.internalGetFormatConversions()); + internalGetMutableModels().mergeFrom(other.internalGetModels()); + internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); + internalGetMutableFormatConversions().mergeFrom(other.internalGetFormatConversions()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1372,7 +1512,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.BatchTranslateDocumentRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1381,10 +1523,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1394,14 +1539,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; @@ -1410,6 +1557,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1419,16 +1568,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 { @@ -1436,6 +1586,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1445,21 +1597,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1469,16 +1625,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1488,17 +1649,19 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1506,6 +1669,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
@@ -1513,13 +1678,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; @@ -1528,6 +1693,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
@@ -1535,15 +1702,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 { @@ -1551,6 +1717,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
@@ -1558,20 +1726,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) { + public Builder setSourceLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; 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
@@ -1579,15 +1749,18 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); 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
@@ -1595,60 +1768,73 @@ 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) { + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTargetLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * 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_.getUnmodifiableView(); } /** + * + * *
      * 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. */ @@ -1656,85 +1842,100 @@ 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) { + public Builder setTargetLanguageCodes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); 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 targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes( - java.lang.String value) { + public Builder addTargetLanguageCodes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); 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 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_); 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() { @@ -1744,40 +1945,51 @@ public Builder clearTargetLanguageCodes() { 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) { + public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); onChanged(); 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_ & 0x00000002) != 0)) { - inputConfigs_ = new java.util.ArrayList(inputConfigs_); + inputConfigs_ = + new java.util.ArrayList( + inputConfigs_); bitField0_ |= 0x00000002; - } + } } 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.
@@ -1785,9 +1997,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 { @@ -1795,6 +2010,8 @@ public java.util.List * Required. Input configurations. * The total number of files matched should be <= 100. @@ -1802,7 +2019,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) { @@ -1812,6 +2031,8 @@ public int getInputConfigsCount() { } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1819,7 +2040,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) { @@ -1829,6 +2052,8 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfig getInputConfi } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1836,7 +2061,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) { @@ -1853,6 +2080,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1860,10 +2089,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()); @@ -1874,6 +2106,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1881,9 +2115,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(); @@ -1897,6 +2134,8 @@ public Builder addInputConfigs(com.google.cloud.translate.v3beta1.BatchDocumentI return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1904,7 +2143,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) { @@ -1921,6 +2162,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1928,7 +2171,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) { @@ -1942,6 +2187,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1949,10 +2196,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()); @@ -1963,6 +2213,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1970,14 +2222,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); @@ -1985,6 +2239,8 @@ public Builder addAllInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1992,7 +2248,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) { @@ -2005,6 +2263,8 @@ public Builder clearInputConfigs() { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2012,7 +2272,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) { @@ -2025,6 +2287,8 @@ public Builder removeInputConfigs(int index) { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2032,13 +2296,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.
@@ -2046,16 +2314,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.
@@ -2063,10 +2336,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 { @@ -2074,6 +2350,8 @@ public com.google.cloud.translate.v3beta1.BatchDocumentInputConfigOrBuilder getI } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2081,13 +2359,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.
@@ -2095,14 +2379,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.
@@ -2110,22 +2400,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_ & 0x00000002) != 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_ & 0x00000002) != 0), getParentForChildren(), isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2133,47 +2428,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 outputConfigBuilder_ != null || 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. */ 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(); @@ -2187,13 +2502,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) { @@ -2207,19 +2526,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 (outputConfig_ != null) { outputConfig_ = - com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3beta1.BatchDocumentOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -2231,13 +2557,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() { if (outputConfigBuilder_ == null) { @@ -2251,75 +2581,92 @@ 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() { + 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() { - onChanged();; + internalGetMutableModels() { + onChanged(); + ; 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,6 +2678,8 @@ 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,
@@ -2346,22 +2695,22 @@ 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 java.lang.NullPointerException(); }
+    public boolean containsModels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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,
@@ -2378,11 +2727,12 @@ public java.util.Map getModels() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     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,
@@ -2399,16 +2749,17 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getModelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetModels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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,
@@ -2425,12 +2776,11 @@ public 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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2438,11 +2788,12 @@ public java.lang.String getModelsOrThrow(
     }
 
     public Builder clearModels() {
-      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,
@@ -2458,23 +2809,21 @@ 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 java.lang.NullPointerException(); }
-      internalGetMutableModels().getMutableMap()
-          .remove(key);
+    public Builder removeModels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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() {
       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,
@@ -2490,16 +2839,19 @@ 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 java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableModels().getMutableMap()
-          .put(key, value);
+    public Builder putModels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableModels().getMutableMap().put(key, value);
       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,
@@ -2515,30 +2867,33 @@ 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);
       return this;
     }
 
     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 glossaries_;
     }
-    private com.google.protobuf.MapField
-    internalGetMutableGlossaries() {
-      onChanged();;
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig>
+        internalGetMutableGlossaries() {
+      onChanged();
+      ;
       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();
@@ -2550,70 +2905,91 @@ 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 java.lang.NullPointerException(); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2621,80 +2997,95 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar } public Builder clearGlossaries() { - 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 java.lang.NullPointerException(); } - internalGetMutableGlossaries().getMutableMap() - .remove(key); + public Builder removeGlossaries(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableGlossaries().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableGlossaries() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getMutableGlossaries() { 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableGlossaries().getMutableMap() - .put(key, value); + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableGlossaries().getMutableMap().put(key, value); 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); 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() { + internalGetFormatConversions() { if (formatConversions_ == null) { return com.google.protobuf.MapField.emptyMapField( FormatConversionsDefaultEntryHolder.defaultEntry); } return formatConversions_; } + private com.google.protobuf.MapField - internalGetMutableFormatConversions() { - onChanged();; + internalGetMutableFormatConversions() { + onChanged(); + ; 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(); @@ -2706,6 +3097,8 @@ 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
@@ -2717,24 +3110,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 java.lang.NullPointerException(); } + public boolean containsFormatConversions(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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
@@ -2746,14 +3141,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
@@ -2765,19 +3163,23 @@ 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 getFormatConversionsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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
@@ -2789,13 +3191,15 @@ public 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 java.lang.NullPointerException(); } + public java.lang.String getFormatConversionsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetFormatConversions().getMap(); if (!map.containsKey(key)) { @@ -2805,11 +3209,12 @@ public java.lang.String getFormatConversionsOrThrow( } public Builder clearFormatConversions() { - 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
@@ -2821,25 +3226,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 java.lang.NullPointerException(); } - internalGetMutableFormatConversions().getMutableMap() - .remove(key); + public Builder removeFormatConversions(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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() { 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
@@ -2851,18 +3256,23 @@ 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableFormatConversions().getMutableMap() - .put(key, value); + public Builder putFormatConversions(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableFormatConversions().getMutableMap().put(key, value); 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
@@ -2874,18 +3284,18 @@ 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); 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); } @@ -2895,30 +3305,32 @@ 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 { - return new BatchTranslateDocumentRequest(input, extensionRegistry); - } - }; + 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 { + return new BatchTranslateDocumentRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2930,9 +3342,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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java index f9ecaa0fa..3859890bf 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -17,11 +35,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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -31,13 +54,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
@@ -45,10 +72,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
@@ -56,57 +86,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.
@@ -114,11 +160,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.
@@ -126,10 +175,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.
@@ -137,10 +190,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.
@@ -148,11 +205,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.
@@ -160,45 +221,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,
@@ -216,6 +295,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,
@@ -231,15 +312,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,
@@ -255,9 +334,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,
@@ -273,11 +353,10 @@ boolean containsModels(
    *
    * map<string, string> models = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getModelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getModelsOrDefault(java.lang.String key, 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,
@@ -293,65 +372,80 @@ 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]; + * */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, 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
@@ -363,10 +457,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
@@ -378,17 +476,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
@@ -400,11 +498,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
@@ -416,13 +517,15 @@ 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.lang.String getFormatConversionsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String key, 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
@@ -434,9 +537,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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java similarity index 73% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java index 89e068ec4..24be43de5 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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,30 +30,30 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BatchTranslateDocumentResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,113 +72,122 @@ private BatchTranslateDocumentResponse(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            totalPages_ = input.readInt64();
-            break;
-          }
-          case 16: {
-
-            translatedPages_ = input.readInt64();
-            break;
-          }
-          case 24: {
-
-            failedPages_ = input.readInt64();
-            break;
-          }
-          case 32: {
-
-            totalBillablePages_ = input.readInt64();
-            break;
-          }
-          case 40: {
-
-            totalCharacters_ = input.readInt64();
-            break;
-          }
-          case 48: {
-
-            translatedCharacters_ = input.readInt64();
-            break;
-          }
-          case 56: {
-
-            failedCharacters_ = input.readInt64();
-            break;
-          }
-          case 64: {
-
-            totalBillableCharacters_ = input.readInt64();
-            break;
-          }
-          case 74: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (submitTime_ != null) {
-              subBuilder = submitTime_.toBuilder();
+          case 8:
+            {
+              totalPages_ = input.readInt64();
+              break;
             }
-            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(submitTime_);
-              submitTime_ = subBuilder.buildPartial();
+          case 16:
+            {
+              translatedPages_ = input.readInt64();
+              break;
             }
-
-            break;
-          }
-          case 82: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (endTime_ != null) {
-              subBuilder = endTime_.toBuilder();
+          case 24:
+            {
+              failedPages_ = input.readInt64();
+              break;
             }
-            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(endTime_);
-              endTime_ = subBuilder.buildPartial();
+          case 32:
+            {
+              totalBillablePages_ = input.readInt64();
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 40:
+            {
+              totalCharacters_ = input.readInt64();
+              break;
+            }
+          case 48:
+            {
+              translatedCharacters_ = input.readInt64();
+              break;
+            }
+          case 56:
+            {
+              failedCharacters_ = input.readInt64();
+              break;
+            }
+          case 64:
+            {
+              totalBillableCharacters_ = input.readInt64();
+              break;
+            }
+          case 74:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (submitTime_ != null) {
+                subBuilder = submitTime_.toBuilder();
+              }
+              submitTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(submitTime_);
+                submitTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 82:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (endTime_ != null) {
+                subBuilder = endTime_.toBuilder();
+              }
+              endTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(endTime_);
+                endTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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_;
   /**
+   *
+   *
    * 
    * 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 @@ -172,12 +198,15 @@ public long getTotalPages() { public static final int TRANSLATED_PAGES_FIELD_NUMBER = 2; 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 @@ -188,12 +217,15 @@ public long getTranslatedPages() { public static final int FAILED_PAGES_FIELD_NUMBER = 3; 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 @@ -204,12 +236,15 @@ public long getFailedPages() { public static final int TOTAL_BILLABLE_PAGES_FIELD_NUMBER = 4; 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 @@ -220,11 +255,14 @@ public long getTotalBillablePages() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 5; private long totalCharacters_; /** + * + * *
    * Total number of characters (Unicode codepoints) in all documents.
    * 
* * int64 total_characters = 5; + * * @return The totalCharacters. */ @java.lang.Override @@ -235,12 +273,15 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 6; private long translatedCharacters_; /** + * + * *
    * Number of successfully translated characters (Unicode codepoints) in all
    * documents.
    * 
* * int64 translated_characters = 6; + * * @return The translatedCharacters. */ @java.lang.Override @@ -251,12 +292,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 7; 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 @@ -267,12 +311,15 @@ public long getFailedCharacters() { public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER = 8; 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 @@ -283,11 +330,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 @@ -295,11 +345,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 @@ -307,6 +360,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -321,6 +376,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
@@ -328,6 +385,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -335,6 +393,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -342,6 +402,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return The endTime. */ @java.lang.Override @@ -349,6 +410,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
@@ -363,6 +426,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -374,8 +438,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_);
     }
@@ -416,44 +479,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -463,38 +516,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -508,29 +552,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();
@@ -545,96 +581,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]
@@ -644,38 +689,40 @@ 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()
+    // Construct using
+    // com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -711,13 +758,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();
     }
 
@@ -732,7 +780,8 @@ 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);
+      com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse result =
+          new com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse(this);
       result.totalPages_ = totalPages_;
       result.translatedPages_ = translatedPages_;
       result.failedPages_ = failedPages_;
@@ -759,46 +808,50 @@ public com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse buildPa
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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());
       }
@@ -848,7 +901,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.translate.v3beta1.BatchTranslateDocumentResponse)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -858,14 +913,17 @@ public Builder mergeFrom(
       return this;
     }
 
-    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 @@ -873,45 +931,54 @@ 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. */ public Builder setTotalPages(long value) { - + totalPages_ = value; onChanged(); 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() { - + totalPages_ = 0L; onChanged(); 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 @@ -919,45 +986,54 @@ 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. */ public Builder setTranslatedPages(long value) { - + translatedPages_ = value; onChanged(); 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() { - + translatedPages_ = 0L; onChanged(); 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 @@ -965,45 +1041,54 @@ 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. */ public Builder setFailedPages(long value) { - + failedPages_ = value; onChanged(); 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() { - + failedPages_ = 0L; onChanged(); 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 @@ -1011,44 +1096,53 @@ 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. */ public Builder setTotalBillablePages(long value) { - + totalBillablePages_ = value; onChanged(); 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() { - + totalBillablePages_ = 0L; onChanged(); 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 @@ -1056,43 +1150,52 @@ 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. */ public Builder setTotalCharacters(long value) { - + totalCharacters_ = value; onChanged(); return this; } /** + * + * *
      * Total number of characters (Unicode codepoints) in all documents.
      * 
* * int64 total_characters = 5; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { - + totalCharacters_ = 0L; onChanged(); 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 @@ -1100,45 +1203,54 @@ 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. */ public Builder setTranslatedCharacters(long value) { - + translatedCharacters_ = value; onChanged(); return this; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints) in all
      * documents.
      * 
* * int64 translated_characters = 6; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { - + translatedCharacters_ = 0L; onChanged(); 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 @@ -1146,45 +1258,54 @@ 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. */ public Builder setFailedCharacters(long value) { - + failedCharacters_ = value; onChanged(); 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() { - + failedCharacters_ = 0L; onChanged(); 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 @@ -1192,32 +1313,38 @@ 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. */ public Builder setTotalBillableCharacters(long value) { - + totalBillableCharacters_ = value; onChanged(); 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() { - + totalBillableCharacters_ = 0L; onChanged(); return this; @@ -1225,34 +1352,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 submitTimeBuilder_ != null || submitTime_ != null; } /** + * + * *
      * 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.
      * 
@@ -1273,14 +1413,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(); onChanged(); @@ -1291,6 +1432,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1301,7 +1444,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1313,6 +1456,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1331,6 +1476,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1338,11 +1485,13 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 9; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1353,11 +1502,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.
      * 
@@ -1365,14 +1517,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_; @@ -1380,8 +1535,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
@@ -1389,12 +1549,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1402,6 +1565,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 10; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1412,6 +1576,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1434,6 +1600,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
@@ -1442,8 +1610,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();
         onChanged();
@@ -1454,6 +1621,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1466,7 +1635,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1478,6 +1647,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
@@ -1498,6 +1669,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1507,11 +1680,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 10;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1524,11 +1699,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
@@ -1538,21 +1714,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);
     }
 
@@ -1562,30 +1741,32 @@ 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 {
-      return new BatchTranslateDocumentResponse(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new BatchTranslateDocumentResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1597,9 +1778,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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
similarity index 82%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
index 48ae35448..413d4af7b 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateDocumentResponseOrBuilder.java
@@ -1,118 +1,166 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
similarity index 72%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
index fb42d2bfe..fa2f56406 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadata.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchTranslateMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,82 +70,90 @@ private BatchTranslateMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 16: { - - translatedCharacters_ = input.readInt64(); - break; - } - case 24: { + case 8: + { + int rawValue = input.readEnum(); - failedCharacters_ = input.readInt64(); - break; - } - case 32: { - - totalCharacters_ = input.readInt64(); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (submitTime_ != null) { - subBuilder = submitTime_.toBuilder(); + state_ = rawValue; + break; } - submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submitTime_); - submitTime_ = subBuilder.buildPartial(); + case 16: + { + translatedCharacters_ = input.readInt64(); + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 24: + { + failedCharacters_ = input.readInt64(); + break; + } + case 32: + { + totalCharacters_ = input.readInt64(); + break; + } + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (submitTime_ != null) { + subBuilder = submitTime_.toBuilder(); + } + submitTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(submitTime_); + submitTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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.
      * 
@@ -137,6 +162,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -145,6 +172,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -154,6 +183,8 @@ public enum State
      */
     SUCCEEDED(2),
     /**
+     *
+     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -162,6 +193,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -171,6 +204,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The batch is done after the user has called the
      * longrunning.Operations.CancelOperation. Any records processed before the
@@ -184,6 +219,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Invalid.
      * 
@@ -192,6 +229,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -200,6 +239,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The batch is processed, and at least one item was successfully
      * processed.
@@ -209,6 +250,8 @@ public enum State
      */
     public static final int SUCCEEDED_VALUE = 2;
     /**
+     *
+     *
      * 
      * The batch is done and no item was successfully processed.
      * 
@@ -217,6 +260,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.
@@ -226,6 +271,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
@@ -236,7 +283,6 @@ public enum State
      */
     public static final int CANCELLED_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -261,52 +307,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;
@@ -326,38 +377,52 @@ private State(int value) {
   public static final int STATE_FIELD_NUMBER = 1;
   private int state_;
   /**
+   *
+   *
    * 
    * 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() { + @java.lang.Override + public com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.valueOf(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.valueOf(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_; /** + * + * *
    * Number of successfully translated characters so far (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -368,12 +433,15 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; 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 @@ -384,6 +452,8 @@ public long getFailedCharacters() { public static final int TOTAL_CHARACTERS_FIELD_NUMBER = 4; private long totalCharacters_; /** + * + * *
    * Total number of characters (Unicode codepoints).
    * This is the total number of codepoints from input files times the number of
@@ -391,6 +461,7 @@ public long getFailedCharacters() {
    * 
* * int64 total_characters = 4; + * * @return The totalCharacters. */ @java.lang.Override @@ -401,11 +472,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 @@ -413,11 +487,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 @@ -425,6 +502,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -437,6 +516,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -448,9 +528,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) { @@ -474,25 +555,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -502,24 +580,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -535,14 +610,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(); @@ -553,117 +625,127 @@ 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() @@ -671,16 +753,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -702,9 +783,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 @@ -723,7 +804,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); + com.google.cloud.translate.v3beta1.BatchTranslateMetadata result = + new com.google.cloud.translate.v3beta1.BatchTranslateMetadata(this); result.state_ = state_; result.translatedCharacters_ = translatedCharacters_; result.failedCharacters_ = failedCharacters_; @@ -741,38 +823,39 @@ public com.google.cloud.translate.v3beta1.BatchTranslateMetadata buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -780,7 +863,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()); } @@ -815,7 +899,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.BatchTranslateMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.BatchTranslateMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -827,51 +912,67 @@ public Builder mergeFrom( 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State result = com.google.cloud.translate.v3beta1.BatchTranslateMetadata.State.valueOf(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.valueOf(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. */ @@ -879,33 +980,39 @@ public Builder setState(com.google.cloud.translate.v3beta1.BatchTranslateMetadat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the operation.
      * 
* * .google.cloud.translation.v3beta1.BatchTranslateMetadata.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); 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 @@ -913,43 +1020,52 @@ 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. */ public Builder setTranslatedCharacters(long value) { - + translatedCharacters_ = value; onChanged(); return this; } /** + * + * *
      * Number of successfully translated characters so far (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { - + translatedCharacters_ = 0L; onChanged(); 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 @@ -957,39 +1073,47 @@ 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. */ public Builder setFailedCharacters(long value) { - + failedCharacters_ = value; onChanged(); 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() { - + failedCharacters_ = 0L; onChanged(); 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
@@ -997,6 +1121,7 @@ public Builder clearFailedCharacters() {
      * 
* * int64 total_characters = 4; + * * @return The totalCharacters. */ @java.lang.Override @@ -1004,6 +1129,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
@@ -1011,16 +1138,19 @@ public long getTotalCharacters() {
      * 
* * int64 total_characters = 4; + * * @param value The totalCharacters to set. * @return This builder for chaining. */ public Builder setTotalCharacters(long value) { - + totalCharacters_ = value; onChanged(); return this; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * This is the total number of codepoints from input files times the number of
@@ -1028,10 +1158,11 @@ public Builder setTotalCharacters(long value) {
      * 
* * int64 total_characters = 4; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { - + totalCharacters_ = 0L; onChanged(); return this; @@ -1039,34 +1170,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 submitTimeBuilder_ != null || submitTime_ != null; } /** + * + * *
      * 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.
      * 
@@ -1087,14 +1231,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(); onChanged(); @@ -1105,6 +1250,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1115,7 +1262,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1127,6 +1274,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1145,6 +1294,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1152,11 +1303,13 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 5; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -1167,11 +1320,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.
      * 
@@ -1179,21 +1335,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); } @@ -1203,12 +1362,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(); } @@ -1217,16 +1376,16 @@ 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 { - return new BatchTranslateMetadata(input, extensionRegistry); - } - }; + 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 { + return new BatchTranslateMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1241,6 +1400,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.BatchTranslateMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java index 24288b893..33c429bb4 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateMetadataOrBuilder.java @@ -1,53 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java similarity index 73% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java index 66e50fb41..7de25916b 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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,30 +30,29 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private BatchTranslateResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,87 +71,96 @@ private BatchTranslateResponse(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            totalCharacters_ = input.readInt64();
-            break;
-          }
-          case 16: {
-
-            translatedCharacters_ = input.readInt64();
-            break;
-          }
-          case 24: {
-
-            failedCharacters_ = input.readInt64();
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (submitTime_ != null) {
-              subBuilder = submitTime_.toBuilder();
+          case 8:
+            {
+              totalCharacters_ = input.readInt64();
+              break;
             }
-            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(submitTime_);
-              submitTime_ = subBuilder.buildPartial();
+          case 16:
+            {
+              translatedCharacters_ = input.readInt64();
+              break;
             }
-
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (endTime_ != null) {
-              subBuilder = endTime_.toBuilder();
+          case 24:
+            {
+              failedCharacters_ = input.readInt64();
+              break;
             }
-            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(endTime_);
-              endTime_ = subBuilder.buildPartial();
+          case 34:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (submitTime_ != null) {
+                subBuilder = submitTime_.toBuilder();
+              }
+              submitTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(submitTime_);
+                submitTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 42:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (endTime_ != null) {
+                subBuilder = endTime_.toBuilder();
+              }
+              endTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(endTime_);
+                endTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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_;
   /**
+   *
+   *
    * 
    * Total number of characters (Unicode codepoints).
    * 
* * int64 total_characters = 1; + * * @return The totalCharacters. */ @java.lang.Override @@ -146,11 +171,14 @@ public long getTotalCharacters() { public static final int TRANSLATED_CHARACTERS_FIELD_NUMBER = 2; private long translatedCharacters_; /** + * + * *
    * Number of successfully translated characters (Unicode codepoints).
    * 
* * int64 translated_characters = 2; + * * @return The translatedCharacters. */ @java.lang.Override @@ -161,11 +189,14 @@ public long getTranslatedCharacters() { public static final int FAILED_CHARACTERS_FIELD_NUMBER = 3; private long failedCharacters_; /** + * + * *
    * Number of characters that have failed to process (Unicode codepoints).
    * 
* * int64 failed_characters = 3; + * * @return The failedCharacters. */ @java.lang.Override @@ -176,11 +207,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 @@ -188,11 +222,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 @@ -200,6 +237,8 @@ public com.google.protobuf.Timestamp getSubmitTime() { return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; } /** + * + * *
    * Time when the operation was submitted.
    * 
@@ -214,6 +253,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
@@ -221,6 +262,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -228,6 +270,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time when the operation is finished and
    * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -235,6 +279,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ @java.lang.Override @@ -242,6 +287,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
@@ -256,6 +303,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -267,8 +315,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_);
     }
@@ -294,24 +341,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -321,28 +363,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -356,14 +394,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();
@@ -378,96 +413,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]
@@ -477,21 +520,23 @@ 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()
@@ -499,16 +544,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -534,9 +578,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
@@ -555,7 +599,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);
+      com.google.cloud.translate.v3beta1.BatchTranslateResponse result =
+          new com.google.cloud.translate.v3beta1.BatchTranslateResponse(this);
       result.totalCharacters_ = totalCharacters_;
       result.translatedCharacters_ = translatedCharacters_;
       result.failedCharacters_ = failedCharacters_;
@@ -577,38 +622,39 @@ public com.google.cloud.translate.v3beta1.BatchTranslateResponse buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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;
@@ -616,7 +662,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());
       }
@@ -651,7 +698,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.translate.v3beta1.BatchTranslateResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.translate.v3beta1.BatchTranslateResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -661,13 +709,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private long totalCharacters_ ;
+    private long totalCharacters_;
     /**
+     *
+     *
      * 
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; + * * @return The totalCharacters. */ @java.lang.Override @@ -675,42 +726,51 @@ 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. */ public Builder setTotalCharacters(long value) { - + totalCharacters_ = value; onChanged(); return this; } /** + * + * *
      * Total number of characters (Unicode codepoints).
      * 
* * int64 total_characters = 1; + * * @return This builder for chaining. */ public Builder clearTotalCharacters() { - + totalCharacters_ = 0L; onChanged(); 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 @@ -718,42 +778,51 @@ 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. */ public Builder setTranslatedCharacters(long value) { - + translatedCharacters_ = value; onChanged(); return this; } /** + * + * *
      * Number of successfully translated characters (Unicode codepoints).
      * 
* * int64 translated_characters = 2; + * * @return This builder for chaining. */ public Builder clearTranslatedCharacters() { - + translatedCharacters_ = 0L; onChanged(); 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 @@ -761,30 +830,36 @@ 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. */ public Builder setFailedCharacters(long value) { - + failedCharacters_ = value; onChanged(); return this; } /** + * + * *
      * Number of characters that have failed to process (Unicode codepoints).
      * 
* * int64 failed_characters = 3; + * * @return This builder for chaining. */ public Builder clearFailedCharacters() { - + failedCharacters_ = 0L; onChanged(); return this; @@ -792,34 +867,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 submitTimeBuilder_ != null || submitTime_ != null; } /** + * + * *
      * 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.
      * 
@@ -840,14 +928,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(); onChanged(); @@ -858,6 +947,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -868,7 +959,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -880,6 +971,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -898,6 +991,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -905,11 +1000,13 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 4; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the operation was submitted.
      * 
@@ -920,11 +1017,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.
      * 
@@ -932,14 +1032,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_; @@ -947,8 +1050,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
@@ -956,12 +1064,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -969,6 +1080,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -979,6 +1091,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1001,6 +1115,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
@@ -1009,8 +1125,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();
         onChanged();
@@ -1021,6 +1136,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1033,7 +1150,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1045,6 +1162,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
@@ -1065,6 +1184,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1074,11 +1195,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the operation is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1091,11 +1214,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
@@ -1105,21 +1229,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);
     }
 
@@ -1129,12 +1256,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();
   }
@@ -1143,16 +1270,16 @@ 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 {
-      return new BatchTranslateResponse(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new BatchTranslateResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1167,6 +1294,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.BatchTranslateResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
similarity index 76%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
index 3c63f0543..0f69ba038 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateResponseOrBuilder.java
@@ -1,61 +1,94 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
similarity index 65%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
index e3be0614c..be7fcabdb 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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_ = ""; @@ -28,16 +46,15 @@ private BatchTranslateTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchTranslateTextRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BatchTranslateTextRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,102 +74,115 @@ private BatchTranslateTextRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + sourceLanguageCode_ = s; + break; } - targetLanguageCodes_.add(s); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - models_ = com.google.protobuf.MapField.newMapField( - ModelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + targetLanguageCodes_.add(s); + break; } - com.google.protobuf.MapEntry - models__ = input.readMessage( - ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - models_.getMutableMap().put( - models__.getKey(), models__.getValue()); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - inputConfigs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 34: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + models_ = + com.google.protobuf.MapField.newMapField(ModelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry models__ = + input.readMessage( + ModelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + models_.getMutableMap().put(models__.getKey(), models__.getValue()); + break; } - inputConfigs_.add( - input.readMessage(com.google.cloud.translate.v3beta1.InputConfig.parser(), extensionRegistry)); - break; - } - case 50: { - com.google.cloud.translate.v3beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); + case 42: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + inputConfigs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + inputConfigs_.add( + input.readMessage( + com.google.cloud.translate.v3beta1.InputConfig.parser(), extensionRegistry)); + break; } - outputConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + case 50: + { + com.google.cloud.translate.v3beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.translate.v3beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - glossaries_ = com.google.protobuf.MapField.newMapField( - GlossariesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; + case 58: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + glossaries_ = + com.google.protobuf.MapField.newMapField( + GlossariesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + glossaries__ = + input.readMessage( + GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + glossaries_.getMutableMap().put(glossaries__.getKey(), glossaries__.getValue()); + break; } - com.google.protobuf.MapEntry - glossaries__ = input.readMessage( - GlossariesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - glossaries_.getMutableMap().put( - glossaries__.getKey(), glossaries__.getValue()); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; + case 74: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { targetLanguageCodes_ = targetLanguageCodes_.getUnmodifiableView(); @@ -164,15 +194,15 @@ private BatchTranslateTextRequest( makeExtensionsImmutable(); } } - 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(); @@ -181,21 +211,25 @@ 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Location to make a call. Must refer to a caller's project.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -205,7 +239,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 @@ -214,14 +251,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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -231,17 +269,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 { @@ -252,11 +291,14 @@ public java.lang.String getParent() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; 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 @@ -265,29 +307,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 { @@ -298,34 +340,45 @@ public java.lang.String getSourceLanguageCode() { public static final int TARGET_LANGUAGE_CODES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList 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 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. */ @@ -333,38 +386,40 @@ 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, + ""); } - 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_; } @@ -373,6 +428,8 @@ 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,
@@ -388,22 +445,22 @@ 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 java.lang.NullPointerException(); }
+  public boolean containsModels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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,
@@ -420,11 +477,12 @@ public java.util.Map getModels() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   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,
@@ -441,16 +499,16 @@ public java.util.Map getModelsMap() {
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getModelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetModels().getMap();
+  public java.lang.String getModelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    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,
@@ -467,12 +525,11 @@ public 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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetModels().getMap();
+  public java.lang.String getModelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetModels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -482,6 +539,8 @@ public java.lang.String getModelsOrThrow(
   public static final int INPUT_CONFIGS_FIELD_NUMBER = 5;
   private java.util.List inputConfigs_;
   /**
+   *
+   *
    * 
    * Required. Input configurations.
    * The total number of files matched should be <= 100.
@@ -489,13 +548,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.
@@ -503,14 +566,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.
@@ -518,13 +585,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.
@@ -532,13 +603,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.
@@ -546,7 +621,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( @@ -557,13 +634,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 @@ -571,27 +653,38 @@ 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() { @@ -599,24 +692,32 @@ public com.google.cloud.translate.v3beta1.OutputConfigOrBuilder getOutputConfigO } 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()); } + + 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 - internalGetGlossaries() { + 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_; } @@ -625,74 +726,93 @@ 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 java.lang.NullPointerException(); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -700,24 +820,23 @@ 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, + ""); } - 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_; } @@ -726,6 +845,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -737,22 +858,22 @@ 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 java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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.
    * Label keys and values can be no longer than 63 characters
@@ -765,11 +886,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -782,16 +904,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -804,12 +926,11 @@ public 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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -817,6 +938,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -828,8 +950,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_);
     }
@@ -839,30 +960,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);
     unknownFields.writeTo(output);
   }
 
@@ -886,43 +995,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -932,32 +1042,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1003,114 +1106,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(); @@ -1119,13 +1229,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(); @@ -1134,16 +1243,18 @@ 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() @@ -1151,17 +1262,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getInputConfigsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1190,13 +1301,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(); } @@ -1211,7 +1323,8 @@ 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); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.sourceLanguageCode_ = sourceLanguageCode_; @@ -1248,38 +1361,39 @@ public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -1287,7 +1401,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_; onChanged(); @@ -1306,8 +1422,7 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe } onChanged(); } - internalGetMutableModels().mergeFrom( - other.internalGetModels()); + internalGetMutableModels().mergeFrom(other.internalGetModels()); if (inputConfigsBuilder_ == null) { if (!other.inputConfigs_.isEmpty()) { if (inputConfigs_.isEmpty()) { @@ -1326,9 +1441,10 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe inputConfigsBuilder_ = null; inputConfigs_ = other.inputConfigs_; bitField0_ = (bitField0_ & ~0x00000004); - inputConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputConfigsFieldBuilder() : null; + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputConfigsFieldBuilder() + : null; } else { inputConfigsBuilder_.addAllMessages(other.inputConfigs_); } @@ -1337,10 +1453,8 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.BatchTranslateTextRe if (other.hasOutputConfig()) { mergeOutputConfig(other.getOutputConfig()); } - internalGetMutableGlossaries().mergeFrom( - other.internalGetGlossaries()); - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableGlossaries().mergeFrom(other.internalGetGlossaries()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1360,7 +1474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.BatchTranslateTextRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1369,10 +1484,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1382,14 +1500,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; @@ -1398,6 +1518,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1407,16 +1529,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 { @@ -1424,6 +1547,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1433,21 +1558,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1457,16 +1586,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Location to make a call. Must refer to a caller's project.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1476,17 +1610,19 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1494,18 +1630,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; @@ -1514,20 +1652,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 { @@ -1535,95 +1674,115 @@ 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) { + public Builder setSourceLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; 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() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); onChanged(); 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) { + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList targetLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList targetLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTargetLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { targetLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(targetLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * 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_.getUnmodifiableView(); } /** + * + * *
      * 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. */ @@ -1631,80 +1790,95 @@ 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) { + public Builder setTargetLanguageCodes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.set(index, value); 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 targetLanguageCodes to add. * @return This builder for chaining. */ - public Builder addTargetLanguageCodes( - java.lang.String value) { + public Builder addTargetLanguageCodes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTargetLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); 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 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_); 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() { @@ -1714,42 +1888,44 @@ public Builder clearTargetLanguageCodes() { 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) { + public Builder addTargetLanguageCodesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTargetLanguageCodesIsMutable(); targetLanguageCodes_.add(value); onChanged(); 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() { - onChanged();; + internalGetMutableModels() { + onChanged(); + ; 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,6 +1937,8 @@ 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,
@@ -1776,22 +1954,22 @@ 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 java.lang.NullPointerException(); }
+    public boolean containsModels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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,
@@ -1808,11 +1986,12 @@ public java.util.Map getModels() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     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,
@@ -1829,16 +2008,17 @@ public java.util.Map getModelsMap() {
      * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getModelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetModels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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,
@@ -1855,12 +2035,11 @@ public 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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetModels().getMap();
+    public java.lang.String getModelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetModels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1868,11 +2047,12 @@ public java.lang.String getModelsOrThrow(
     }
 
     public Builder clearModels() {
-      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,
@@ -1888,23 +2068,21 @@ 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 java.lang.NullPointerException(); }
-      internalGetMutableModels().getMutableMap()
-          .remove(key);
+    public Builder removeModels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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() {
       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,
@@ -1920,16 +2098,19 @@ 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 java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableModels().getMutableMap()
-          .put(key, value);
+    public Builder putModels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableModels().getMutableMap().put(key, value);
       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,
@@ -1945,27 +2126,31 @@ 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);
       return this;
     }
 
     private java.util.List inputConfigs_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureInputConfigsIsMutable() {
       if (!((bitField0_ & 0x00000004) != 0)) {
-        inputConfigs_ = new java.util.ArrayList(inputConfigs_);
+        inputConfigs_ =
+            new java.util.ArrayList(inputConfigs_);
         bitField0_ |= 0x00000004;
-       }
+      }
     }
 
     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.
@@ -1973,7 +2158,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) { @@ -1983,6 +2170,8 @@ public java.util.List getInputCo } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -1990,7 +2179,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) { @@ -2000,6 +2191,8 @@ public int getInputConfigsCount() { } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2007,7 +2200,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) { @@ -2017,6 +2212,8 @@ public com.google.cloud.translate.v3beta1.InputConfig getInputConfigs(int index) } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2024,7 +2221,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) { @@ -2041,6 +2240,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2048,7 +2249,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) { @@ -2062,6 +2265,8 @@ public Builder setInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2069,7 +2274,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) { @@ -2085,6 +2292,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.
@@ -2092,7 +2301,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) { @@ -2109,6 +2320,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2116,7 +2329,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) { @@ -2130,6 +2345,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2137,7 +2354,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) { @@ -2151,6 +2370,8 @@ public Builder addInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2158,14 +2379,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); @@ -2173,6 +2395,8 @@ public Builder addAllInputConfigs( return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2180,7 +2404,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) { @@ -2193,6 +2419,8 @@ public Builder clearInputConfigs() { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2200,7 +2428,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) { @@ -2213,6 +2443,8 @@ public Builder removeInputConfigs(int index) { return this; } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2220,13 +2452,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.
@@ -2234,16 +2470,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.
@@ -2251,10 +2492,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 { @@ -2262,6 +2505,8 @@ public com.google.cloud.translate.v3beta1.InputConfigOrBuilder getInputConfigsOr } } /** + * + * *
      * Required. Input configurations.
      * The total number of files matched should be <= 100.
@@ -2269,13 +2514,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.
@@ -2283,14 +2532,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.
@@ -2298,22 +2551,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_ & 0x00000004) != 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_ & 0x00000004) != 0), getParentForChildren(), isClean()); inputConfigs_ = null; } return inputConfigsBuilder_; @@ -2321,45 +2579,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 outputConfigBuilder_ != null || 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. */ 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) { @@ -2375,13 +2652,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) { @@ -2395,19 +2676,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.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 (outputConfig_ != null) { outputConfig_ = - com.google.cloud.translate.v3beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3beta1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -2419,13 +2706,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() { if (outputConfigBuilder_ == null) { @@ -2439,75 +2730,97 @@ 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() { - + 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.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 - 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 glossaries_; } - private com.google.protobuf.MapField - internalGetMutableGlossaries() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + internalGetMutableGlossaries() { + onChanged(); + ; 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(); @@ -2519,74 +2832,95 @@ 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 java.lang.NullPointerException(); } + public boolean containsGlossaries(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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 com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetGlossaries().getMap(); + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + map = internalGetGlossaries().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2594,83 +2928,94 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossar } public Builder clearGlossaries() { - 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 java.lang.NullPointerException(); } - internalGetMutableGlossaries().getMutableMap() - .remove(key); + public Builder removeGlossaries(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableGlossaries().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableGlossaries() { + public java.util.Map< + java.lang.String, com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig> + getMutableGlossaries() { 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableGlossaries().getMutableMap() - .put(key, value); + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableGlossaries().getMutableMap().put(key, value); 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); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -2682,6 +3027,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2693,22 +3040,22 @@ 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 java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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.
      * Label keys and values can be no longer than 63 characters
@@ -2721,11 +3068,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2738,16 +3086,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2760,12 +3109,11 @@ public 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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2773,11 +3121,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2789,23 +3138,21 @@ 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 java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2817,16 +3164,19 @@ 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 java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2838,16 +3188,13 @@ 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);
       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);
     }
 
@@ -2857,12 +3204,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();
   }
@@ -2871,16 +3219,16 @@ 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 {
-      return new BatchTranslateTextRequest(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new BatchTranslateTextRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2895,6 +3243,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.translate.v3beta1.BatchTranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
similarity index 73%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
index 7a1c7213b..dbbe3fc53 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/BatchTranslateTextRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -17,11 +35,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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -31,74 +54,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,
@@ -116,6 +162,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,
@@ -131,15 +179,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,
@@ -155,9 +201,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,
@@ -173,11 +220,10 @@ boolean containsModels(
    *
    * map<string, string> models = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getModelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getModelsOrDefault(java.lang.String key, 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,
@@ -193,11 +239,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.
@@ -205,11 +251,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.
@@ -217,10 +266,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.
@@ -228,10 +281,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.
@@ -239,11 +296,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.
@@ -251,104 +312,136 @@ 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]; + * */ - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrDefault( java.lang.String key, 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.
    * Label keys and values can be no longer than 63 characters
@@ -362,6 +455,8 @@ com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig getGlossariesOrTh
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -373,15 +468,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.
    * Label keys and values can be no longer than 63 characters
@@ -393,9 +486,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.
    * Label keys and values can be no longer than 63 characters
@@ -407,11 +501,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -423,7 +516,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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
similarity index 71%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
index 295b1e324..02ed75799 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadata.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,16 +46,15 @@ private CreateGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateGlossaryMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CreateGlossaryMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,73 +73,82 @@ private CreateGlossaryMetadata(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              name_ = s;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (submitTime_ != null) {
-              subBuilder = submitTime_.toBuilder();
+              state_ = rawValue;
+              break;
             }
-            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(submitTime_);
-              submitTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (submitTime_ != null) {
+                subBuilder = submitTime_.toBuilder();
+              }
+              submitTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(submitTime_);
+                submitTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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.
      * 
@@ -131,6 +157,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -139,6 +167,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The glossary was successfully created.
      * 
@@ -147,6 +177,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * Failed to create the glossary.
      * 
@@ -155,6 +187,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -164,6 +198,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -175,6 +211,8 @@ public enum State ; /** + * + * *
      * Invalid.
      * 
@@ -183,6 +221,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -191,6 +231,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The glossary was successfully created.
      * 
@@ -199,6 +241,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * Failed to create the glossary.
      * 
@@ -207,6 +251,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.
@@ -216,6 +262,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The glossary creation request was successfully canceled.
      * 
@@ -224,7 +272,6 @@ public enum State */ public static final int CANCELLED_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -249,52 +296,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; @@ -314,11 +366,14 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The name of the glossary that is being created.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -327,29 +382,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 { @@ -360,38 +415,52 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.valueOf(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.valueOf(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 @@ -399,11 +468,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 @@ -411,6 +483,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.
    * 
@@ -423,6 +497,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -434,12 +509,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) { @@ -457,13 +533,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -473,20 +549,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -513,96 +588,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]
@@ -611,21 +694,23 @@ 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()
@@ -633,16 +718,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -660,9 +744,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
@@ -681,7 +765,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);
+      com.google.cloud.translate.v3beta1.CreateGlossaryMetadata result =
+          new com.google.cloud.translate.v3beta1.CreateGlossaryMetadata(this);
       result.name_ = name_;
       result.state_ = state_;
       if (submitTimeBuilder_ == null) {
@@ -697,38 +782,39 @@ public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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;
@@ -736,7 +822,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_;
         onChanged();
@@ -766,7 +853,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.translate.v3beta1.CreateGlossaryMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -778,18 +866,20 @@ public Builder mergeFrom(
 
     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; @@ -798,20 +888,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 { @@ -819,54 +910,61 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the glossary that is being created.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -874,51 +972,67 @@ 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.CreateGlossaryMetadata.State.valueOf(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.valueOf(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. */ @@ -926,21 +1040,24 @@ public Builder setState(com.google.cloud.translate.v3beta1.CreateGlossaryMetadat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); 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() { - + state_ = 0; onChanged(); return this; @@ -948,34 +1065,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 submitTimeBuilder_ != null || submitTime_ != null; } /** + * + * *
      * 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.
      * 
@@ -996,14 +1126,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(); onChanged(); @@ -1014,6 +1145,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1024,7 +1157,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1036,6 +1169,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1054,6 +1189,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1061,11 +1198,13 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 3; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1076,11 +1215,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.
      * 
@@ -1088,21 +1230,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); } @@ -1112,12 +1257,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(); } @@ -1126,16 +1271,16 @@ 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 { - return new CreateGlossaryMetadata(input, extensionRegistry); - } - }; + 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 { + return new CreateGlossaryMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1150,6 +1295,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.CreateGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java index e5de66c9d..09cad5adf 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryMetadataOrBuilder.java @@ -1,70 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java similarity index 62% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java index 9df2230eb..7c6c8b02d 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateGlossaryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,65 +70,76 @@ private CreateGlossaryRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.translate.v3beta1.Glossary.Builder subBuilder = null; - if (glossary_ != null) { - subBuilder = glossary_.toBuilder(); + parent_ = s; + break; } - glossary_ = input.readMessage(com.google.cloud.translate.v3beta1.Glossary.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossary_); - glossary_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.translate.v3beta1.Glossary.Builder subBuilder = null; + if (glossary_ != null) { + subBuilder = glossary_.toBuilder(); + } + glossary_ = + input.readMessage( + com.google.cloud.translate.v3beta1.Glossary.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossary_); + glossary_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -120,29 +148,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 { @@ -153,11 +183,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 @@ -165,23 +200,34 @@ 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() { @@ -189,6 +235,7 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossaryOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +247,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_); } @@ -221,8 +267,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,19 +277,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -269,117 +313,127 @@ 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() @@ -387,16 +441,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +465,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 @@ -433,7 +486,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); + com.google.cloud.translate.v3beta1.CreateGlossaryRequest result = + new com.google.cloud.translate.v3beta1.CreateGlossaryRequest(this); result.parent_ = parent_; if (glossaryBuilder_ == null) { result.glossary_ = glossary_; @@ -448,38 +502,39 @@ public com.google.cloud.translate.v3beta1.CreateGlossaryRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -487,7 +542,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_; onChanged(); @@ -514,7 +570,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.CreateGlossaryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -526,18 +583,22 @@ public Builder mergeFrom( 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; @@ -546,20 +607,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 { @@ -567,54 +631,67 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -622,39 +699,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 glossaryBuilder_ != null || 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. */ 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) { @@ -670,11 +766,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) { @@ -688,17 +788,23 @@ 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 (glossary_ != null) { glossary_ = - com.google.cloud.translate.v3beta1.Glossary.newBuilder(glossary_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3beta1.Glossary.newBuilder(glossary_) + .mergeFrom(value) + .buildPartial(); } else { glossary_ = value; } @@ -710,11 +816,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() { if (glossaryBuilder_ == null) { @@ -728,55 +838,71 @@ 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() { - + onChanged(); 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); } @@ -786,12 +912,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(); } @@ -800,16 +926,16 @@ 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 { - return new CreateGlossaryRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateGlossaryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -824,6 +950,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.CreateGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java new file mode 100644 index 000000000..954061308 --- /dev/null +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/CreateGlossaryRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java similarity index 71% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java index c95a126a5..e48a19399 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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,16 +46,15 @@ private DeleteGlossaryMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteGlossaryMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private DeleteGlossaryMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,73 +73,82 @@ private DeleteGlossaryMetadata(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              name_ = s;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (submitTime_ != null) {
-              subBuilder = submitTime_.toBuilder();
+              state_ = rawValue;
+              break;
             }
-            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(submitTime_);
-              submitTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (submitTime_ != null) {
+                subBuilder = submitTime_.toBuilder();
+              }
+              submitTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(submitTime_);
+                submitTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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.
      * 
@@ -131,6 +157,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Request is being processed.
      * 
@@ -139,6 +167,8 @@ public enum State */ RUNNING(1), /** + * + * *
      * The glossary was successfully deleted.
      * 
@@ -147,6 +177,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * Failed to delete the glossary.
      * 
@@ -155,6 +187,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Request is in the process of being canceled after caller invoked
      * longrunning.Operations.CancelOperation on the request id.
@@ -164,6 +198,8 @@ public enum State
      */
     CANCELLING(4),
     /**
+     *
+     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -175,6 +211,8 @@ public enum State ; /** + * + * *
      * Invalid.
      * 
@@ -183,6 +221,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Request is being processed.
      * 
@@ -191,6 +231,8 @@ public enum State */ public static final int RUNNING_VALUE = 1; /** + * + * *
      * The glossary was successfully deleted.
      * 
@@ -199,6 +241,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * Failed to delete the glossary.
      * 
@@ -207,6 +251,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.
@@ -216,6 +262,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 4;
     /**
+     *
+     *
      * 
      * The glossary deletion request was successfully canceled.
      * 
@@ -224,7 +272,6 @@ public enum State */ public static final int CANCELLED_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -249,52 +296,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; @@ -314,11 +366,14 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The name of the glossary that is being deleted.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -327,29 +382,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 { @@ -360,38 +415,52 @@ public java.lang.String getName() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.valueOf(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.valueOf(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 @@ -399,11 +468,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 @@ -411,6 +483,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.
    * 
@@ -423,6 +497,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -434,12 +509,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) { @@ -457,13 +533,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -473,20 +549,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -513,96 +588,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]
@@ -611,21 +694,23 @@ 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()
@@ -633,16 +718,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -660,9 +744,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
@@ -681,7 +765,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);
+      com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata result =
+          new com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata(this);
       result.name_ = name_;
       result.state_ = state_;
       if (submitTimeBuilder_ == null) {
@@ -697,38 +782,39 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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;
@@ -736,7 +822,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_;
         onChanged();
@@ -766,7 +853,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -778,18 +866,20 @@ public Builder mergeFrom(
 
     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; @@ -798,20 +888,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 { @@ -819,54 +910,61 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the glossary that is being deleted.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -874,51 +972,67 @@ 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State result = com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata.State.valueOf(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.valueOf(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. */ @@ -926,21 +1040,24 @@ public Builder setState(com.google.cloud.translate.v3beta1.DeleteGlossaryMetadat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); 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() { - + state_ = 0; onChanged(); return this; @@ -948,34 +1065,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 submitTimeBuilder_ != null || submitTime_ != null; } /** + * + * *
      * 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.
      * 
@@ -996,14 +1126,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(); onChanged(); @@ -1014,6 +1145,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1024,7 +1157,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -1036,6 +1169,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1054,6 +1189,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1061,11 +1198,13 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 3; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -1076,11 +1215,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.
      * 
@@ -1088,21 +1230,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); } @@ -1112,12 +1257,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(); } @@ -1126,16 +1271,16 @@ 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 { - return new DeleteGlossaryMetadata(input, extensionRegistry); - } - }; + 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 { + return new DeleteGlossaryMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1150,6 +1295,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java index c5b1c95fb..d2eb5c4c8 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryMetadataOrBuilder.java @@ -1,70 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java similarity index 65% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java index a891d5085..94fb44b08 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteGlossaryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private DeleteGlossaryRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -107,29 +132,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 { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,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_); } @@ -174,15 +201,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +229,127 @@ 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() @@ -320,16 +357,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,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_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 @@ -360,7 +396,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); + com.google.cloud.translate.v3beta1.DeleteGlossaryRequest result = + new com.google.cloud.translate.v3beta1.DeleteGlossaryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +407,39 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -409,7 +447,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_; onChanged(); @@ -433,7 +472,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.DeleteGlossaryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +485,22 @@ public Builder mergeFrom( 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; @@ -465,20 +509,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 { @@ -486,61 +533,74 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; 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); } @@ -550,12 +610,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(); } @@ -564,16 +624,16 @@ 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 { - return new DeleteGlossaryRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteGlossaryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DeleteGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java new file mode 100644 index 000000000..4c49a207f --- /dev/null +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java similarity index 72% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java index 5776cd11a..adbb9d98b 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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,31 +29,31 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private DeleteGlossaryResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,78 +72,88 @@ private DeleteGlossaryResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (submitTime_ != null) {
-              subBuilder = submitTime_.toBuilder();
-            }
-            submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(submitTime_);
-              submitTime_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (submitTime_ != null) {
+                subBuilder = submitTime_.toBuilder();
+              }
+              submitTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(submitTime_);
+                submitTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (endTime_ != null) {
-              subBuilder = endTime_.toBuilder();
-            }
-            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(endTime_);
-              endTime_ = subBuilder.buildPartial();
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (endTime_ != null) {
+                subBuilder = endTime_.toBuilder();
+              }
+              endTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(endTime_);
+                endTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The name of the deleted glossary.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -135,29 +162,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 { @@ -168,11 +195,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 @@ -180,11 +210,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 @@ -192,6 +225,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.
    * 
@@ -206,6 +241,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
@@ -213,6 +250,7 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -220,6 +258,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
@@ -227,6 +267,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ @java.lang.Override @@ -234,6 +275,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
@@ -248,6 +291,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -259,8 +303,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_);
     }
@@ -283,12 +326,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -298,24 +339,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -344,96 +383,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]
@@ -442,21 +489,23 @@ 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()
@@ -464,16 +513,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -495,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_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
@@ -516,7 +564,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);
+      com.google.cloud.translate.v3beta1.DeleteGlossaryResponse result =
+          new com.google.cloud.translate.v3beta1.DeleteGlossaryResponse(this);
       result.name_ = name_;
       if (submitTimeBuilder_ == null) {
         result.submitTime_ = submitTime_;
@@ -536,38 +585,39 @@ public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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;
@@ -575,7 +625,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_;
         onChanged();
@@ -605,7 +656,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.translate.v3beta1.DeleteGlossaryResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -617,18 +669,20 @@ public Builder mergeFrom(
 
     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; @@ -637,20 +691,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 { @@ -658,54 +713,61 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the deleted glossary.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -713,34 +775,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 submitTimeBuilder_ != null || submitTime_ != null; } /** + * + * *
      * 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.
      * 
@@ -761,14 +836,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(); onChanged(); @@ -779,6 +855,8 @@ public Builder setSubmitTime( return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -789,7 +867,7 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { if (submitTimeBuilder_ == null) { if (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -801,6 +879,8 @@ public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -819,6 +899,8 @@ public Builder clearSubmitTime() { return this; } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -826,11 +908,13 @@ public Builder clearSubmitTime() { * .google.protobuf.Timestamp submit_time = 2; */ public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { - + onChanged(); return getSubmitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the operation was submitted to the server.
      * 
@@ -841,11 +925,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.
      * 
@@ -853,14 +940,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_; @@ -868,8 +958,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
@@ -877,12 +972,15 @@ public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -890,6 +988,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -900,6 +999,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
@@ -922,6 +1023,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
@@ -930,8 +1033,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();
         onChanged();
@@ -942,6 +1044,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -954,7 +1058,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -966,6 +1070,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
@@ -986,6 +1092,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -995,11 +1103,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time when the glossary deletion is finished and
      * [google.longrunning.Operation.done][google.longrunning.Operation.done] is
@@ -1012,11 +1122,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
@@ -1026,21 +1137,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);
     }
 
@@ -1050,12 +1164,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();
   }
@@ -1064,16 +1178,16 @@ 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 {
-      return new DeleteGlossaryResponse(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new DeleteGlossaryResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1088,6 +1202,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DeleteGlossaryResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
similarity index 74%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
index 3f333cae3..2309505dc 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DeleteGlossaryResponseOrBuilder.java
@@ -1,51 +1,80 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
similarity index 72%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
index 627c7994e..189365823 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,16 +45,15 @@ private DetectLanguageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetectLanguageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetectLanguageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,95 +73,103 @@ private DetectLanguageRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 1; - source_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 1; + source_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + model_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + parent_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -160,25 +185,29 @@ 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -190,7 +219,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 @@ -199,14 +231,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.
@@ -218,17 +251,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 { @@ -239,6 +273,8 @@ public java.lang.String getParent() { public static final int MODEL_FIELD_NUMBER = 4; private volatile java.lang.Object model_; /** + * + * *
    * Optional. The language detection model to be used.
    * Format:
@@ -249,6 +285,7 @@ public java.lang.String getParent() {
    * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -257,14 +294,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.
    * Format:
@@ -275,16 +313,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 { @@ -294,22 +331,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() { @@ -320,8 +363,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; @@ -330,23 +372,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; } @@ -359,12 +402,15 @@ public java.lang.String getContent() { public static final int MIME_TYPE_FIELD_NUMBER = 3; 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 @@ -373,30 +419,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 { @@ -405,24 +451,23 @@ 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, + ""); } - 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_; } @@ -431,6 +476,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -442,22 +489,22 @@ 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 java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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.
    * Label keys and values can be no longer than 63 characters
@@ -470,11 +517,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -487,16 +535,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -509,12 +557,11 @@ public 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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -522,6 +569,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -533,8 +581,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_);
     }
@@ -547,12 +594,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);
     unknownFields.writeTo(output);
   }
 
@@ -574,15 +617,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -592,26 +635,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:
@@ -651,139 +690,147 @@ 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() @@ -791,16 +838,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -817,9 +863,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 @@ -838,7 +884,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); + com.google.cloud.translate.v3beta1.DetectLanguageRequest result = + new com.google.cloud.translate.v3beta1.DetectLanguageRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.model_ = model_; @@ -857,38 +904,39 @@ public com.google.cloud.translate.v3beta1.DetectLanguageRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -896,7 +944,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_; onChanged(); @@ -909,18 +958,19 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.DetectLanguageReques mimeType_ = other.mimeType_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); 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.unknownFields); onChanged(); @@ -941,7 +991,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.DetectLanguageRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.DetectLanguageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -950,12 +1001,12 @@ public Builder mergeFrom( } 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() { @@ -969,6 +1020,8 @@ public Builder clearSource() { private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -980,14 +1033,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; @@ -996,6 +1051,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1007,16 +1064,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 { @@ -1024,6 +1082,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1035,21 +1095,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1061,16 +1125,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1082,17 +1151,19 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1100,6 +1171,8 @@ public Builder setParentBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1110,13 +1183,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; @@ -1125,6 +1198,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1135,15 +1210,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 { @@ -1151,6 +1225,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1161,20 +1237,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) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1185,15 +1263,18 @@ public Builder setModel(
      * 
* * string model = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Optional. The language detection model to be used.
      * Format:
@@ -1204,27 +1285,30 @@ 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) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } /** + * + * *
      * The content of the input stored as a string.
      * 
* * string content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -1232,11 +1316,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 @@ -1246,8 +1333,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; @@ -1258,24 +1344,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; } @@ -1285,30 +1372,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) { + public Builder setContent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 1; + 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() { @@ -1320,20 +1412,22 @@ 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) { + public Builder setContentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); sourceCase_ = 1; source_ = value; onChanged(); @@ -1342,19 +1436,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; @@ -1363,21 +1459,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 { @@ -1385,78 +1482,84 @@ 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) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; 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() { - + mimeType_ = getDefaultInstance().getMimeType(); 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]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -1468,6 +1571,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1479,22 +1584,22 @@ 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 java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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.
      * Label keys and values can be no longer than 63 characters
@@ -1507,11 +1612,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1524,16 +1630,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1546,12 +1653,11 @@ public 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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1559,11 +1665,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1575,23 +1682,21 @@ 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 java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1603,16 +1708,19 @@ 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 java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -1624,16 +1732,13 @@ 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);
       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);
     }
 
@@ -1643,12 +1748,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();
   }
@@ -1657,16 +1762,16 @@ 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 {
-      return new DetectLanguageRequest(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new DetectLanguageRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1681,6 +1786,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DetectLanguageRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
similarity index 79%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
index 284e4c282..174f150d7 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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.
@@ -19,11 +37,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.
@@ -35,13 +58,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.
    * Format:
@@ -52,10 +79,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.
    * Format:
@@ -66,63 +96,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.
    * Label keys and values can be no longer than 63 characters
@@ -136,6 +181,8 @@ public interface DetectLanguageRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -147,15 +194,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.
    * Label keys and values can be no longer than 63 characters
@@ -167,9 +212,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.
    * Label keys and values can be no longer than 63 characters
@@ -181,11 +227,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -197,9 +242,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);
 
   public com.google.cloud.translate.v3beta1.DetectLanguageRequest.SourceCase getSourceCase();
 }
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
similarity index 75%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
index ae2ae4629..cf2414424 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetectLanguageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,29 +71,32 @@ private DetectLanguageResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languages_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languages_.add( + input.readMessage( + com.google.cloud.translate.v3beta1.DetectedLanguage.parser(), + extensionRegistry)); + break; } - languages_.add( - input.readMessage(com.google.cloud.translate.v3beta1.DetectedLanguage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -85,22 +105,27 @@ private DetectLanguageResponse( makeExtensionsImmutable(); } } - 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; private java.util.List languages_; /** + * + * *
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -113,6 +138,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.
@@ -121,11 +148,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.
@@ -138,6 +167,8 @@ public int getLanguagesCount() {
     return languages_.size();
   }
   /**
+   *
+   *
    * 
    * A list of detected languages sorted by detection confidence in descending
    * order. The most probable language first.
@@ -150,6 +181,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.
@@ -164,6 +197,7 @@ public com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder getLanguages
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -175,8 +209,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));
     }
@@ -190,8 +223,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -201,15 +233,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -231,117 +263,127 @@ 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() @@ -349,17 +391,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLanguagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +415,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 @@ -394,7 +436,8 @@ 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); int from_bitField0_ = bitField0_; if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -413,38 +456,39 @@ public com.google.cloud.translate.v3beta1.DetectLanguageResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -452,7 +496,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()) { @@ -471,9 +516,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_); } @@ -498,7 +544,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.DetectLanguageResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.DetectLanguageResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -507,21 +554,30 @@ public Builder mergeFrom( } 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.
@@ -537,6 +593,8 @@ public java.util.List getLa
       }
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -552,6 +610,8 @@ public int getLanguagesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -567,6 +627,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.
@@ -589,6 +651,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -608,6 +672,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -629,6 +695,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.
@@ -651,6 +719,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -670,6 +740,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -689,6 +761,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -700,8 +774,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);
@@ -709,6 +782,8 @@ public Builder addAllLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -727,6 +802,8 @@ public Builder clearLanguages() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of detected languages sorted by detection confidence in descending
      * order. The most probable language first.
@@ -745,6 +822,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.
@@ -757,6 +836,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.
@@ -767,11 +848,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.
@@ -779,8 +863,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 {
@@ -788,6 +872,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.
@@ -796,10 +882,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.
@@ -809,10 +897,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.
@@ -820,27 +911,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);
     }
 
@@ -850,12 +944,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();
   }
@@ -864,16 +958,16 @@ 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 {
-      return new DetectLanguageResponse(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new DetectLanguageResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -888,6 +982,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.DetectLanguageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
similarity index 71%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
index efeecfb6a..de23a1e8b 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
similarity index 70%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
index 6d1c95c54..019bb373d 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DetectedLanguage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,58 +70,64 @@ private DetectedLanguage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - languageCode_ = s; - break; - } - case 21: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - confidence_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + case 21: + { + confidence_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -113,30 +136,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 { @@ -147,11 +170,14 @@ public java.lang.String getLanguageCode() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** + * + * *
    * The confidence of the detection result for this language.
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -160,6 +186,7 @@ public float getConfidence() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +198,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_); } @@ -192,8 +218,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, languageCode_); } if (confidence_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -203,18 +228,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,125 +253,133 @@ 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) + unknownFields.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() @@ -355,16 +387,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +407,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 @@ -397,7 +428,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); + com.google.cloud.translate.v3beta1.DetectedLanguage result = + new com.google.cloud.translate.v3beta1.DetectedLanguage(this); result.languageCode_ = languageCode_; result.confidence_ = confidence_; onBuilt(); @@ -408,38 +440,39 @@ public com.google.cloud.translate.v3beta1.DetectedLanguage buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -447,7 +480,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_; onChanged(); @@ -474,7 +508,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.DetectedLanguage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.DetectedLanguage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -486,19 +521,21 @@ public Builder mergeFrom( 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; @@ -507,21 +544,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 { @@ -529,69 +567,79 @@ 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) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; 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() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); 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) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); 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 @@ -599,37 +647,43 @@ 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. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * The confidence of the detection result for this language.
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; 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); } @@ -639,12 +693,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(); } @@ -653,16 +707,16 @@ 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 { - return new DetectedLanguage(input, extensionRegistry); - } - }; + 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 { + return new DetectedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -677,6 +731,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DetectedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java similarity index 56% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java index 18315afd3..1f9d68400 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguageOrBuilder.java @@ -1,40 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java similarity index 74% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java index e63d2d924..2c277ae70 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfig.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DocumentInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,72 +70,81 @@ private DocumentInputConfig( case 0: done = true; break; - case 10: { - sourceCase_ = 1; - source_ = input.readBytes(); - break; - } - case 18: { - com.google.cloud.translate.v3beta1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = ((com.google.cloud.translate.v3beta1.GcsSource) source_).toBuilder(); + case 10: + { + sourceCase_ = 1; + source_ = input.readBytes(); + break; } - source_ = - input.readMessage(com.google.cloud.translate.v3beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) source_); - source_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.translate.v3beta1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.translate.v3beta1.GcsSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.translate.v3beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 2; + break; } - sourceCase_ = 2; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + mimeType_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -134,30 +160,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 @@ -165,11 +197,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 @@ -182,12 +217,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 @@ -195,22 +233,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
@@ -221,7 +264,7 @@ 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();
   }
@@ -229,6 +272,8 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
   public static final int MIME_TYPE_FIELD_NUMBER = 4;
   private volatile java.lang.Object mimeType_;
   /**
+   *
+   *
    * 
    * Specifies the input document's mime_type.
    * If not specified it will be determined using the file extension for
@@ -242,6 +287,7 @@ public com.google.cloud.translate.v3beta1.GcsSourceOrBuilder getGcsSourceOrBuild
    * 
* * string mime_type = 4; + * * @return The mimeType. */ @java.lang.Override @@ -250,14 +296,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.
    * If not specified it will be determined using the file extension for
@@ -271,16 +318,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 { @@ -289,6 +335,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -300,11 +347,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_); @@ -322,13 +367,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_); @@ -341,24 +387,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: @@ -394,117 +438,127 @@ 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() @@ -512,16 +566,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -533,9 +586,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 @@ -554,7 +607,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); + com.google.cloud.translate.v3beta1.DocumentInputConfig result = + new com.google.cloud.translate.v3beta1.DocumentInputConfig(this); if (sourceCase_ == 1) { result.source_ = source_; } @@ -575,38 +629,39 @@ public com.google.cloud.translate.v3beta1.DocumentInputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -614,23 +669,27 @@ 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_; 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.unknownFields); onChanged(); @@ -651,7 +710,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.DocumentInputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.DocumentInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -660,12 +720,12 @@ public Builder mergeFrom( } 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() { @@ -675,24 +735,29 @@ public Builder clearSource() { return this; } - /** + * + * *
      * 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() { @@ -702,29 +767,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(); - } - sourceCase_ = 1; + 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() { @@ -737,14 +808,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 @@ -752,12 +829,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 @@ -775,6 +855,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
@@ -796,6 +878,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
@@ -815,6 +899,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -824,10 +910,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;
         }
@@ -842,6 +931,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
@@ -866,6 +957,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Google Cloud Storage location. This must be a single file.
      * For example: gs://example_bucket/example_file.pdf
@@ -877,6 +970,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
@@ -896,6 +991,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
@@ -904,26 +1001,34 @@ 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());
         source_ = null;
       }
       sourceCase_ = 2;
-      onChanged();;
+      onChanged();
+      ;
       return gcsSourceBuilder_;
     }
 
     private java.lang.Object mimeType_ = "";
     /**
+     *
+     *
      * 
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -937,13 +1042,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; @@ -952,6 +1057,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -965,15 +1072,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 { @@ -981,6 +1087,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -994,20 +1102,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) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** + * + * *
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -1021,15 +1131,18 @@ public Builder setMimeType(
      * 
* * string mime_type = 4; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** + * + * *
      * Specifies the input document's mime_type.
      * If not specified it will be determined using the file extension for
@@ -1043,23 +1156,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) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; 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); } @@ -1069,12 +1182,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(); } @@ -1083,16 +1196,16 @@ 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 { - return new DocumentInputConfig(input, extensionRegistry); - } - }; + 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 { + return new DocumentInputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1107,6 +1220,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentInputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java similarity index 79% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java index 26f6c7215..6ec47de4d 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentInputConfigOrBuilder.java @@ -1,52 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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.
    * If not specified it will be determined using the file extension for
@@ -70,10 +102,13 @@ public interface DocumentInputConfigOrBuilder extends
    * 
* * string mime_type = 4; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Specifies the input document's mime_type.
    * If not specified it will be determined using the file extension for
@@ -87,10 +122,10 @@ public interface DocumentInputConfigOrBuilder extends
    * 
* * string mime_type = 4; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); public com.google.cloud.translate.v3beta1.DocumentInputConfig.SourceCase getSourceCase(); } diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java similarity index 81% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java index e55a02503..48e9e506e 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfig.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DocumentOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,66 +70,77 @@ private DocumentOutputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3beta1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = ((com.google.cloud.translate.v3beta1.GcsDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage(com.google.cloud.translate.v3beta1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.translate.v3beta1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = + ((com.google.cloud.translate.v3beta1.GcsDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.translate.v3beta1.GcsDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.translate.v3beta1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 1; + break; } - destinationCase_ = 1; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + mimeType_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -128,24 +156,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/`.
@@ -183,7 +215,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 @@ -191,6 +226,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Optional. Google Cloud Storage destination for the translation output,
    * e.g., `gs://my_bucket/my_directory/`.
@@ -228,17 +265,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/`.
@@ -276,12 +318,14 @@ 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(); } @@ -289,6 +333,8 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat public static final int MIME_TYPE_FIELD_NUMBER = 3; 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
@@ -302,6 +348,7 @@ public com.google.cloud.translate.v3beta1.GcsDestinationOrBuilder getGcsDestinat
    * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -310,14 +357,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
@@ -331,16 +379,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 { @@ -349,6 +396,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -360,8 +408,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_); } @@ -378,8 +425,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_); @@ -392,20 +440,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: @@ -437,117 +484,127 @@ 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() @@ -555,16 +612,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -576,9 +632,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 @@ -597,7 +653,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); + com.google.cloud.translate.v3beta1.DocumentOutputConfig result = + new com.google.cloud.translate.v3beta1.DocumentOutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -615,38 +672,39 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -654,19 +712,22 @@ 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_; 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.unknownFields); onChanged(); @@ -687,7 +748,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.DocumentOutputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.DocumentOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -696,12 +758,12 @@ public Builder mergeFrom( } 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() { @@ -711,10 +773,14 @@ public Builder clearDestination() { return this; } - 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/`.
@@ -752,7 +818,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 @@ -760,6 +829,8 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -797,7 +868,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 @@ -815,6 +889,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/`.
@@ -852,7 +928,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) { @@ -868,6 +946,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/`.
@@ -905,7 +985,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) { @@ -919,6 +1001,8 @@ public Builder setGcsDestination( return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -956,14 +1040,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; } @@ -978,6 +1068,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/`.
@@ -1015,7 +1107,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) { @@ -1034,6 +1128,8 @@ public Builder clearGcsDestination() { return this; } /** + * + * *
      * Optional. Google Cloud Storage destination for the translation output,
      * e.g., `gs://my_bucket/my_directory/`.
@@ -1071,12 +1167,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/`.
@@ -1114,7 +1214,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() { @@ -1128,6 +1230,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/`.
@@ -1165,29 +1269,39 @@ 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()); destination_ = null; } destinationCase_ = 1; - onChanged();; + onChanged(); + ; return gcsDestinationBuilder_; } 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
@@ -1201,13 +1315,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; @@ -1216,6 +1330,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
@@ -1229,15 +1345,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 { @@ -1245,6 +1360,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
@@ -1258,20 +1375,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) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; 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
@@ -1285,15 +1404,18 @@ public Builder setMimeType(
      * 
* * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); 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
@@ -1307,23 +1429,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) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; 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); } @@ -1333,12 +1455,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(); } @@ -1347,16 +1469,16 @@ 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 { - return new DocumentOutputConfig(input, extensionRegistry); - } - }; + 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 { + return new DocumentOutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1371,6 +1493,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java similarity index 86% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java index 53a55abae..b5f4ac1d8 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentOutputConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/`.
@@ -45,11 +63,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/`.
@@ -87,11 +110,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/`.
@@ -129,11 +157,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
@@ -147,10 +179,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
@@ -164,10 +199,11 @@ 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(); - public com.google.cloud.translate.v3beta1.DocumentOutputConfig.DestinationCase getDestinationCase(); + public com.google.cloud.translate.v3beta1.DocumentOutputConfig.DestinationCase + getDestinationCase(); } diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java similarity index 74% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java index bb28410e6..6f918ca0f 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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,16 +45,15 @@ private DocumentTranslation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DocumentTranslation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DocumentTranslation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,40 +73,42 @@ private DocumentTranslation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - byteStreamOutputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + byteStreamOutputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + byteStreamOutputs_.add(input.readBytes()); + break; } - byteStreamOutputs_.add(input.readBytes()); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - detectedLanguageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + detectedLanguageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { byteStreamOutputs_ = java.util.Collections.unmodifiableList(byteStreamOutputs_); // C @@ -98,22 +117,27 @@ private DocumentTranslation( makeExtensionsImmutable(); } } - 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; 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
@@ -121,14 +145,16 @@ private DocumentTranslation(
    * 
* * 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
@@ -136,12 +162,15 @@ private DocumentTranslation(
    * 
* * 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
@@ -149,6 +178,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. */ @@ -159,11 +189,14 @@ public com.google.protobuf.ByteString getByteStreamOutputs(int index) { public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** + * + * *
    * The translated document's mime type.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ @java.lang.Override @@ -172,29 +205,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 { @@ -205,6 +238,8 @@ public java.lang.String getMimeType() { public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 3; 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,
@@ -214,6 +249,7 @@ public java.lang.String getMimeType() {
    * 
* * string detected_language_code = 3; + * * @return The detectedLanguageCode. */ @java.lang.Override @@ -222,14 +258,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,
@@ -239,16 +276,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 { @@ -257,6 +293,7 @@ public java.lang.String getDetectedLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,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 { for (int i = 0; i < byteStreamOutputs_.size(); i++) { output.writeBytes(1, byteStreamOutputs_.get(i)); } @@ -291,8 +327,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(); @@ -311,19 +347,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -349,117 +383,127 @@ 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() @@ -467,16 +511,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +533,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 @@ -511,7 +554,8 @@ 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); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { byteStreamOutputs_ = java.util.Collections.unmodifiableList(byteStreamOutputs_); @@ -528,38 +572,39 @@ public com.google.cloud.translate.v3beta1.DocumentTranslation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -567,7 +612,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_; @@ -605,7 +651,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.DocumentTranslation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.DocumentTranslation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -614,16 +661,22 @@ public Builder mergeFrom( } 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
@@ -631,14 +684,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
@@ -646,12 +702,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
@@ -659,6 +718,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. */ @@ -666,6 +726,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
@@ -673,21 +735,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) { + public Builder setByteStreamOutputs(int index, com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - ensureByteStreamOutputsIsMutable(); + 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
@@ -695,19 +759,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(); - } - ensureByteStreamOutputsIsMutable(); + 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
@@ -715,18 +782,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
@@ -734,6 +803,7 @@ public Builder addAllByteStreamOutputs(
      * 
* * repeated bytes byte_stream_outputs = 1; + * * @return This builder for chaining. */ public Builder clearByteStreamOutputs() { @@ -745,18 +815,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; @@ -765,20 +837,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 { @@ -786,54 +859,61 @@ 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) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** + * + * *
      * The translated document's mime type.
      * 
* * string mime_type = 2; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); 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) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; @@ -841,6 +921,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,
@@ -850,13 +932,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; @@ -865,6 +947,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,
@@ -874,15 +958,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 { @@ -890,6 +973,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,
@@ -899,20 +984,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) { + public Builder setDetectedLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + detectedLanguageCode_ = value; onChanged(); return this; } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -922,15 +1009,18 @@ public Builder setDetectedLanguageCode(
      * 
* * string detected_language_code = 3; + * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { - + detectedLanguageCode_ = getDefaultInstance().getDetectedLanguageCode(); onChanged(); return this; } /** + * + * *
      * The detected language for the input document.
      * If the user did not provide the source language for the input document,
@@ -940,23 +1030,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) { + public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detectedLanguageCode_ = value; 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); } @@ -966,12 +1056,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(); } @@ -980,16 +1070,16 @@ 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 { - return new DocumentTranslation(input, extensionRegistry); - } - }; + 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 { + return new DocumentTranslation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1004,6 +1094,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.DocumentTranslation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java similarity index 76% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java index 8dc2ef108..50ac4acbd 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DocumentTranslationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java similarity index 71% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java index f2784e131..3f77be41f 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestination.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private GcsDestination( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - outputUriPrefix_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + outputUriPrefix_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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
@@ -101,6 +123,7 @@ private GcsDestination(
    * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The outputUriPrefix. */ @java.lang.Override @@ -109,14 +132,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
@@ -124,16 +148,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 { @@ -142,6 +165,7 @@ public java.lang.String getOutputUriPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,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_); } @@ -178,15 +201,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +229,126 @@ 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() @@ -324,16 +356,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +374,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 @@ -364,7 +395,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); + com.google.cloud.translate.v3beta1.GcsDestination result = + new com.google.cloud.translate.v3beta1.GcsDestination(this); result.outputUriPrefix_ = outputUriPrefix_; onBuilt(); return result; @@ -374,38 +406,39 @@ public com.google.cloud.translate.v3beta1.GcsDestination buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -413,7 +446,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_; onChanged(); @@ -437,7 +471,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.GcsDestination) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.GcsDestination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,6 +484,8 @@ public Builder mergeFrom( 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
@@ -456,13 +493,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; @@ -471,6 +508,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,15 +517,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 { @@ -494,6 +532,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
@@ -501,20 +541,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) { + public Builder setOutputUriPrefix(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputUriPrefix_ = value; 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
@@ -522,15 +564,18 @@ public Builder setOutputUriPrefix(
      * 
* * string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearOutputUriPrefix() { - + outputUriPrefix_ = getDefaultInstance().getOutputUriPrefix(); 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
@@ -538,23 +583,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) { + public Builder setOutputUriPrefixBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputUriPrefix_ = value; 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); } @@ -564,12 +609,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(); } @@ -578,16 +623,16 @@ 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 { - return new GcsDestination(input, extensionRegistry); - } - }; + 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 { + return new GcsDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -602,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java similarity index 59% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java index 7b92ba408..d454fa390 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsDestinationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java similarity index 70% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java index aac4c075d..96b5a7ad3 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSource.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,58 @@ private GcsSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - inputUri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + inputUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -107,29 +130,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 { @@ -138,6 +161,7 @@ public java.lang.String getInputUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,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_); } @@ -174,15 +197,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -201,118 +224,127 @@ 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() @@ -320,16 +352,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +370,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 @@ -360,7 +391,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); + com.google.cloud.translate.v3beta1.GcsSource result = + new com.google.cloud.translate.v3beta1.GcsSource(this); result.inputUri_ = inputUri_; onBuilt(); return result; @@ -370,38 +402,39 @@ public com.google.cloud.translate.v3beta1.GcsSource buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -445,18 +478,20 @@ public Builder mergeFrom( 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; @@ -465,20 +500,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 { @@ -486,61 +522,68 @@ 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) { + public Builder setInputUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + inputUri_ = value; 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() { - + inputUri_ = getDefaultInstance().getInputUri(); onChanged(); 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) { + public Builder setInputUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputUri_ = value; 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); } @@ -550,12 +593,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(); } @@ -564,16 +607,16 @@ 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 { - return new GcsSource(input, extensionRegistry); - } - }; + 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 { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +631,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java similarity index 52% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java index 317cdff9c..106283778 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GcsSourceOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java similarity index 65% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java index 3146c408d..7f2c7bbbe 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetGlossaryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private GetGlossaryRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -107,29 +132,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 { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,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_); } @@ -174,15 +201,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +229,127 @@ 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() @@ -320,16 +357,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,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_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 @@ -360,7 +396,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); + com.google.cloud.translate.v3beta1.GetGlossaryRequest result = + new com.google.cloud.translate.v3beta1.GetGlossaryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +407,39 @@ public com.google.cloud.translate.v3beta1.GetGlossaryRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -409,7 +447,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_; onChanged(); @@ -433,7 +472,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.GetGlossaryRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.GetGlossaryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +485,22 @@ public Builder mergeFrom( 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; @@ -465,20 +509,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 { @@ -486,61 +533,74 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; 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); } @@ -550,12 +610,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(); } @@ -564,16 +624,16 @@ 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 { - return new GetGlossaryRequest(input, extensionRegistry); - } - }; + 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 { + return new GetGlossaryRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.GetGlossaryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java new file mode 100644 index 000000000..62602d795 --- /dev/null +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetGlossaryRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java similarity index 73% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java index e78f1e190..e89f22d44 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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,16 +45,15 @@ private GetSupportedLanguagesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSupportedLanguagesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetSupportedLanguagesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,59 +72,66 @@ private GetSupportedLanguagesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - displayLanguageCode_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + displayLanguageCode_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + model_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -120,7 +144,10 @@ private GetSupportedLanguagesRequest(
    * 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 @@ -129,14 +156,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.
@@ -149,17 +177,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 { @@ -170,6 +199,8 @@ public java.lang.String getParent() { public static final int DISPLAY_LANGUAGE_CODE_FIELD_NUMBER = 1; 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
@@ -177,6 +208,7 @@ public java.lang.String getParent() {
    * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayLanguageCode. */ @java.lang.Override @@ -185,14 +217,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
@@ -200,16 +233,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 { @@ -220,6 +252,8 @@ public java.lang.String getDisplayLanguageCode() { public static final int MODEL_FIELD_NUMBER = 2; private volatile java.lang.Object model_; /** + * + * *
    * Optional. Get supported languages of this model.
    * The format depends on model type:
@@ -232,6 +266,7 @@ public java.lang.String getDisplayLanguageCode() {
    * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -240,14 +275,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.
    * The format depends on model type:
@@ -260,16 +296,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 { @@ -278,6 +313,7 @@ public java.lang.String getModel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +325,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_); } @@ -326,19 +361,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,117 +395,127 @@ 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() @@ -480,16 +523,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -503,13 +545,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(); } @@ -524,7 +567,8 @@ 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); + com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest result = + new com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest(this); result.parent_ = parent_; result.displayLanguageCode_ = displayLanguageCode_; result.model_ = model_; @@ -536,46 +580,50 @@ public com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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_; onChanged(); @@ -607,7 +655,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -619,6 +669,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -631,14 +683,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; @@ -647,6 +701,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -659,16 +715,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 { @@ -676,6 +733,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -688,21 +747,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -715,16 +778,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -737,17 +805,19 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -755,6 +825,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
@@ -762,13 +834,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; @@ -777,6 +849,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
@@ -784,15 +858,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 { @@ -800,6 +873,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
@@ -807,20 +882,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) { + public Builder setDisplayLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayLanguageCode_ = value; 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
@@ -828,15 +905,18 @@ public Builder setDisplayLanguageCode(
      * 
* * string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayLanguageCode() { - + displayLanguageCode_ = getDefaultInstance().getDisplayLanguageCode(); 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
@@ -844,16 +924,16 @@ 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) { + public Builder setDisplayLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayLanguageCode_ = value; onChanged(); return this; @@ -861,6 +941,8 @@ public Builder setDisplayLanguageCodeBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -873,13 +955,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; @@ -888,6 +970,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -900,15 +984,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 { @@ -916,6 +999,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -928,20 +1013,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) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -954,15 +1041,18 @@ public Builder setModel(
      * 
* * string model = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Optional. Get supported languages of this model.
      * The format depends on model type:
@@ -975,23 +1065,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) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; 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); } @@ -1001,30 +1091,32 @@ 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 { - return new GetSupportedLanguagesRequest(input, extensionRegistry); - } - }; + 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 { + return new GetSupportedLanguagesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1036,9 +1128,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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java index 34c99d24d..dc6a0bc05 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GetSupportedLanguagesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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.
@@ -20,11 +38,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.
@@ -37,13 +60,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
@@ -51,10 +78,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
@@ -62,12 +92,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.
    * The format depends on model type:
@@ -80,10 +112,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.
    * The format depends on model type:
@@ -96,8 +131,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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java similarity index 72% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java index 45b9a2369..266e41011 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Glossary.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Glossary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,180 +70,219 @@ private Glossary( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 26: { - com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder subBuilder = null; - if (languagesCase_ == 3) { - subBuilder = ((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_).toBuilder(); - } - languages_ = - input.readMessage(com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); - languages_ = subBuilder.buildPartial(); - } - languagesCase_ = 3; - break; - } - case 34: { - com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder subBuilder = null; - if (languagesCase_ == 4) { - subBuilder = ((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_).toBuilder(); - } - languages_ = - input.readMessage(com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); - languages_ = subBuilder.buildPartial(); + name_ = s; + break; } - languagesCase_ = 4; - break; - } - case 42: { - com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); + case 26: + { + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.Builder subBuilder = + null; + if (languagesCase_ == 3) { + subBuilder = + ((com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_) + .toBuilder(); + } + languages_ = + input.readMessage( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) languages_); + languages_ = subBuilder.buildPartial(); + } + languagesCase_ = 3; + break; } - inputConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.GlossaryInputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.Builder subBuilder = + null; + if (languagesCase_ == 4) { + subBuilder = + ((com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_) + .toBuilder(); + } + languages_ = + input.readMessage( + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) languages_); + languages_ = subBuilder.buildPartial(); + } + languagesCase_ = 4; + break; } + case 42: + { + com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.translate.v3beta1.GlossaryInputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } - break; - } - case 48: { - - entryCount_ = input.readInt32(); - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (submitTime_ != null) { - subBuilder = submitTime_.toBuilder(); + break; } - submitTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(submitTime_); - submitTime_ = subBuilder.buildPartial(); + case 48: + { + entryCount_ = input.readInt32(); + break; } + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (submitTime_ != null) { + subBuilder = submitTime_.toBuilder(); + } + submitTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(submitTime_); + submitTime_ = subBuilder.buildPartial(); + } - break; - } - case 66: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + break; } + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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_ = ""; @@ -234,16 +290,15 @@ private LanguageCodePair() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LanguageCodePair(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LanguageCodePair( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -262,59 +317,66 @@ private LanguageCodePair( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + targetLanguageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -323,30 +385,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 { @@ -357,12 +419,15 @@ public java.lang.String getSourceLanguageCode() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 2; 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 @@ -371,30 +436,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 { @@ -403,6 +468,7 @@ public java.lang.String getTargetLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -414,8 +480,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_); } @@ -445,17 +510,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -477,87 +541,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 @@ -567,27 +638,32 @@ 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() @@ -595,16 +671,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -616,13 +691,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(); } @@ -637,7 +713,8 @@ 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); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair result = + new com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair(this); result.sourceLanguageCode_ = sourceLanguageCode_; result.targetLanguageCode_ = targetLanguageCode_; onBuilt(); @@ -648,38 +725,41 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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; @@ -687,7 +767,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_; onChanged(); @@ -715,7 +797,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.Glossary.LanguageCodePair) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -727,19 +811,21 @@ public Builder mergeFrom( 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; @@ -748,21 +834,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 { @@ -770,57 +857,64 @@ 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) { + public Builder setSourceLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; 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() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); 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; + * * @param value The bytes for sourceLanguageCode to set. * @return This builder for chaining. */ - public Builder setSourceLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -828,19 +922,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; @@ -849,21 +945,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 { @@ -871,61 +968,69 @@ 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) { + public Builder setTargetLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; 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() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); 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; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -938,30 +1043,32 @@ 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 { - return new LanguageCodePair(input, extensionRegistry); - } - }; + 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 { + return new LanguageCodePair(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -973,17 +1080,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.
@@ -991,11 +1101,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.
@@ -1003,10 +1115,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.
@@ -1014,11 +1129,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.
@@ -1026,44 +1144,46 @@ 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.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LanguageCodesSet(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LanguageCodesSet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1083,29 +1203,29 @@ private LanguageCodesSet( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languageCodes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languageCodes_.add(s); + break; } - languageCodes_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languageCodes_ = languageCodes_.getUnmodifiableView(); @@ -1114,22 +1234,27 @@ private LanguageCodesSet( makeExtensionsImmutable(); } } - 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; private com.google.protobuf.LazyStringList languageCodes_; /** + * + * *
      * The BCP-47 language code(s) for terms defined in the glossary.
      * All entries are unique. The list contains at least two entries.
@@ -1137,13 +1262,15 @@ private LanguageCodesSet(
      * 
* * 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.
@@ -1151,12 +1278,15 @@ private LanguageCodesSet(
      * 
* * 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.
@@ -1164,6 +1294,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. */ @@ -1171,6 +1302,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.
@@ -1178,15 +1311,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; @@ -1198,8 +1332,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)); } @@ -1228,15 +1361,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1258,87 +1391,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 @@ -1348,27 +1488,32 @@ 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() @@ -1376,16 +1521,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1395,13 +1539,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_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(); } @@ -1416,7 +1561,8 @@ 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); + com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet result = + new com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { languageCodes_ = languageCodes_.getUnmodifiableView(); @@ -1431,38 +1577,41 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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; @@ -1470,7 +1619,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_; @@ -1500,7 +1651,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.Glossary.LanguageCodesSet) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1509,16 +1662,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList languageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); 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.
@@ -1526,13 +1684,15 @@ 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() { return languageCodes_.getUnmodifiableView(); } /** + * + * *
        * The BCP-47 language code(s) for terms defined in the glossary.
        * All entries are unique. The list contains at least two entries.
@@ -1540,12 +1700,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.
@@ -1553,6 +1716,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. */ @@ -1560,6 +1724,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.
@@ -1567,14 +1733,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.
@@ -1582,21 +1750,23 @@ 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) { + public Builder setLanguageCodes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); languageCodes_.set(index, value); 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.
@@ -1604,20 +1774,22 @@ 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) { + public Builder addLanguageCodes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureLanguageCodesIsMutable(); languageCodes_.add(value); 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.
@@ -1625,18 +1797,19 @@ 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_); 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.
@@ -1644,6 +1817,7 @@ public Builder addAllLanguageCodes(
        * 
* * repeated string language_codes = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCodes() { @@ -1653,6 +1827,8 @@ public Builder clearLanguageCodes() { 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.
@@ -1660,20 +1836,21 @@ 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) { + public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLanguageCodesIsMutable(); languageCodes_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1686,30 +1863,32 @@ 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 { - return new LanguageCodesSet(input, extensionRegistry); - } - }; + 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 { + return new LanguageCodesSet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1721,21 +1900,24 @@ 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; 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; } @@ -1751,32 +1933,38 @@ 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; 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 @@ -1785,30 +1973,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 { @@ -1818,11 +2006,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 @@ -1830,21 +2021,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.
    * 
@@ -1852,20 +2048,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 @@ -1873,31 +2074,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(); } @@ -1905,12 +2114,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 @@ -1918,19 +2130,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.
@@ -1946,11 +2165,14 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfigOrBuilder getInputC
   public static final int ENTRY_COUNT_FIELD_NUMBER = 6;
   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 @@ -1961,11 +2183,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 @@ -1973,11 +2199,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 @@ -1985,11 +2215,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() { @@ -1999,11 +2232,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 @@ -2011,11 +2248,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 @@ -2023,11 +2264,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() { @@ -2035,6 +2279,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2046,16 +2291,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()); @@ -2082,28 +2328,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2113,41 +2357,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: @@ -2196,118 +2434,127 @@ 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() @@ -2315,16 +2562,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2356,9 +2602,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 @@ -2377,7 +2623,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); + com.google.cloud.translate.v3beta1.Glossary result = + new com.google.cloud.translate.v3beta1.Glossary(this); result.name_ = name_; if (languagesCase_ == 3) { if (languagePairBuilder_ == null) { @@ -2418,38 +2665,39 @@ public com.google.cloud.translate.v3beta1.Glossary buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -2475,17 +2723,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.unknownFields); onChanged(); @@ -2515,12 +2766,12 @@ public Builder mergeFrom( } 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() { @@ -2530,22 +2781,23 @@ public Builder clearLanguages() { return this; } - 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; @@ -2554,21 +2806,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 { @@ -2576,70 +2829,83 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } 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 @@ -2647,11 +2913,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 @@ -2669,13 +2938,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(); @@ -2689,6 +2961,8 @@ public Builder setLanguagePair(com.google.cloud.translate.v3beta1.Glossary.Langu return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2707,18 +2981,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; } @@ -2733,6 +3015,8 @@ public Builder mergeLanguagePair(com.google.cloud.translate.v3beta1.Glossary.Lan return this; } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2756,16 +3040,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.
      * 
@@ -2773,7 +3062,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 { @@ -2784,6 +3074,8 @@ public com.google.cloud.translate.v3beta1.Glossary.LanguageCodePairOrBuilder get } } /** + * + * *
      * Used with unidirectional glossaries.
      * 
@@ -2791,32 +3083,46 @@ 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()); languages_ = null; } languagesCase_ = 3; - onChanged();; + onChanged(); + ; return languagePairBuilder_; } 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 @@ -2824,11 +3130,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 @@ -2846,13 +3156,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(); @@ -2866,11 +3180,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) { @@ -2884,18 +3201,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; } @@ -2910,11 +3236,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) { @@ -2933,24 +3262,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 { @@ -2961,63 +3298,86 @@ 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()); languages_ = null; } languagesCase_ = 4; - onChanged();; + onChanged(); + ; return languageCodesSetBuilder_; } 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 inputConfigBuilder_ != null || 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. */ 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.
@@ -3039,6 +3399,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.
@@ -3058,6 +3420,8 @@ public Builder setInputConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3069,7 +3433,9 @@ public Builder mergeInputConfig(com.google.cloud.translate.v3beta1.GlossaryInput
       if (inputConfigBuilder_ == null) {
         if (inputConfig_ != null) {
           inputConfig_ =
-            com.google.cloud.translate.v3beta1.GlossaryInputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial();
+              com.google.cloud.translate.v3beta1.GlossaryInputConfig.newBuilder(inputConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           inputConfig_ = value;
         }
@@ -3081,6 +3447,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.
@@ -3100,6 +3468,8 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3108,11 +3478,13 @@ public Builder clearInputConfig() {
      * .google.cloud.translation.v3beta1.GlossaryInputConfig input_config = 5;
      */
     public com.google.cloud.translate.v3beta1.GlossaryInputConfig.Builder getInputConfigBuilder() {
-      
+
       onChanged();
       return getInputConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. Provides examples to build the glossary from.
      * Total glossary must not exceed 10M Unicode codepoints.
@@ -3120,15 +3492,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.
@@ -3137,26 +3513,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 @@ -3164,30 +3546,36 @@ 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. */ public Builder setEntryCount(int value) { - + entryCount_ = value; onChanged(); 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() { - + entryCount_ = 0; onChanged(); return this; @@ -3195,39 +3583,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 submitTimeBuilder_ != null || 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. */ 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) { @@ -3243,14 +3650,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(); onChanged(); @@ -3261,17 +3671,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 (submitTime_ != null) { submitTime_ = - com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(submitTime_).mergeFrom(value).buildPartial(); } else { submitTime_ = value; } @@ -3283,11 +3697,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() { if (submitTimeBuilder_ == null) { @@ -3301,48 +3719,64 @@ 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() { - + onChanged(); 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_; @@ -3350,24 +3784,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 endTimeBuilder_ != null || 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. */ public com.google.protobuf.Timestamp getEndTime() { @@ -3378,11 +3823,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) { @@ -3398,14 +3846,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(); onChanged(); @@ -3416,17 +3866,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 (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -3438,11 +3891,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() { if (endTimeBuilder_ == null) { @@ -3456,55 +3912,66 @@ 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() { - + onChanged(); 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); } @@ -3514,12 +3981,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(); } @@ -3528,16 +3995,16 @@ 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 { - return new Glossary(input, extensionRegistry); - } - }; + 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 { + return new Glossary(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3552,6 +4019,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.Glossary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java similarity index 79% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java index 74cfcb5be..b268e03c0 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GlossaryInputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,60 +68,67 @@ private GlossaryInputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3beta1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.translate.v3beta1.GcsSource) source_).toBuilder(); + case 10: + { + com.google.cloud.translate.v3beta1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.translate.v3beta1.GcsSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.translate.v3beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 1; + break; } - source_ = - input.readMessage(com.google.cloud.translate.v3beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) source_); - source_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - sourceCase_ = 1; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -121,24 +144,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
@@ -160,6 +187,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -167,6 +195,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
@@ -188,16 +218,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
@@ -223,12 +256,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;
@@ -240,8 +274,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_);
     }
@@ -255,8 +288,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -266,18 +300,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:
@@ -307,117 +341,127 @@ 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() @@ -425,16 +469,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +487,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 @@ -465,7 +508,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); + com.google.cloud.translate.v3beta1.GlossaryInputConfig result = + new com.google.cloud.translate.v3beta1.GlossaryInputConfig(this); if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -482,38 +526,39 @@ public com.google.cloud.translate.v3beta1.GlossaryInputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -521,15 +566,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.unknownFields); onChanged(); @@ -550,7 +598,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.GlossaryInputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.GlossaryInputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -559,12 +608,12 @@ public Builder mergeFrom( } 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() { @@ -574,10 +623,14 @@ public Builder clearSource() { return this; } - 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
@@ -599,6 +652,7 @@ public Builder clearSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -606,6 +660,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
@@ -627,6 +683,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 1; + * * @return The gcsSource. */ @java.lang.Override @@ -644,6 +701,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
@@ -680,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
@@ -714,6 +775,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
@@ -738,10 +801,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;
         }
@@ -756,6 +822,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
@@ -795,6 +863,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
@@ -821,6 +891,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
@@ -855,6 +927,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
@@ -878,26 +952,32 @@ 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());
         source_ = null;
       }
       sourceCase_ = 1;
-      onChanged();;
+      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);
     }
 
@@ -907,12 +987,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();
   }
@@ -921,16 +1001,16 @@ 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 {
-      return new GlossaryInputConfig(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new GlossaryInputConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -945,6 +1025,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.GlossaryInputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
similarity index 85%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
index 33cb67401..c11fbf8cb 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryInputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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
@@ -29,10 +47,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
@@ -54,10 +75,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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
similarity index 100%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryName.java
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
similarity index 79%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
index 94577b635..80ef4b594 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/GlossaryOrBuilder.java
@@ -1,53 +1,82 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java similarity index 80% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java index 7db15dafa..670be9bcf 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfig.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,66 +70,74 @@ private InputConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 18: { - com.google.cloud.translate.v3beta1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = ((com.google.cloud.translate.v3beta1.GcsSource) source_).toBuilder(); + mimeType_ = s; + break; } - source_ = - input.readMessage(com.google.cloud.translate.v3beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) source_); - source_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.translate.v3beta1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.translate.v3beta1.GcsSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.translate.v3beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 2; + break; } - sourceCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -128,25 +153,29 @@ 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; 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.
@@ -155,6 +184,7 @@ public int getNumber() {
    * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mimeType. */ @java.lang.Override @@ -163,14 +193,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.
@@ -179,16 +210,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 { @@ -198,6 +228,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,
@@ -218,6 +250,7 @@ public java.lang.String getMimeType() {
    * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -225,6 +258,8 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
    * Required. Google Cloud Storage location for the source input.
    * This can be a single file (for example,
@@ -245,16 +280,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,
@@ -279,12 +317,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;
@@ -296,8 +335,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_);
     }
@@ -317,8 +355,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -328,20 +367,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:
@@ -372,118 +410,127 @@ 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() @@ -491,16 +538,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -512,9 +558,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 @@ -533,7 +579,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); + com.google.cloud.translate.v3beta1.InputConfig result = + new com.google.cloud.translate.v3beta1.InputConfig(this); result.mimeType_ = mimeType_; if (sourceCase_ == 2) { if (gcsSourceBuilder_ == null) { @@ -551,38 +598,39 @@ public com.google.cloud.translate.v3beta1.InputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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,13 +644,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.unknownFields); onChanged(); @@ -632,12 +682,12 @@ public Builder mergeFrom( } 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() { @@ -647,9 +697,10 @@ public Builder clearSource() { return this; } - private java.lang.Object mimeType_ = ""; /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -658,13 +709,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; @@ -673,6 +724,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.
@@ -681,15 +734,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 { @@ -697,6 +749,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.
@@ -705,20 +759,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) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -727,15 +783,18 @@ public Builder setMimeType(
      * 
* * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** + * + * *
      * Optional. Can be "text/plain" or "text/html".
      * For `.tsv`, "text/html" is used if mime_type is missing.
@@ -744,24 +803,29 @@ 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) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; } 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,
@@ -782,6 +846,7 @@ public Builder setMimeTypeBytes(
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -789,6 +854,8 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -809,6 +876,7 @@ public boolean hasGcsSource() {
      * 
* * .google.cloud.translation.v3beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override @@ -826,6 +894,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,
@@ -861,6 +931,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,
@@ -894,6 +966,8 @@ public Builder setGcsSource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -917,10 +991,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;
         }
@@ -935,6 +1012,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,
@@ -973,6 +1052,8 @@ public Builder clearGcsSource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Google Cloud Storage location for the source input.
      * This can be a single file (for example,
@@ -998,6 +1079,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,
@@ -1031,6 +1114,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,
@@ -1053,26 +1138,32 @@ 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());
         source_ = null;
       }
       sourceCase_ = 2;
-      onChanged();;
+      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);
     }
 
@@ -1082,12 +1173,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();
   }
@@ -1096,16 +1187,16 @@ 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 {
-      return new InputConfig(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new InputConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1120,6 +1211,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.InputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
similarity index 86%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
index a6d23de8a..89c03286b 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/InputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,
@@ -54,10 +77,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,
@@ -78,10 +104,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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
similarity index 76%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
index 6740ef80f..3df50ab07 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,16 +45,15 @@ private ListGlossariesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGlossariesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListGlossariesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,69 +72,79 @@ private ListGlossariesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -126,29 +153,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 { @@ -159,12 +188,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; 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 @@ -175,6 +207,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; 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]
@@ -183,6 +217,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -191,14 +226,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]
@@ -207,16 +243,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 { @@ -227,6 +262,8 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; 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
@@ -247,6 +284,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -255,14 +293,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
@@ -283,16 +322,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 { @@ -301,6 +339,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -312,8 +351,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_); } @@ -339,8 +377,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_); @@ -356,21 +393,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -396,117 +430,127 @@ 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() @@ -514,16 +558,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -539,9 +582,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 @@ -560,7 +603,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); + com.google.cloud.translate.v3beta1.ListGlossariesRequest result = + new com.google.cloud.translate.v3beta1.ListGlossariesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -573,38 +617,39 @@ public com.google.cloud.translate.v3beta1.ListGlossariesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -612,7 +657,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_; onChanged(); @@ -647,7 +693,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.ListGlossariesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.ListGlossariesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -659,18 +706,22 @@ public Builder mergeFrom( 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; @@ -679,20 +730,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 { @@ -700,67 +754,83 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); 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 @@ -768,32 +838,38 @@ 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. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); 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() { - + pageSize_ = 0; onChanged(); return this; @@ -801,6 +877,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]
@@ -809,13 +887,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; @@ -824,6 +902,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]
@@ -832,15 +912,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 { @@ -848,6 +927,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]
@@ -856,20 +937,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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]
@@ -878,15 +961,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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]
@@ -895,16 +981,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -912,6 +998,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
@@ -932,13 +1020,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; @@ -947,6 +1035,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
@@ -967,15 +1057,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 { @@ -983,6 +1072,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
@@ -1003,20 +1094,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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1037,15 +1130,18 @@ public Builder setFilter(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. Filter specifying constraints of a list operation.
      * Specify the constraint by the format of "key=value", where key must be
@@ -1066,23 +1162,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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; 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); } @@ -1092,12 +1188,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(); } @@ -1106,16 +1202,16 @@ 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 { - return new ListGlossariesRequest(input, extensionRegistry); - } - }; + 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 { + return new ListGlossariesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1130,6 +1226,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.ListGlossariesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java index 2e12d3cd5..c84335be3 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesRequestOrBuilder.java @@ -1,44 +1,74 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java similarity index 74% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java index 7cf90b86b..538721e87 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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,16 +44,15 @@ private ListGlossariesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGlossariesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListGlossariesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,38 @@ private ListGlossariesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - glossaries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + glossaries_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + glossaries_.add( + input.readMessage( + com.google.cloud.translate.v3beta1.Glossary.parser(), extensionRegistry)); + break; } - glossaries_.add( - input.readMessage(com.google.cloud.translate.v3beta1.Glossary.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { glossaries_ = java.util.Collections.unmodifiableList(glossaries_); @@ -92,22 +112,27 @@ private ListGlossariesResponse( makeExtensionsImmutable(); } } - 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; private java.util.List glossaries_; /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -119,6 +144,8 @@ public java.util.List getGlossaries return glossaries_; } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -126,11 +153,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.
    * 
@@ -142,6 +171,8 @@ public int getGlossariesCount() { return glossaries_.size(); } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -153,6 +184,8 @@ public com.google.cloud.translate.v3beta1.Glossary getGlossaries(int index) { return glossaries_.get(index); } /** + * + * *
    * The list of glossaries for a project.
    * 
@@ -160,14 +193,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; 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
@@ -175,6 +209,7 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuild
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,14 +218,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
@@ -198,16 +234,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 { @@ -216,6 +251,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +263,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)); } @@ -245,8 +280,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_); @@ -259,17 +293,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +326,127 @@ 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() @@ -411,17 +454,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getGlossariesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,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_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 @@ -458,7 +501,8 @@ 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); int from_bitField0_ = bitField0_; if (glossariesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +522,39 @@ public com.google.cloud.translate.v3beta1.ListGlossariesResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -517,7 +562,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()) { @@ -536,9 +582,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_); } @@ -567,7 +614,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.ListGlossariesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.ListGlossariesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +624,29 @@ public Builder mergeFrom( } 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.
      * 
@@ -605,6 +661,8 @@ public java.util.List getGlossaries } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -619,6 +677,8 @@ public int getGlossariesCount() { } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -633,14 +693,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(); @@ -654,6 +715,8 @@ public Builder setGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -672,6 +735,8 @@ public Builder setGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -692,14 +757,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(); @@ -713,6 +779,8 @@ public Builder addGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -731,6 +799,8 @@ public Builder addGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -749,6 +819,8 @@ public Builder addGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -759,8 +831,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); @@ -768,6 +839,8 @@ public Builder addAllGlossaries( return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -785,6 +858,8 @@ public Builder clearGlossaries() { return this; } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -802,39 +877,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 { @@ -842,6 +922,8 @@ public com.google.cloud.translate.v3beta1.GlossaryOrBuilder getGlossariesOrBuild } } /** + * + * *
      * The list of glossaries for a project.
      * 
@@ -849,42 +931,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_; @@ -892,6 +980,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
@@ -899,13 +989,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; @@ -914,6 +1004,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
@@ -921,15 +1013,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 { @@ -937,6 +1028,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
@@ -944,20 +1037,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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -965,15 +1060,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -981,23 +1079,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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; 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); } @@ -1007,12 +1105,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(); } @@ -1021,16 +1119,16 @@ 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 { - return new ListGlossariesResponse(input, extensionRegistry); - } - }; + 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 { + return new ListGlossariesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1045,6 +1143,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.ListGlossariesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java index 4642bd830..8ec989ff7 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/ListGlossariesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java similarity index 100% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/LocationName.java diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java similarity index 88% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java index 8f327cb09..b01039607 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,60 +68,70 @@ private OutputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3beta1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = ((com.google.cloud.translate.v3beta1.GcsDestination) destination_).toBuilder(); + case 10: + { + com.google.cloud.translate.v3beta1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = + ((com.google.cloud.translate.v3beta1.GcsDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.translate.v3beta1.GcsDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.translate.v3beta1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 1; + break; } - destination_ = - input.readMessage(com.google.cloud.translate.v3beta1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.translate.v3beta1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - destinationCase_ = 1; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -121,24 +147,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
@@ -202,6 +232,7 @@ public int getNumber() {
    * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -209,6 +240,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
@@ -272,16 +305,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
@@ -349,12 +385,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;
@@ -366,8 +403,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_);
     }
@@ -381,8 +417,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -392,18 +429,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:
@@ -432,118 +469,127 @@ 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() @@ -551,16 +597,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -570,9 +615,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 @@ -591,7 +636,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); + com.google.cloud.translate.v3beta1.OutputConfig result = + new com.google.cloud.translate.v3beta1.OutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -608,38 +654,39 @@ public com.google.cloud.translate.v3beta1.OutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -647,15 +694,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.unknownFields); onChanged(); @@ -685,12 +735,12 @@ public Builder mergeFrom( } 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() { @@ -700,10 +750,14 @@ public Builder clearDestination() { return this; } - 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
@@ -767,6 +821,7 @@ public Builder clearDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -774,6 +829,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
@@ -837,6 +894,7 @@ public boolean hasGcsDestination() {
      * 
* * .google.cloud.translation.v3beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -854,6 +912,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
@@ -932,6 +992,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
@@ -1008,6 +1070,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
@@ -1074,10 +1138,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;
         }
@@ -1092,6 +1160,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
@@ -1173,6 +1243,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
@@ -1241,6 +1313,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
@@ -1317,6 +1391,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
@@ -1382,26 +1458,32 @@ 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());
         destination_ = null;
       }
       destinationCase_ = 1;
-      onChanged();;
+      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);
     }
 
@@ -1411,12 +1493,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();
   }
@@ -1425,16 +1507,16 @@ 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 {
-      return new OutputConfig(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new OutputConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1449,6 +1531,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.OutputConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
similarity index 94%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
index f255b88c1..5adefd342 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/OutputConfigOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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
@@ -71,10 +89,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
@@ -138,10 +159,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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
similarity index 73%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
index 5dc28f7d8..c5d5cbcc1 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguage.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,16 +45,15 @@ private SupportedLanguage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SupportedLanguage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SupportedLanguage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,63 +72,69 @@ private SupportedLanguage(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            languageCode_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 24: {
-
-            supportSource_ = input.readBool();
-            break;
-          }
-          case 32: {
+              languageCode_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            supportTarget_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              displayName_ = s;
+              break;
+            }
+          case 24:
+            {
+              supportSource_ = input.readBool();
+              break;
+            }
+          case 32:
+            {
+              supportTarget_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   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
@@ -120,6 +143,7 @@ private SupportedLanguage(
    * 
* * string language_code = 1; + * * @return The languageCode. */ @java.lang.Override @@ -128,14 +152,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
@@ -144,16 +169,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 { @@ -164,12 +188,15 @@ public java.lang.String getLanguageCode() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; 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 @@ -178,30 +205,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 { @@ -212,11 +239,14 @@ public java.lang.String getDisplayName() { public static final int SUPPORT_SOURCE_FIELD_NUMBER = 3; private boolean supportSource_; /** + * + * *
    * Can be used as source language.
    * 
* * bool support_source = 3; + * * @return The supportSource. */ @java.lang.Override @@ -227,11 +257,14 @@ public boolean getSupportSource() { public static final int SUPPORT_TARGET_FIELD_NUMBER = 4; private boolean supportTarget_; /** + * + * *
    * Can be used as target language.
    * 
* * bool support_target = 4; + * * @return The supportTarget. */ @java.lang.Override @@ -240,6 +273,7 @@ public boolean getSupportTarget() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,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(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -281,12 +314,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -296,21 +327,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,107 +355,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) + unknownFields.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.
@@ -435,21 +468,23 @@ 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()
@@ -457,16 +492,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -482,9 +516,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
@@ -503,7 +537,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);
+      com.google.cloud.translate.v3beta1.SupportedLanguage result =
+          new com.google.cloud.translate.v3beta1.SupportedLanguage(this);
       result.languageCode_ = languageCode_;
       result.displayName_ = displayName_;
       result.supportSource_ = supportSource_;
@@ -516,38 +551,39 @@ public com.google.cloud.translate.v3beta1.SupportedLanguage buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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;
@@ -555,7 +591,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_;
         onChanged();
@@ -589,7 +626,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.translate.v3beta1.SupportedLanguage) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.translate.v3beta1.SupportedLanguage) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -601,6 +639,8 @@ public Builder mergeFrom(
 
     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
@@ -609,13 +649,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; @@ -624,6 +664,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
@@ -632,15 +674,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 { @@ -648,6 +689,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
@@ -656,20 +699,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) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -678,15 +723,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Supported language code, generally consisting of its ISO 639-1
      * identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes
@@ -695,16 +743,16 @@ 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) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; @@ -712,19 +760,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; @@ -733,21 +783,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 { @@ -755,69 +806,79 @@ 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) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; 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() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); 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) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private boolean supportSource_ ; + private boolean supportSource_; /** + * + * *
      * Can be used as source language.
      * 
* * bool support_source = 3; + * * @return The supportSource. */ @java.lang.Override @@ -825,42 +886,51 @@ 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. */ public Builder setSupportSource(boolean value) { - + supportSource_ = value; onChanged(); return this; } /** + * + * *
      * Can be used as source language.
      * 
* * bool support_source = 3; + * * @return This builder for chaining. */ public Builder clearSupportSource() { - + supportSource_ = false; onChanged(); return this; } - private boolean supportTarget_ ; + private boolean supportTarget_; /** + * + * *
      * Can be used as target language.
      * 
* * bool support_target = 4; + * * @return The supportTarget. */ @java.lang.Override @@ -868,37 +938,43 @@ 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. */ public Builder setSupportTarget(boolean value) { - + supportTarget_ = value; onChanged(); return this; } /** + * + * *
      * Can be used as target language.
      * 
* * bool support_target = 4; + * * @return This builder for chaining. */ public Builder clearSupportTarget() { - + supportTarget_ = false; 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); } @@ -908,12 +984,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(); } @@ -922,16 +998,16 @@ 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 { - return new SupportedLanguage(input, extensionRegistry); - } - }; + 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 { + return new SupportedLanguage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -946,6 +1022,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.SupportedLanguage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java similarity index 69% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java index 58290ccfb..851089893 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguageOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java similarity index 76% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java index f74fc9d7e..a9d819954 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguages.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SupportedLanguages( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,29 +71,32 @@ private SupportedLanguages( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - languages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languages_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + languages_.add( + input.readMessage( + com.google.cloud.translate.v3beta1.SupportedLanguage.parser(), + extensionRegistry)); + break; } - languages_.add( - input.readMessage(com.google.cloud.translate.v3beta1.SupportedLanguage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { languages_ = java.util.Collections.unmodifiableList(languages_); @@ -85,22 +105,27 @@ private SupportedLanguages( makeExtensionsImmutable(); } } - 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; private java.util.List languages_; /** + * + * *
    * A list of supported language responses. This list contains an entry
    * for each language the Translation API supports.
@@ -113,6 +138,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.
@@ -121,11 +148,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.
@@ -138,6 +167,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.
@@ -150,6 +181,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.
@@ -164,6 +197,7 @@ public com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder getLanguage
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -175,8 +209,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));
     }
@@ -190,8 +223,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -201,15 +233,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -231,117 +263,127 @@ 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() @@ -349,17 +391,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLanguagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +415,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 @@ -394,7 +436,8 @@ 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); int from_bitField0_ = bitField0_; if (languagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -413,38 +456,39 @@ public com.google.cloud.translate.v3beta1.SupportedLanguages buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -452,7 +496,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()) { @@ -471,9 +516,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_); } @@ -498,7 +544,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.SupportedLanguages) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.SupportedLanguages) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -507,21 +554,30 @@ public Builder mergeFrom( } 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.
@@ -537,6 +593,8 @@ public java.util.List getL
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -552,6 +610,8 @@ public int getLanguagesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -567,6 +627,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.
@@ -589,6 +651,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -608,6 +672,8 @@ public Builder setLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -629,6 +695,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.
@@ -651,6 +719,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -670,6 +740,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -689,6 +761,8 @@ public Builder addLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -700,8 +774,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);
@@ -709,6 +782,8 @@ public Builder addAllLanguages(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -727,6 +802,8 @@ public Builder clearLanguages() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of supported language responses. This list contains an entry
      * for each language the Translation API supports.
@@ -745,6 +822,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.
@@ -757,6 +836,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.
@@ -767,11 +848,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.
@@ -779,8 +863,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 {
@@ -788,6 +872,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.
@@ -796,10 +882,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.
@@ -809,10 +897,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.
@@ -820,27 +911,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);
     }
 
@@ -850,12 +944,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();
   }
@@ -864,16 +958,16 @@ 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 {
-      return new SupportedLanguages(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new SupportedLanguages(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -888,6 +982,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.SupportedLanguages getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
similarity index 71%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
index e457d1adc..6b54044ad 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/SupportedLanguagesOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
similarity index 69%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
index 74722afb5..ff8b3240a 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,16 +46,15 @@ private TranslateDocumentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateDocumentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranslateDocumentRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,129 +74,149 @@ private TranslateDocumentRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - sourceLanguageCode_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - case 34: { - com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder subBuilder = null; - if (documentInputConfig_ != null) { - subBuilder = documentInputConfig_.toBuilder(); + parent_ = s; + break; } - documentInputConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.DocumentInputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentInputConfig_); - documentInputConfig_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + sourceLanguageCode_ = s; + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 42: { - com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder subBuilder = null; - if (documentOutputConfig_ != null) { - subBuilder = documentOutputConfig_.toBuilder(); + targetLanguageCode_ = s; + break; } - documentOutputConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.DocumentOutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentOutputConfig_); - documentOutputConfig_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.translate.v3beta1.DocumentInputConfig.Builder subBuilder = null; + if (documentInputConfig_ != null) { + subBuilder = documentInputConfig_.toBuilder(); + } + documentInputConfig_ = + input.readMessage( + com.google.cloud.translate.v3beta1.DocumentInputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentInputConfig_); + documentInputConfig_ = subBuilder.buildPartial(); + } + + break; } + case 42: + { + com.google.cloud.translate.v3beta1.DocumentOutputConfig.Builder subBuilder = null; + if (documentOutputConfig_ != null) { + subBuilder = documentOutputConfig_.toBuilder(); + } + documentOutputConfig_ = + input.readMessage( + com.google.cloud.translate.v3beta1.DocumentOutputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentOutputConfig_); + documentOutputConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - model_ = s; - break; - } - case 58: { - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder subBuilder = null; - if (glossaryConfig_ != null) { - subBuilder = glossaryConfig_.toBuilder(); + model_ = s; + break; } - glossaryConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryConfig_); - glossaryConfig_ = subBuilder.buildPartial(); + case 58: + { + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder subBuilder = + null; + if (glossaryConfig_ != null) { + subBuilder = glossaryConfig_.toBuilder(); + } + glossaryConfig_ = + input.readMessage( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryConfig_); + glossaryConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 66: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Location to make a regional call.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -191,6 +228,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -199,14 +237,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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -218,16 +257,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 { @@ -238,6 +276,8 @@ public java.lang.String getParent() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 2; 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
@@ -248,6 +288,7 @@ public java.lang.String getParent() {
    * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -256,14 +297,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
@@ -274,16 +316,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 { @@ -294,12 +335,15 @@ public java.lang.String getSourceLanguageCode() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 3; 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 @@ -308,30 +352,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 { @@ -342,11 +386,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 @@ -354,32 +403,46 @@ 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() { + public com.google.cloud.translate.v3beta1.DocumentInputConfigOrBuilder + getDocumentInputConfigOrBuilder() { return getDocumentInputConfig(); } 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
@@ -388,7 +451,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 @@ -396,6 +462,8 @@ public boolean hasDocumentOutputConfig() { return documentOutputConfig_ != null; } /** + * + * *
    * Optional. Output configurations.
    * Defines if the output file should be stored within Cloud Storage as well
@@ -404,14 +472,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
@@ -420,16 +495,21 @@ 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() { + public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder + getDocumentOutputConfigOrBuilder() { return getDocumentOutputConfig(); } public static final int MODEL_FIELD_NUMBER = 6; private volatile java.lang.Object model_; /** + * + * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -442,6 +522,7 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocum
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -450,14 +531,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.
    * The format depends on model type:
@@ -470,16 +552,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 { @@ -490,13 +571,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 @@ -504,52 +590,63 @@ 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() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { return getGlossaryConfig(); } 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, + ""); } - 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_; } @@ -558,6 +655,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -570,22 +669,22 @@ 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 java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -599,11 +698,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -617,16 +717,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -640,12 +740,11 @@ public 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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -653,6 +752,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -664,8 +764,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_);
     }
@@ -687,12 +786,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);
     unknownFields.writeTo(output);
   }
 
@@ -712,29 +807,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -744,38 +837,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -817,139 +903,147 @@ 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() @@ -957,16 +1051,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1001,9 +1094,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 @@ -1022,7 +1115,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); + com.google.cloud.translate.v3beta1.TranslateDocumentRequest result = + new com.google.cloud.translate.v3beta1.TranslateDocumentRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.sourceLanguageCode_ = sourceLanguageCode_; @@ -1053,38 +1147,39 @@ public com.google.cloud.translate.v3beta1.TranslateDocumentRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -1092,7 +1187,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_; onChanged(); @@ -1118,8 +1214,7 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateDocumentReq if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1139,7 +1234,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.TranslateDocumentRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1148,10 +1244,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1163,13 +1262,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; @@ -1178,6 +1277,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1189,15 +1290,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 { @@ -1205,6 +1305,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1216,20 +1318,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1241,15 +1345,18 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Location to make a regional call.
      * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -1261,16 +1368,16 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1278,6 +1385,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
@@ -1288,13 +1397,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; @@ -1303,6 +1412,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
@@ -1313,15 +1424,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 { @@ -1329,6 +1439,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
@@ -1339,20 +1451,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) { + public Builder setSourceLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; 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
@@ -1363,15 +1477,18 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); 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
@@ -1382,16 +1499,16 @@ 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) { + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -1399,19 +1516,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; @@ -1420,21 +1539,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 { @@ -1442,57 +1562,64 @@ 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) { + public Builder setTargetLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; 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() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); 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]; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; @@ -1500,41 +1627,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 documentInputConfigBuilder_ != null || 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. */ 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(); @@ -1548,11 +1695,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) { @@ -1566,17 +1717,25 @@ 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 (documentInputConfig_ != null) { documentInputConfig_ = - com.google.cloud.translate.v3beta1.DocumentInputConfig.newBuilder(documentInputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3beta1.DocumentInputConfig.newBuilder( + documentInputConfig_) + .mergeFrom(value) + .buildPartial(); } else { documentInputConfig_ = value; } @@ -1588,11 +1747,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() { if (documentInputConfigBuilder_ == null) { @@ -1606,48 +1769,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() { + 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_; @@ -1655,8 +1836,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
@@ -1665,13 +1851,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 documentOutputConfigBuilder_ != null || documentOutputConfig_ != null; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1680,17 +1871,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
@@ -1699,9 +1897,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(); @@ -1715,6 +1916,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
@@ -1723,7 +1926,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) { @@ -1737,6 +1942,8 @@ public Builder setDocumentOutputConfig( return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1745,13 +1952,19 @@ 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 (documentOutputConfig_ != null) { documentOutputConfig_ = - com.google.cloud.translate.v3beta1.DocumentOutputConfig.newBuilder(documentOutputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3beta1.DocumentOutputConfig.newBuilder( + documentOutputConfig_) + .mergeFrom(value) + .buildPartial(); } else { documentOutputConfig_ = value; } @@ -1763,6 +1976,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
@@ -1771,7 +1986,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() { if (documentOutputConfigBuilder_ == null) { @@ -1785,6 +2002,8 @@ public Builder clearDocumentOutputConfig() { return this; } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1793,14 +2012,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() { + onChanged(); return getDocumentOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Output configurations.
      * Defines if the output file should be stored within Cloud Storage as well
@@ -1809,17 +2033,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
@@ -1828,17 +2058,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_; @@ -1846,6 +2081,8 @@ public com.google.cloud.translate.v3beta1.DocumentOutputConfigOrBuilder getDocum private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1858,13 +2095,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; @@ -1873,6 +2110,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1885,15 +2124,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 +2139,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1913,20 +2153,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) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1939,15 +2181,18 @@ public Builder setModel(
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1960,16 +2205,16 @@ 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) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; @@ -1977,47 +2222,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 glossaryConfigBuilder_ != null || 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. */ 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(); @@ -2031,13 +2296,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) { @@ -2051,19 +2320,27 @@ 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 (glossaryConfig_ != null) { glossaryConfig_ = - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder( + glossaryConfig_) + .mergeFrom(value) + .buildPartial(); } else { glossaryConfig_ = value; } @@ -2075,13 +2352,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() { if (glossaryConfigBuilder_ == null) { @@ -2095,75 +2376,92 @@ 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() { + 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -2175,6 +2473,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2187,22 +2487,22 @@ 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 java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2216,11 +2516,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2234,16 +2535,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2257,12 +2559,11 @@ public 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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2270,11 +2571,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2287,23 +2589,21 @@ 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 java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2316,16 +2616,19 @@ 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 java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters (Unicode
@@ -2338,16 +2641,13 @@ 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);
       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);
     }
 
@@ -2357,12 +2657,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();
   }
@@ -2371,16 +2671,16 @@ 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 {
-      return new TranslateDocumentRequest(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new TranslateDocumentRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2395,6 +2695,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.TranslateDocumentRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
similarity index 77%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
index 8946e752e..1a4577095 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -19,10 +37,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.
    * Format: `projects/{project-number-or-id}/locations/{location-id}`.
@@ -34,12 +55,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
@@ -50,10 +73,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
@@ -64,61 +90,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
@@ -127,11 +174,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
@@ -140,11 +192,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
@@ -153,11 +210,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.
    * The format depends on model type:
@@ -170,10 +232,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.
    * The format depends on model type:
@@ -186,45 +251,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.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -239,6 +321,8 @@ public interface TranslateDocumentRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -251,15 +335,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.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -272,9 +354,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.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -287,11 +370,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters (Unicode
@@ -304,7 +386,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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
similarity index 68%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
index eab04874d..c48886684 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponse.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranslateDocumentResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,91 +70,110 @@ private TranslateDocumentResponse( case 0: done = true; break; - case 10: { - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder subBuilder = null; - if (documentTranslation_ != null) { - subBuilder = documentTranslation_.toBuilder(); - } - documentTranslation_ = input.readMessage(com.google.cloud.translate.v3beta1.DocumentTranslation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(documentTranslation_); - documentTranslation_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder subBuilder = null; + if (documentTranslation_ != null) { + subBuilder = documentTranslation_.toBuilder(); + } + documentTranslation_ = + input.readMessage( + com.google.cloud.translate.v3beta1.DocumentTranslation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(documentTranslation_); + documentTranslation_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.translate.v3beta1.DocumentTranslation.Builder subBuilder = null; - if (glossaryDocumentTranslation_ != null) { - subBuilder = glossaryDocumentTranslation_.toBuilder(); - } - glossaryDocumentTranslation_ = input.readMessage(com.google.cloud.translate.v3beta1.DocumentTranslation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryDocumentTranslation_); - glossaryDocumentTranslation_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.translate.v3beta1.DocumentTranslation.Builder subBuilder = null; + if (glossaryDocumentTranslation_ != null) { + subBuilder = glossaryDocumentTranslation_.toBuilder(); + } + glossaryDocumentTranslation_ = + input.readMessage( + com.google.cloud.translate.v3beta1.DocumentTranslation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryDocumentTranslation_); + glossaryDocumentTranslation_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - model_ = s; - break; - } - case 34: { - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder subBuilder = null; - if (glossaryConfig_ != null) { - subBuilder = glossaryConfig_.toBuilder(); + break; } - glossaryConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryConfig_); - glossaryConfig_ = subBuilder.buildPartial(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; } + case 34: + { + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder subBuilder = + null; + if (glossaryConfig_ != null) { + subBuilder = glossaryConfig_.toBuilder(); + } + glossaryConfig_ = + input.readMessage( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryConfig_); + glossaryConfig_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -145,18 +181,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.
    * 
@@ -164,20 +207,25 @@ 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() { + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder + getDocumentTranslationOrBuilder() { return getDocumentTranslation(); } 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 @@ -185,36 +233,48 @@ 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() { + public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder + getGlossaryDocumentTranslationOrBuilder() { return getGlossaryDocumentTranslation(); } public static final int MODEL_FIELD_NUMBER = 3; private volatile java.lang.Object model_; /** + * + * *
    * Only present when 'model' is present in the request.
    * 'model' is normalized to have a project number.
@@ -226,6 +286,7 @@ public com.google.cloud.translate.v3beta1.DocumentTranslationOrBuilder getGlossa
    * 
* * string model = 3; + * * @return The model. */ @java.lang.Override @@ -234,14 +295,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.
@@ -253,16 +315,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 { @@ -273,11 +334,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 @@ -285,18 +349,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.
    * 
@@ -304,11 +375,13 @@ 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() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { return getGlossaryConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -320,8 +393,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()); } @@ -344,19 +416,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -366,29 +437,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -421,117 +490,127 @@ 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() @@ -539,16 +618,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -576,13 +654,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(); } @@ -597,7 +676,8 @@ 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); + com.google.cloud.translate.v3beta1.TranslateDocumentResponse result = + new com.google.cloud.translate.v3beta1.TranslateDocumentResponse(this); if (documentTranslationBuilder_ == null) { result.documentTranslation_ = documentTranslation_; } else { @@ -622,38 +702,39 @@ public com.google.cloud.translate.v3beta1.TranslateDocumentResponse buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -661,7 +742,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()); } @@ -694,7 +777,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.TranslateDocumentResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.TranslateDocumentResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -706,41 +790,55 @@ public Builder mergeFrom( 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 documentTranslationBuilder_ != null || documentTranslation_ != null; } /** + * + * *
      * 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(); @@ -754,6 +852,8 @@ public Builder setDocumentTranslation(com.google.cloud.translate.v3beta1.Documen return this; } /** + * + * *
      * Translated document.
      * 
@@ -772,17 +872,23 @@ 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 (documentTranslation_ != null) { documentTranslation_ = - com.google.cloud.translate.v3beta1.DocumentTranslation.newBuilder(documentTranslation_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3beta1.DocumentTranslation.newBuilder( + documentTranslation_) + .mergeFrom(value) + .buildPartial(); } else { documentTranslation_ = value; } @@ -794,6 +900,8 @@ public Builder mergeDocumentTranslation(com.google.cloud.translate.v3beta1.Docum return this; } /** + * + * *
      * Translated document.
      * 
@@ -812,33 +920,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() { + 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.
      * 
@@ -846,14 +963,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_; @@ -861,47 +981,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 glossaryDocumentTranslationBuilder_ != null || 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. */ 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(); @@ -915,13 +1055,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) { @@ -935,19 +1079,27 @@ 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 (glossaryDocumentTranslation_ != null) { glossaryDocumentTranslation_ = - com.google.cloud.translate.v3beta1.DocumentTranslation.newBuilder(glossaryDocumentTranslation_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3beta1.DocumentTranslation.newBuilder( + glossaryDocumentTranslation_) + .mergeFrom(value) + .buildPartial(); } else { glossaryDocumentTranslation_ = value; } @@ -959,13 +1111,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() { if (glossaryDocumentTranslationBuilder_ == null) { @@ -979,54 +1135,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() { + 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_; @@ -1034,6 +1208,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.
@@ -1045,13 +1221,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; @@ -1060,6 +1236,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1071,15 +1249,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 { @@ -1087,6 +1264,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1098,20 +1277,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) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1123,15 +1304,18 @@ public Builder setModel(
      * 
* * string model = 3; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Only present when 'model' is present in the request.
      * 'model' is normalized to have a project number.
@@ -1143,16 +1327,16 @@ 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) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; @@ -1160,41 +1344,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 glossaryConfigBuilder_ != null || glossaryConfig_ != null; } /** + * + * *
      * 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(); @@ -1208,11 +1409,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) { @@ -1226,17 +1430,24 @@ 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 (glossaryConfig_ != null) { glossaryConfig_ = - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder( + glossaryConfig_) + .mergeFrom(value) + .buildPartial(); } else { glossaryConfig_ = value; } @@ -1248,11 +1459,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() { if (glossaryConfigBuilder_ == null) { @@ -1266,55 +1480,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() { + 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); } @@ -1324,12 +1553,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(); } @@ -1338,16 +1568,16 @@ 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 { - return new TranslateDocumentResponse(input, extensionRegistry); - } - }; + 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 { + return new TranslateDocumentResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1362,6 +1592,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.translate.v3beta1.TranslateDocumentResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java similarity index 79% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java index 126c7cecc..d16d44e25 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateDocumentResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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.
@@ -79,10 +117,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.
@@ -94,35 +135,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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java similarity index 70% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java index 9ded7a1b2..4963e27b0 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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,31 +28,31 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TranslateTextGlossaryConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,58 +71,64 @@ private TranslateTextGlossaryConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            glossary_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            ignoreCase_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              glossary_ = s;
+              break;
+            }
+          case 16:
+            {
+              ignoreCase_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   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 @@ -114,30 +137,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 { @@ -148,12 +171,15 @@ public java.lang.String getGlossary() { public static final int IGNORE_CASE_FIELD_NUMBER = 2; 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 @@ -162,6 +188,7 @@ public boolean getIgnoreCase() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +200,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_); } @@ -194,8 +220,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -205,17 +230,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,104 +254,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) + unknownFields.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.
@@ -335,21 +366,23 @@ 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()
@@ -357,16 +390,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -378,13 +410,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();
     }
 
@@ -399,7 +432,8 @@ 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);
+      com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig result =
+          new com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig(this);
       result.glossary_ = glossary_;
       result.ignoreCase_ = ignoreCase_;
       onBuilt();
@@ -410,38 +444,39 @@ public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig buildParti
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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;
@@ -449,7 +484,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_;
         onChanged();
@@ -476,7 +513,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -488,19 +527,21 @@ public Builder mergeFrom(
 
     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; @@ -509,21 +550,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 { @@ -531,70 +573,80 @@ 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) { + public Builder setGlossary(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + glossary_ = value; 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() { - + glossary_ = getDefaultInstance().getGlossary(); 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]; + * * @param value The bytes for glossary to set. * @return This builder for chaining. */ - public Builder setGlossaryBytes( - com.google.protobuf.ByteString value) { + public Builder setGlossaryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + glossary_ = value; onChanged(); 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 @@ -602,39 +654,45 @@ 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. */ public Builder setIgnoreCase(boolean value) { - + ignoreCase_ = value; onChanged(); 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() { - + ignoreCase_ = false; 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); } @@ -644,30 +702,32 @@ 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 { - return new TranslateTextGlossaryConfig(input, extensionRegistry); - } - }; + 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 { + return new TranslateTextGlossaryConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -679,9 +739,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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java similarity index 61% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java index e89e78055..3a4c8b1dd 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextGlossaryConfigOrBuilder.java @@ -1,41 +1,65 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java similarity index 73% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java index fd4732dc7..a12138010 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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.EMPTY; mimeType_ = ""; @@ -30,16 +48,15 @@ private TranslateTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranslateTextRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranslateTextRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,85 +76,95 @@ private TranslateTextRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - contents_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + contents_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + contents_.add(s); + break; } - contents_.add(s); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceLanguageCode_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + sourceLanguageCode_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - targetLanguageCode_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + targetLanguageCode_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; - } - case 58: { - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder subBuilder = null; - if (glossaryConfig_ != null) { - subBuilder = glossaryConfig_.toBuilder(); + model_ = s; + break; } - glossaryConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryConfig_); - glossaryConfig_ = subBuilder.buildPartial(); + case 58: + { + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder subBuilder = + null; + if (glossaryConfig_ != null) { + subBuilder = glossaryConfig_.toBuilder(); + } + glossaryConfig_ = + input.readMessage( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryConfig_); + glossaryConfig_ = subBuilder.buildPartial(); + } + + break; } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 82: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + parent_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 82: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { contents_ = contents_.getUnmodifiableView(); @@ -146,34 +173,38 @@ private TranslateTextRequest( makeExtensionsImmutable(); } } - 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; private com.google.protobuf.LazyStringList contents_; /** + * + * *
    * Required. The content of the input in string format.
    * We recommend the total content be less than 30k codepoints. The max length
@@ -182,13 +213,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
@@ -197,12 +230,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
@@ -211,6 +247,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. */ @@ -218,6 +255,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
@@ -226,23 +265,26 @@ 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; 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 @@ -251,30 +293,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 { @@ -285,6 +327,8 @@ public java.lang.String getMimeType() { public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER = 4; 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
@@ -294,6 +338,7 @@ public java.lang.String getMimeType() {
    * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceLanguageCode. */ @java.lang.Override @@ -302,14 +347,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
@@ -319,16 +365,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 { @@ -339,12 +384,15 @@ public java.lang.String getSourceLanguageCode() { public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER = 5; 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 @@ -353,30 +401,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 { @@ -387,6 +435,8 @@ public java.lang.String getTargetLanguageCode() { public static final int PARENT_FIELD_NUMBER = 8; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Project or location to make a call. Must refer to a caller's
    * project.
@@ -400,7 +450,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 @@ -409,14 +462,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.
@@ -430,17 +484,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 { @@ -451,6 +506,8 @@ public java.lang.String getParent() { public static final int MODEL_FIELD_NUMBER = 6; private volatile java.lang.Object model_; /** + * + * *
    * Optional. The `model` type requested for this translation.
    * The format depends on model type:
@@ -465,6 +522,7 @@ public java.lang.String getParent() {
    * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The model. */ @java.lang.Override @@ -473,14 +531,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.
    * The format depends on model type:
@@ -495,16 +554,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 { @@ -515,13 +573,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 @@ -529,52 +592,63 @@ 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() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { return getGlossaryConfig(); } 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, + ""); } - 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_; } @@ -583,6 +657,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -594,22 +670,22 @@ 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 java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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.
    * Label keys and values can be no longer than 63 characters
@@ -622,11 +698,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -639,16 +716,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -661,12 +738,11 @@ public 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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -674,6 +750,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -685,8 +762,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));
     }
@@ -708,12 +784,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);
     unknownFields.writeTo(output);
   }
 
@@ -744,21 +816,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -768,32 +839,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -833,139 +897,147 @@ 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() @@ -973,16 +1045,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1009,9 +1080,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 @@ -1030,7 +1101,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); + com.google.cloud.translate.v3beta1.TranslateTextRequest result = + new com.google.cloud.translate.v3beta1.TranslateTextRequest(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { contents_ = contents_.getUnmodifiableView(); @@ -1057,38 +1129,39 @@ public com.google.cloud.translate.v3beta1.TranslateTextRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -1096,7 +1169,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_; @@ -1130,8 +1204,7 @@ public Builder mergeFrom(com.google.cloud.translate.v3beta1.TranslateTextRequest if (other.hasGlossaryConfig()) { mergeGlossaryConfig(other.getGlossaryConfig()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1151,7 +1224,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.translate.v3beta1.TranslateTextRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.translate.v3beta1.TranslateTextRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1160,16 +1234,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList contents_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList contents_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureContentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { contents_ = new com.google.protobuf.LazyStringArrayList(contents_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1178,13 +1257,15 @@ 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() { return contents_.getUnmodifiableView(); } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1193,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 30k codepoints. The max length
@@ -1207,6 +1291,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. */ @@ -1214,6 +1299,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
@@ -1222,14 +1309,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
@@ -1238,21 +1327,23 @@ 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) { + public Builder setContents(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureContentsIsMutable(); + throw new NullPointerException(); + } + ensureContentsIsMutable(); contents_.set(index, value); 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
@@ -1261,20 +1352,22 @@ 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) { + public Builder addContents(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureContentsIsMutable(); + throw new NullPointerException(); + } + ensureContentsIsMutable(); contents_.add(value); 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
@@ -1283,18 +1376,19 @@ 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_); 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
@@ -1303,6 +1397,7 @@ public Builder addAllContents(
      * 
* * repeated string contents = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearContents() { @@ -1312,6 +1407,8 @@ public Builder clearContents() { return this; } /** + * + * *
      * Required. The content of the input in string format.
      * We recommend the total content be less than 30k codepoints. The max length
@@ -1320,15 +1417,15 @@ 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) { + public Builder addContentsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureContentsIsMutable(); contents_.add(value); onChanged(); @@ -1337,19 +1434,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; @@ -1358,21 +1457,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 { @@ -1380,57 +1480,64 @@ 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) { + public Builder setMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mimeType_ = value; 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() { - + mimeType_ = getDefaultInstance().getMimeType(); 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]; + * * @param value The bytes for mimeType to set. * @return This builder for chaining. */ - public Builder setMimeTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; onChanged(); return this; @@ -1438,6 +1545,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
@@ -1447,13 +1556,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; @@ -1462,6 +1571,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
@@ -1471,15 +1582,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 { @@ -1487,6 +1597,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
@@ -1496,20 +1608,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) { + public Builder setSourceLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceLanguageCode_ = value; 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
@@ -1519,15 +1633,18 @@ public Builder setSourceLanguageCode(
      * 
* * string source_language_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSourceLanguageCode() { - + sourceLanguageCode_ = getDefaultInstance().getSourceLanguageCode(); 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
@@ -1537,16 +1654,16 @@ 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) { + public Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguageCode_ = value; onChanged(); return this; @@ -1554,19 +1671,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; @@ -1575,21 +1694,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 { @@ -1597,57 +1717,64 @@ 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) { + public Builder setTargetLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetLanguageCode_ = value; 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() { - + targetLanguageCode_ = getDefaultInstance().getTargetLanguageCode(); 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]; + * * @param value The bytes for targetLanguageCode to set. * @return This builder for chaining. */ - public Builder setTargetLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguageCode_ = value; onChanged(); return this; @@ -1655,6 +1782,8 @@ public Builder setTargetLanguageCodeBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1668,14 +1797,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; @@ -1684,6 +1815,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1697,16 +1830,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 { @@ -1714,6 +1848,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1727,21 +1863,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1755,16 +1895,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Project or location to make a call. Must refer to a caller's
      * project.
@@ -1778,17 +1923,19 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -1796,6 +1943,8 @@ public Builder setParentBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1810,13 +1959,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; @@ -1825,6 +1974,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1839,15 +1990,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 { @@ -1855,6 +2005,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1869,20 +2021,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) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1897,15 +2051,18 @@ public Builder setModel(
      * 
* * string model = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Optional. The `model` type requested for this translation.
      * The format depends on model type:
@@ -1920,16 +2077,16 @@ 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) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; @@ -1937,47 +2094,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 glossaryConfigBuilder_ != null || 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. */ 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(); @@ -1991,13 +2168,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) { @@ -2011,19 +2192,27 @@ 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 (glossaryConfig_ != null) { glossaryConfig_ = - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder( + glossaryConfig_) + .mergeFrom(value) + .buildPartial(); } else { glossaryConfig_ = value; } @@ -2035,13 +2224,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() { if (glossaryConfigBuilder_ == null) { @@ -2055,75 +2248,92 @@ 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() { + 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -2135,6 +2345,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2146,22 +2358,22 @@ 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 java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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.
      * Label keys and values can be no longer than 63 characters
@@ -2174,11 +2386,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2191,16 +2404,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2213,12 +2427,11 @@ public 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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2226,11 +2439,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2242,23 +2456,21 @@ 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 java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2270,16 +2482,19 @@ 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 java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels with user-defined metadata for the request.
      * Label keys and values can be no longer than 63 characters
@@ -2291,16 +2506,13 @@ 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);
       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);
     }
 
@@ -2310,12 +2522,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();
   }
@@ -2324,16 +2536,16 @@ 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 {
-      return new TranslateTextRequest(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new TranslateTextRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2348,6 +2560,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.translate.v3beta1.TranslateTextRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
similarity index 81%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
index f1ff57107..0d83a8e2d 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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.
@@ -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.
@@ -164,13 +212,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.
    * The format depends on model type:
@@ -185,10 +237,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.
    * The format depends on model type:
@@ -203,45 +258,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.
    * Label keys and values can be no longer than 63 characters
@@ -255,6 +327,8 @@ public interface TranslateTextRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -266,15 +340,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.
    * Label keys and values can be no longer than 63 characters
@@ -286,9 +358,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.
    * Label keys and values can be no longer than 63 characters
@@ -300,11 +373,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels with user-defined metadata for the request.
    * Label keys and values can be no longer than 63 characters
@@ -316,7 +388,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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
similarity index 79%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
index 6f36e5f56..b29a71916 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponse.java
@@ -1,20 +1,34 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,16 +36,15 @@ private TranslateTextResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TranslateTextResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TranslateTextResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -51,38 +64,43 @@ private TranslateTextResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              translations_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                translations_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              translations_.add(
+                  input.readMessage(
+                      com.google.cloud.translate.v3beta1.Translation.parser(), extensionRegistry));
+              break;
             }
-            translations_.add(
-                input.readMessage(com.google.cloud.translate.v3beta1.Translation.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              glossaryTranslations_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                glossaryTranslations_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              glossaryTranslations_.add(
+                  input.readMessage(
+                      com.google.cloud.translate.v3beta1.Translation.parser(), extensionRegistry));
+              break;
             }
-            glossaryTranslations_.add(
-                input.readMessage(com.google.cloud.translate.v3beta1.Translation.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         translations_ = java.util.Collections.unmodifiableList(translations_);
@@ -94,22 +112,27 @@ private TranslateTextResponse(
       makeExtensionsImmutable();
     }
   }
-  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;
   private java.util.List translations_;
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -123,6 +146,8 @@ public java.util.List getTransla
     return translations_;
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -132,11 +157,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
@@ -150,6 +177,8 @@ public int getTranslationsCount() {
     return translations_.size();
   }
   /**
+   *
+   *
    * 
    * Text translation responses with no glossary applied.
    * This field has the same length as
@@ -163,6 +192,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
@@ -180,6 +211,8 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
   public static final int GLOSSARY_TRANSLATIONS_FIELD_NUMBER = 3;
   private java.util.List glossaryTranslations_;
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -191,10 +224,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
@@ -206,11 +242,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
@@ -226,6 +264,8 @@ public int getGlossaryTranslationsCount() {
     return glossaryTranslations_.size();
   }
   /**
+   *
+   *
    * 
    * Text translation responses if a glossary is provided in the request.
    * This can be the same as
@@ -241,6 +281,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
@@ -258,6 +300,7 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getGlossaryTransl
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -269,8 +312,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));
     }
@@ -287,12 +329,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -302,17 +343,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -338,113 +378,119 @@ 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()
@@ -452,18 +498,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getTranslationsFieldBuilder();
         getGlossaryTranslationsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -483,9 +529,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
@@ -504,7 +550,8 @@ 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);
       int from_bitField0_ = bitField0_;
       if (translationsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -532,38 +579,39 @@ public com.google.cloud.translate.v3beta1.TranslateTextResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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;
@@ -571,7 +619,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()) {
@@ -590,9 +639,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_);
           }
@@ -616,9 +666,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_);
           }
@@ -643,7 +694,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.translate.v3beta1.TranslateTextResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.translate.v3beta1.TranslateTextResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -652,21 +704,29 @@ public Builder mergeFrom(
       }
       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
@@ -683,6 +743,8 @@ public java.util.List getTransla
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -699,6 +761,8 @@ public int getTranslationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -715,6 +779,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
@@ -738,6 +804,8 @@ public Builder setTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -758,6 +826,8 @@ public Builder setTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -780,6 +850,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
@@ -803,6 +875,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -823,6 +897,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -843,6 +919,8 @@ public Builder addTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -855,8 +933,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);
@@ -864,6 +941,8 @@ public Builder addAllTranslations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -883,6 +962,8 @@ public Builder clearTranslations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -902,6 +983,8 @@ public Builder removeTranslations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -915,6 +998,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
@@ -926,11 +1011,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
@@ -939,8 +1027,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 {
@@ -948,6 +1036,8 @@ public com.google.cloud.translate.v3beta1.TranslationOrBuilder getTranslationsOr
       }
     }
     /**
+     *
+     *
      * 
      * Text translation responses with no glossary applied.
      * This field has the same length as
@@ -957,10 +1047,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
@@ -971,10 +1063,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
@@ -983,38 +1077,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
@@ -1023,9 +1128,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 { @@ -1033,6 +1140,8 @@ public java.util.List getGlossar } } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1041,7 +1150,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) { @@ -1051,6 +1161,8 @@ public int getGlossaryTranslationsCount() { } } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1059,7 +1171,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) { @@ -1069,6 +1182,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
@@ -1077,7 +1192,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) { @@ -1094,6 +1210,8 @@ public Builder setGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1102,7 +1220,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) { @@ -1116,6 +1235,8 @@ public Builder setGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1124,7 +1245,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) { @@ -1140,6 +1262,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
@@ -1148,7 +1272,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) { @@ -1165,6 +1290,8 @@ public Builder addGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1173,7 +1300,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) { @@ -1187,6 +1315,8 @@ public Builder addGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1195,7 +1325,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) { @@ -1209,6 +1340,8 @@ public Builder addGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1217,14 +1350,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); @@ -1232,6 +1365,8 @@ public Builder addAllGlossaryTranslations( return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1240,7 +1375,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) { @@ -1253,6 +1389,8 @@ public Builder clearGlossaryTranslations() { return this; } /** + * + * *
      * Text translation responses if a glossary is provided in the request.
      * This can be the same as
@@ -1261,7 +1399,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) { @@ -1274,6 +1413,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
@@ -1282,13 +1423,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
@@ -1297,16 +1441,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
@@ -1315,10 +1463,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 { @@ -1326,6 +1475,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
@@ -1334,13 +1485,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
@@ -1349,14 +1503,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
@@ -1365,18 +1522,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(), @@ -1385,9 +1549,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); } @@ -1397,12 +1561,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(); } @@ -1411,16 +1575,16 @@ 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 { - return new TranslateTextResponse(input, extensionRegistry); - } - }; + 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 { + return new TranslateTextResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1435,6 +1599,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.TranslateTextResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java similarity index 85% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java index 3fb798bbb..bab76d8f0 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslateTextResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
similarity index 73%
rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
index cde82b75a..599ba4cec 100644
--- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
+++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/Translation.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the 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,16 +45,15 @@ private Translation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Translation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Translation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,72 +72,84 @@ private Translation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - translatedText_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; - } - case 26: { - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder subBuilder = null; - if (glossaryConfig_ != null) { - subBuilder = glossaryConfig_.toBuilder(); + translatedText_ = s; + break; } - glossaryConfig_ = input.readMessage(com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(glossaryConfig_); - glossaryConfig_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + model_ = s; + break; } + case 26: + { + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.Builder subBuilder = + null; + if (glossaryConfig_ != null) { + subBuilder = glossaryConfig_.toBuilder(); + } + glossaryConfig_ = + input.readMessage( + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(glossaryConfig_); + glossaryConfig_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - detectedLanguageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + detectedLanguageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object translatedText_; /** + * + * *
    * Text translated into the target language.
    * If an error occurs during translation, this field might be excluded from
@@ -128,6 +157,7 @@ private Translation(
    * 
* * string translated_text = 1; + * * @return The translatedText. */ @java.lang.Override @@ -136,14 +166,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
@@ -151,16 +182,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 { @@ -171,6 +201,8 @@ public java.lang.String getTranslatedText() { public static final int MODEL_FIELD_NUMBER = 2; private volatile java.lang.Object model_; /** + * + * *
    * Only present when `model` is present in the request.
    * `model` here is normalized to have project number.
@@ -182,6 +214,7 @@ public java.lang.String getTranslatedText() {
    * 
* * string model = 2; + * * @return The model. */ @java.lang.Override @@ -190,14 +223,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.
@@ -209,16 +243,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 { @@ -229,6 +262,8 @@ public java.lang.String getModel() { public static final int DETECTED_LANGUAGE_CODE_FIELD_NUMBER = 4; 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
@@ -237,6 +272,7 @@ public java.lang.String getModel() {
    * 
* * string detected_language_code = 4; + * * @return The detectedLanguageCode. */ @java.lang.Override @@ -245,14 +281,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
@@ -261,16 +298,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 { @@ -281,11 +317,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 @@ -293,18 +332,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.
    * 
@@ -312,11 +358,13 @@ 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() { + public com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfigOrBuilder + getGlossaryConfigOrBuilder() { return getGlossaryConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,8 +376,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_); } @@ -358,8 +405,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_); @@ -372,23 +418,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -416,118 +459,127 @@ 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() @@ -535,16 +587,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -564,9 +615,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 @@ -585,7 +636,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); + com.google.cloud.translate.v3beta1.Translation result = + new com.google.cloud.translate.v3beta1.Translation(this); result.translatedText_ = translatedText_; result.model_ = model_; result.detectedLanguageCode_ = detectedLanguageCode_; @@ -602,38 +654,39 @@ public com.google.cloud.translate.v3beta1.Translation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -688,6 +741,8 @@ public Builder mergeFrom( private java.lang.Object translatedText_ = ""; /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -695,13 +750,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; @@ -710,6 +765,8 @@ public java.lang.String getTranslatedText() { } } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -717,15 +774,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 { @@ -733,6 +789,8 @@ public java.lang.String getTranslatedText() { } } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -740,20 +798,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) { + public Builder setTranslatedText(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + translatedText_ = value; onChanged(); return this; } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -761,15 +821,18 @@ public Builder setTranslatedText(
      * 
* * string translated_text = 1; + * * @return This builder for chaining. */ public Builder clearTranslatedText() { - + translatedText_ = getDefaultInstance().getTranslatedText(); onChanged(); return this; } /** + * + * *
      * Text translated into the target language.
      * If an error occurs during translation, this field might be excluded from
@@ -777,16 +840,16 @@ 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) { + public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + translatedText_ = value; onChanged(); return this; @@ -794,6 +857,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.
@@ -805,13 +870,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; @@ -820,6 +885,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -831,15 +898,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 { @@ -847,6 +913,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -858,20 +926,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) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -883,15 +953,18 @@ public Builder setModel(
      * 
* * string model = 2; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Only present when `model` is present in the request.
      * `model` here is normalized to have project number.
@@ -903,16 +976,16 @@ 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) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; @@ -920,6 +993,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
@@ -928,13 +1003,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; @@ -943,6 +1018,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
@@ -951,15 +1028,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 { @@ -967,6 +1043,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
@@ -975,20 +1053,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) { + public Builder setDetectedLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + detectedLanguageCode_ = value; 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
@@ -997,15 +1077,18 @@ public Builder setDetectedLanguageCode(
      * 
* * string detected_language_code = 4; + * * @return This builder for chaining. */ public Builder clearDetectedLanguageCode() { - + detectedLanguageCode_ = getDefaultInstance().getDetectedLanguageCode(); 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
@@ -1014,16 +1097,16 @@ 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) { + public Builder setDetectedLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detectedLanguageCode_ = value; onChanged(); return this; @@ -1031,41 +1114,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 glossaryConfigBuilder_ != null || glossaryConfig_ != null; } /** + * + * *
      * 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(); @@ -1079,11 +1179,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) { @@ -1097,17 +1200,24 @@ 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 (glossaryConfig_ != null) { glossaryConfig_ = - com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder(glossaryConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.translate.v3beta1.TranslateTextGlossaryConfig.newBuilder( + glossaryConfig_) + .mergeFrom(value) + .buildPartial(); } else { glossaryConfig_ = value; } @@ -1119,11 +1229,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() { if (glossaryConfigBuilder_ == null) { @@ -1137,55 +1250,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() { + 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); } @@ -1195,12 +1323,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(); } @@ -1209,16 +1337,16 @@ 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 { - return new Translation(input, extensionRegistry); - } - }; + 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 { + return new Translation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1233,6 +1361,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.translate.v3beta1.Translation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java similarity index 78% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java rename to proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java index 9a9312e7b..34506d3de 100644 --- a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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.
@@ -43,10 +66,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.
@@ -58,12 +84,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
@@ -72,10 +100,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
@@ -84,35 +115,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/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java new file mode 100644 index 000000000..c5d28b959 --- /dev/null +++ b/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceProto.java @@ -0,0 +1,1024 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the 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\032\027g" + + "oogle/rpc/status.proto\"N\n\033TranslateTextG" + + "lossaryConfig\022\025\n\010glossary\030\001 \001(\tB\003\340A\002\022\030\n\013" + + "ignore_case\030\002 \001(\010B\003\340A\001\"\277\003\n\024TranslateText" + + "Request\022\025\n\010contents\030\001 \003(\tB\003\340A\002\022\026\n\tmime_t" + + "ype\030\003 \001(\tB\003\340A\001\022!\n\024source_language_code\030\004" + + " \001(\tB\003\340A\001\022!\n\024target_language_code\030\005 \001(\tB" + + "\003\340A\002\0229\n\006parent\030\010 \001(\tB)\340A\002\372A#\n!locations." + + "googleapis.com/Location\022\022\n\005model\030\006 \001(\tB\003" + + "\340A\001\022[\n\017glossary_config\030\007 \001(\0132=.google.cl" + + "oud.translation.v3beta1.TranslateTextGlo" + + "ssaryConfigB\003\340A\001\022W\n\006labels\030\n \003(\0132B.googl" + + "e.cloud.translation.v3beta1.TranslateTex" + + "tRequest.LabelsEntryB\003\340A\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\025Tra" + + "nslateTextResponse\022C\n\014translations\030\001 \003(\013" + + "2-.google.cloud.translation.v3beta1.Tran" + + "slation\022L\n\025glossary_translations\030\003 \003(\0132-" + + ".google.cloud.translation.v3beta1.Transl" + + "ation\"\255\001\n\013Translation\022\027\n\017translated_text" + + "\030\001 \001(\t\022\r\n\005model\030\002 \001(\t\022\036\n\026detected_langua" + + "ge_code\030\004 \001(\t\022V\n\017glossary_config\030\003 \001(\0132=" + + ".google.cloud.translation.v3beta1.Transl" + + "ateTextGlossaryConfig\"\244\002\n\025DetectLanguage" + + "Request\0229\n\006parent\030\005 \001(\tB)\340A\002\372A#\n!locatio" + + "ns.googleapis.com/Location\022\022\n\005model\030\004 \001(" + + "\tB\003\340A\001\022\021\n\007content\030\001 \001(\tH\000\022\026\n\tmime_type\030\003" + + " \001(\tB\003\340A\001\022X\n\006labels\030\006 \003(\0132C.google.cloud" + + ".translation.v3beta1.DetectLanguageReque" + + "st.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006source\"=\n\020" + + "DetectedLanguage\022\025\n\rlanguage_code\030\001 \001(\t\022" + + "\022\n\nconfidence\030\002 \001(\002\"_\n\026DetectLanguageRes" + + "ponse\022E\n\tlanguages\030\001 \003(\01322.google.cloud." + + "translation.v3beta1.DetectedLanguage\"\221\001\n" + + "\034GetSupportedLanguagesRequest\0229\n\006parent\030" + + "\003 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + + "Location\022\"\n\025display_language_code\030\001 \001(\tB" + + "\003\340A\001\022\022\n\005model\030\002 \001(\tB\003\340A\001\"\\\n\022SupportedLan" + + "guages\022F\n\tlanguages\030\001 \003(\01323.google.cloud" + + ".translation.v3beta1.SupportedLanguage\"p" + + "\n\021SupportedLanguage\022\025\n\rlanguage_code\030\001 \001" + + "(\t\022\024\n\014display_name\030\002 \001(\t\022\026\n\016support_sour" + + "ce\030\003 \001(\010\022\026\n\016support_target\030\004 \001(\010\"#\n\tGcsS" + + "ource\022\026\n\tinput_uri\030\001 \001(\tB\003\340A\002\"r\n\013InputCo" + + "nfig\022\026\n\tmime_type\030\001 \001(\tB\003\340A\001\022A\n\ngcs_sour" + + "ce\030\002 \001(\0132+.google.cloud.translation.v3be" + + "ta1.GcsSourceH\000B\010\n\006source\"0\n\016GcsDestinat" + + "ion\022\036\n\021output_uri_prefix\030\001 \001(\tB\003\340A\002\"j\n\014O" + + "utputConfig\022K\n\017gcs_destination\030\001 \001(\01320.g" + + "oogle.cloud.translation.v3beta1.GcsDesti" + + "nationH\000B\r\n\013destination\"\210\001\n\023DocumentInpu" + + "tConfig\022\021\n\007content\030\001 \001(\014H\000\022A\n\ngcs_source" + + "\030\002 \001(\0132+.google.cloud.translation.v3beta" + + "1.GcsSourceH\000\022\021\n\tmime_type\030\004 \001(\tB\010\n\006sour" + + "ce\"\217\001\n\024DocumentOutputConfig\022P\n\017gcs_desti" + + "nation\030\001 \001(\01320.google.cloud.translation." + + "v3beta1.GcsDestinationB\003\340A\001H\000\022\026\n\tmime_ty" + + "pe\030\003 \001(\tB\003\340A\001B\r\n\013destination\"\252\004\n\030Transla" + + "teDocumentRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022!" + + "\n\024source_language_code\030\002 \001(\tB\003\340A\001\022!\n\024tar" + + "get_language_code\030\003 \001(\tB\003\340A\002\022Y\n\025document" + + "_input_config\030\004 \001(\01325.google.cloud.trans" + + "lation.v3beta1.DocumentInputConfigB\003\340A\002\022" + + "[\n\026document_output_config\030\005 \001(\01326.google" + + ".cloud.translation.v3beta1.DocumentOutpu" + + "tConfigB\003\340A\001\022\022\n\005model\030\006 \001(\tB\003\340A\001\022[\n\017glos" + + "sary_config\030\007 \001(\0132=.google.cloud.transla" + + "tion.v3beta1.TranslateTextGlossaryConfig" + + "B\003\340A\001\022[\n\006labels\030\010 \003(\0132F.google.cloud.tra" + + "nslation.v3beta1.TranslateDocumentReques" + + "t.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"e\n\023DocumentTra" + + "nslation\022\033\n\023byte_stream_outputs\030\001 \003(\014\022\021\n" + + "\tmime_type\030\002 \001(\t\022\036\n\026detected_language_co" + + "de\030\003 \001(\t\"\265\002\n\031TranslateDocumentResponse\022S" + + "\n\024document_translation\030\001 \001(\01325.google.cl" + + "oud.translation.v3beta1.DocumentTranslat" + + "ion\022\\\n\035glossary_document_translation\030\002 \001" + + "(\01325.google.cloud.translation.v3beta1.Do" + + "cumentTranslation\022\r\n\005model\030\003 \001(\t\022V\n\017glos" + + "sary_config\030\004 \001(\0132=.google.cloud.transla" + + "tion.v3beta1.TranslateTextGlossaryConfig" + + "\"\246\006\n\031BatchTranslateTextRequest\0229\n\006parent" + + "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" + + "/Location\022!\n\024source_language_code\030\002 \001(\tB" + + "\003\340A\002\022\"\n\025target_language_codes\030\003 \003(\tB\003\340A\002" + + "\022\\\n\006models\030\004 \003(\0132G.google.cloud.translat" + + "ion.v3beta1.BatchTranslateTextRequest.Mo" + + "delsEntryB\003\340A\001\022I\n\rinput_configs\030\005 \003(\0132-." + + "google.cloud.translation.v3beta1.InputCo" + + "nfigB\003\340A\002\022J\n\routput_config\030\006 \001(\0132..googl" + + "e.cloud.translation.v3beta1.OutputConfig" + + "B\003\340A\002\022d\n\nglossaries\030\007 \003(\0132K.google.cloud" + + ".translation.v3beta1.BatchTranslateTextR" + + "equest.GlossariesEntryB\003\340A\001\022\\\n\006labels\030\t " + + "\003(\0132G.google.cloud.translation.v3beta1.B" + + "atchTranslateTextRequest.LabelsEntryB\003\340A" + + "\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.cloud.translati" + + "on.v3beta1.TranslateTextGlossaryConfig:\002" + + "8\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\026BatchTranslateMetadata\022M\n\005" + + "state\030\001 \001(\0162>.google.cloud.translation.v" + + "3beta1.BatchTranslateMetadata.State\022\035\n\025t" + + "ranslated_characters\030\002 \001(\003\022\031\n\021failed_cha" + + "racters\030\003 \001(\003\022\030\n\020total_characters\030\004 \001(\003\022" + + "/\n\013submit_time\030\005 \001(\0132\032.google.protobuf.T" + + "imestamp\"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\tCANCELLED\020\005\"\313\001\n\026Batc" + + "hTranslateResponse\022\030\n\020total_characters\030\001" + + " \001(\003\022\035\n\025translated_characters\030\002 \001(\003\022\031\n\021f" + + "ailed_characters\030\003 \001(\003\022/\n\013submit_time\030\004 " + + "\001(\0132\032.google.protobuf.Timestamp\022,\n\010end_t" + + "ime\030\005 \001(\0132\032.google.protobuf.Timestamp\"b\n" + + "\023GlossaryInputConfig\022A\n\ngcs_source\030\001 \001(\013" + + "2+.google.cloud.translation.v3beta1.GcsS" + + "ourceH\000B\010\n\006source\"\216\005\n\010Glossary\022\021\n\004name\030\001" + + " \001(\tB\003\340A\002\022T\n\rlanguage_pair\030\003 \001(\0132;.googl" + + "e.cloud.translation.v3beta1.Glossary.Lan" + + "guageCodePairH\000\022Y\n\022language_codes_set\030\004 " + + "\001(\0132;.google.cloud.translation.v3beta1.G" + + "lossary.LanguageCodesSetH\000\022K\n\014input_conf" + + "ig\030\005 \001(\01325.google.cloud.translation.v3be" + + "ta1.GlossaryInputConfig\022\030\n\013entry_count\030\006" + + " \001(\005B\003\340A\003\0224\n\013submit_time\030\007 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\010 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\032N\n\020La" + + "nguageCodePair\022\034\n\024source_language_code\030\001" + + " \001(\t\022\034\n\024target_language_code\030\002 \001(\t\032*\n\020La" + + "nguageCodesSet\022\026\n\016language_codes\030\001 \003(\t:e" + + "\352Ab\n!translate.googleapis.com/Glossary\022=" + + "projects/{project}/locations/{location}/" + + "glossaries/{glossary}B\013\n\tlanguages\"\225\001\n\025C" + + "reateGlossaryRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "A\n\010glossary\030\002 \001(\0132*.google.cloud.transla" + + "tion.v3beta1.GlossaryB\003\340A\002\"M\n\022GetGlossar" + + "yRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!translat" + + "e.googleapis.com/Glossary\"P\n\025DeleteGloss" + + "aryRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!transl" + + "ate.googleapis.com/Glossary\"\230\001\n\025ListGlos" + + "sariesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!l" + + "ocations.googleapis.com/Location\022\026\n\tpage" + + "_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A" + + "\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"q\n\026ListGlossaries" + + "Response\022>\n\nglossaries\030\001 \003(\0132*.google.cl" + + "oud.translation.v3beta1.Glossary\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\215\002\n\026CreateGlossaryMeta" + + "data\022\014\n\004name\030\001 \001(\t\022M\n\005state\030\002 \001(\0162>.goog" + + "le.cloud.translation.v3beta1.CreateGloss" + + "aryMetadata.State\022/\n\013submit_time\030\003 \001(\0132\032" + + ".google.protobuf.Timestamp\"e\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCE" + + "EDED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCA" + + "NCELLED\020\005\"\215\002\n\026DeleteGlossaryMetadata\022\014\n\004" + + "name\030\001 \001(\t\022M\n\005state\030\002 \001(\0162>.google.cloud" + + ".translation.v3beta1.DeleteGlossaryMetad" + + "ata.State\022/\n\013submit_time\030\003 \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" + + "\005\"\205\001\n\026DeleteGlossaryResponse\022\014\n\004name\030\001 \001" + + "(\t\022/\n\013submit_time\030\002 \001(\0132\032.google.protobu" + + "f.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.google.p" + + "rotobuf.Timestamp\"\362\006\n\035BatchTranslateDocu" + + "mentRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loc" + + "ations.googleapis.com/Location\022!\n\024source" + + "_language_code\030\002 \001(\tB\003\340A\002\022\"\n\025target_lang" + + "uage_codes\030\003 \003(\tB\003\340A\002\022V\n\rinput_configs\030\004" + + " \003(\0132:.google.cloud.translation.v3beta1." + + "BatchDocumentInputConfigB\003\340A\002\022W\n\routput_" + + "config\030\005 \001(\0132;.google.cloud.translation." + + "v3beta1.BatchDocumentOutputConfigB\003\340A\002\022`" + + "\n\006models\030\006 \003(\0132K.google.cloud.translatio" + + "n.v3beta1.BatchTranslateDocumentRequest." + + "ModelsEntryB\003\340A\001\022h\n\nglossaries\030\007 \003(\0132O.g" + + "oogle.cloud.translation.v3beta1.BatchTra" + + "nslateDocumentRequest.GlossariesEntryB\003\340" + + "A\001\022w\n\022format_conversions\030\010 \003(\0132V.google." + + "cloud.translation.v3beta1.BatchTranslate" + + "DocumentRequest.FormatConversionsEntryB\003" + + "\340A\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.cloud.transla" + + "tion.v3beta1.TranslateTextGlossaryConfig" + + ":\0028\001\0328\n\026FormatConversionsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"g\n\030BatchDocumentI" + + "nputConfig\022A\n\ngcs_source\030\001 \001(\0132+.google." + + "cloud.translation.v3beta1.GcsSourceH\000B\010\n" + + "\006source\"w\n\031BatchDocumentOutputConfig\022K\n\017" + + "gcs_destination\030\001 \001(\01320.google.cloud.tra" + + "nslation.v3beta1.GcsDestinationH\000B\r\n\013des" + + "tination\"\331\002\n\036BatchTranslateDocumentRespo" + + "nse\022\023\n\013total_pages\030\001 \001(\003\022\030\n\020translated_p" + + "ages\030\002 \001(\003\022\024\n\014failed_pages\030\003 \001(\003\022\034\n\024tota" + + "l_billable_pages\030\004 \001(\003\022\030\n\020total_characte" + + "rs\030\005 \001(\003\022\035\n\025translated_characters\030\006 \001(\003\022" + + "\031\n\021failed_characters\030\007 \001(\003\022!\n\031total_bill" + + "able_characters\030\010 \001(\003\022/\n\013submit_time\030\t \001" + + "(\0132\032.google.protobuf.Timestamp\022,\n\010end_ti" + + "me\030\n \001(\0132\032.google.protobuf.Timestamp\"\351\003\n" + + "\036BatchTranslateDocumentMetadata\022U\n\005state" + + "\030\001 \001(\0162F.google.cloud.translation.v3beta" + + "1.BatchTranslateDocumentMetadata.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_bil" + + "lable_pages\030\005 \001(\003\022\030\n\020total_characters\030\006 " + + "\001(\003\022\035\n\025translated_characters\030\007 \001(\003\022\031\n\021fa" + + "iled_characters\030\010 \001(\003\022!\n\031total_billable_" + + "characters\030\t \001(\003\022/\n\013submit_time\030\n \001(\0132\032." + + "google.protobuf.Timestamp\"e\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEE" + + "DED\020\002\022\n\n\006FAILED\020\003\022\016\n\nCANCELLING\020\004\022\r\n\tCAN" + + "CELLED\020\0052\302\024\n\022TranslationService\022\364\001\n\rTran" + + "slateText\0226.google.cloud.translation.v3b" + + "eta1.TranslateTextRequest\0327.google.cloud" + + ".translation.v3beta1.TranslateTextRespon" + + "se\"r\202\323\344\223\002l\"6/v3beta1/{parent=projects/*/" + + "locations/*}:translateText:\001*Z/\"*/v3beta" + + "1/{parent=projects/*}:translateText:\001*\022\223" + + "\002\n\016DetectLanguage\0227.google.cloud.transla" + + "tion.v3beta1.DetectLanguageRequest\0328.goo" + + "gle.cloud.translation.v3beta1.DetectLang" + + "uageResponse\"\215\001\202\323\344\223\002n\"7/v3beta1/{parent=" + + "projects/*/locations/*}:detectLanguage:\001" + + "*Z0\"+/v3beta1/{parent=projects/*}:detect" + + "Language:\001*\332A\026parent,model,mime_type\022\253\002\n" + + "\025GetSupportedLanguages\022>.google.cloud.tr" + + "anslation.v3beta1.GetSupportedLanguagesR" + + "equest\0324.google.cloud.translation.v3beta" + + "1.SupportedLanguages\"\233\001\202\323\344\223\002p\022;/v3beta1/" + + "{parent=projects/*/locations/*}/supporte" + + "dLanguagesZ1\022//v3beta1/{parent=projects/" + + "*}/supportedLanguages\332A\"parent,display_l" + + "anguage_code,model\022\323\001\n\021TranslateDocument" + + "\022:.google.cloud.translation.v3beta1.Tran" + + "slateDocumentRequest\032;.google.cloud.tran" + + "slation.v3beta1.TranslateDocumentRespons" + + "e\"E\202\323\344\223\002?\":/v3beta1/{parent=projects/*/l" + + "ocations/*}:translateDocument:\001*\022\353\001\n\022Bat" + + "chTranslateText\022;.google.cloud.translati" + + "on.v3beta1.BatchTranslateTextRequest\032\035.g" + + "oogle.longrunning.Operation\"y\202\323\344\223\002@\";/v3" + + "beta1/{parent=projects/*/locations/*}:ba" + + "tchTranslateText:\001*\312A0\n\026BatchTranslateRe" + + "sponse\022\026BatchTranslateMetadata\022\330\002\n\026Batch" + + "TranslateDocument\022?.google.cloud.transla" + + "tion.v3beta1.BatchTranslateDocumentReque" + + "st\032\035.google.longrunning.Operation\"\335\001\202\323\344\223" + + "\002D\"?/v3beta1/{parent=projects/*/location" + + "s/*}:batchTranslateDocument:\001*\332AMparent," + + "source_language_code,target_language_cod" + + "es,input_configs,output_config\312A@\n\036Batch" + + "TranslateDocumentResponse\022\036BatchTranslat" + + "eDocumentMetadata\022\346\001\n\016CreateGlossary\0227.g" + + "oogle.cloud.translation.v3beta1.CreateGl" + + "ossaryRequest\032\035.google.longrunning.Opera" + + "tion\"|\202\323\344\223\002?\"3/v3beta1/{parent=projects/" + + "*/locations/*}/glossaries:\010glossary\332A\017pa" + + "rent,glossary\312A\"\n\010Glossary\022\026CreateGlossa" + + "ryMetadata\022\320\001\n\016ListGlossaries\0227.google.c" + + "loud.translation.v3beta1.ListGlossariesR" + + "equest\0328.google.cloud.translation.v3beta" + + "1.ListGlossariesResponse\"K\202\323\344\223\0025\0223/v3bet" + + "a1/{parent=projects/*/locations/*}/gloss" + + "aries\332A\rparent,filter\022\263\001\n\013GetGlossary\0224." + + "google.cloud.translation.v3beta1.GetGlos" + + "saryRequest\032*.google.cloud.translation.v" + + "3beta1.Glossary\"B\202\323\344\223\0025\0223/v3beta1/{name=" + + "projects/*/locations/*/glossaries/*}\332A\004n" + + "ame\022\337\001\n\016DeleteGlossary\0227.google.cloud.tr" + + "anslation.v3beta1.DeleteGlossaryRequest\032" + + "\035.google.longrunning.Operation\"u\202\323\344\223\0025*3" + + "/v3beta1/{name=projects/*/locations/*/gl" + + "ossaries/*}\332A\004name\312A0\n\026DeleteGlossaryRes" + + "ponse\022\026DeleteGlossaryMetadata\032~\312A\030transl" + + "ate.googleapis.com\322A`https://www.googlea" + + "pis.com/auth/cloud-platform,https://www." + + "googleapis.com/auth/cloud-translationB\361\001" + + "\n\"com.google.cloud.translate.v3beta1B\027Tr" + + "anslationServiceProtoP\001ZGgoogle.golang.o" + + "rg/genproto/googleapis/cloud/translate/v" + + "3beta1;translate\370\001\001\252\002\036Google.Cloud.Trans" + + "late.V3Beta1\312\002\036Google\\Cloud\\Translate\\V3" + + "beta1\352\002!Google::Cloud::Translate::V3beta" + + "1b\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(), + com.google.rpc.StatusProto.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(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/location/locations.proto b/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/location/locations.proto similarity index 100% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/location/locations.proto rename to proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/location/locations.proto diff --git a/owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto b/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto similarity index 100% rename from owl-bot-staging/v3beta1/proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto rename to proto-google-cloud-translate-v3beta1/src/main/proto/google/cloud/translate/v3beta1/translation_service.proto