From 11030247338ceb6e43c9acefadb4bc38d3e84164 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 22 Dec 2021 07:50:12 +0000 Subject: [PATCH 1/2] docs: update comments for ListVoicesRequest PiperOrigin-RevId: 417752787 Source-Link: https://github.com/googleapis/googleapis/commit/3e584174cda84c9f853318b9ac95e5037eaedd5b Source-Link: https://github.com/googleapis/googleapis-gen/commit/e9ad9d638600638a00b072ffa8d418a7898f2d46 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTlhZDlkNjM4NjAwNjM4YTAwYjA3MmZmYThkNDE4YTc4OThmMmQ0NiJ9 --- .../texttospeech/v1/TextToSpeechGrpc.java | 485 --------- .../v1beta1/TextToSpeechGrpc.java | 486 --------- .../texttospeech/v1/TextToSpeechClient.java | 6 +- .../texttospeech/v1/TextToSpeechSettings.java | 7 +- .../cloud/texttospeech/v1/gapic_metadata.json | 0 .../cloud/texttospeech/v1/package-info.java | 0 .../stub/GrpcTextToSpeechCallableFactory.java | 0 .../v1/stub/GrpcTextToSpeechStub.java | 0 .../v1/stub/TextToSpeechStub.java | 0 .../v1/stub/TextToSpeechStubSettings.java | 6 +- .../texttospeech/v1/MockTextToSpeech.java | 0 .../texttospeech/v1/MockTextToSpeechImpl.java | 0 .../v1/TextToSpeechClientTest.java | 0 .../texttospeech/v1/TextToSpeechGrpc.java | 393 +++++++ .../cloud/texttospeech/v1/AudioConfig.java | 676 +++++------- .../texttospeech/v1/AudioConfigOrBuilder.java | 90 +- .../cloud/texttospeech/v1/AudioEncoding.java | 103 +- .../texttospeech/v1/ListVoicesRequest.java | 311 +++--- .../v1/ListVoicesRequestOrBuilder.java | 27 +- .../texttospeech/v1/ListVoicesResponse.java | 380 +++---- .../v1/ListVoicesResponseOrBuilder.java | 36 +- .../texttospeech/v1/SsmlVoiceGender.java | 89 +- .../cloud/texttospeech/v1/SynthesisInput.java | 460 ++++---- .../v1/SynthesisInputOrBuilder.java | 42 +- .../v1/SynthesizeSpeechRequest.java | 679 ++++-------- .../v1/SynthesizeSpeechRequestOrBuilder.java | 78 +- .../v1/SynthesizeSpeechResponse.java | 271 ++--- .../v1/SynthesizeSpeechResponseOrBuilder.java | 21 +- .../texttospeech/v1/TextToSpeechProto.java | 194 ++++ .../google/cloud/texttospeech/v1/Voice.java | 507 ++++----- .../cloud/texttospeech/v1/VoiceOrBuilder.java | 54 +- .../texttospeech/v1/VoiceSelectionParams.java | 461 ++++---- .../v1/VoiceSelectionParamsOrBuilder.java | 42 +- .../cloud/texttospeech/v1/cloud_tts.proto | 0 .../v1beta1/TextToSpeechClient.java | 14 +- .../v1beta1/TextToSpeechSettings.java | 7 +- .../texttospeech/v1beta1/gapic_metadata.json | 0 .../texttospeech/v1beta1/package-info.java | 0 .../stub/GrpcTextToSpeechCallableFactory.java | 0 .../v1beta1/stub/GrpcTextToSpeechStub.java | 0 .../v1beta1/stub/TextToSpeechStub.java | 0 .../stub/TextToSpeechStubSettings.java | 6 +- .../v1beta1/MockTextToSpeech.java | 0 .../v1beta1/MockTextToSpeechImpl.java | 0 .../v1beta1/TextToSpeechClientTest.java | 0 .../v1beta1/TextToSpeechGrpc.java | 393 +++++++ .../texttospeech/v1beta1/AudioConfig.java | 696 +++++-------- .../v1beta1/AudioConfigOrBuilder.java | 90 +- .../texttospeech/v1beta1/AudioEncoding.java | 114 +- .../v1beta1/CustomVoiceParams.java | 520 ++++------ .../v1beta1/CustomVoiceParamsOrBuilder.java | 48 + .../v1beta1/ListVoicesRequest.java | 377 +++---- .../v1beta1/ListVoicesRequestOrBuilder.java | 43 + .../v1beta1/ListVoicesResponse.java | 384 +++---- .../v1beta1/ListVoicesResponseOrBuilder.java | 36 +- .../texttospeech/v1beta1/SsmlVoiceGender.java | 93 +- .../texttospeech/v1beta1/SynthesisInput.java | 467 ++++----- .../v1beta1/SynthesisInputOrBuilder.java | 42 +- .../v1beta1/SynthesizeSpeechRequest.java | 982 ++++++------------ .../SynthesizeSpeechRequestOrBuilder.java | 122 +-- .../v1beta1/SynthesizeSpeechResponse.java | 532 ++++------ .../SynthesizeSpeechResponseOrBuilder.java | 47 +- .../v1beta1/TextToSpeechProto.java | 237 +++++ .../cloud/texttospeech/v1beta1/Timepoint.java | 344 +++--- .../v1beta1/TimepointOrBuilder.java | 30 +- .../cloud/texttospeech/v1beta1/Voice.java | 518 ++++----- .../texttospeech/v1beta1/VoiceOrBuilder.java | 54 +- .../v1beta1/VoiceSelectionParams.java | 570 ++++------ .../VoiceSelectionParamsOrBuilder.java | 50 +- .../texttospeech/v1beta1/cloud_tts.proto | 9 +- .../texttospeech/v1/TextToSpeechProto.java | 221 ---- .../v1beta1/CustomVoiceParamsOrBuilder.java | 83 -- .../v1beta1/ListVoicesRequestOrBuilder.java | 66 -- .../v1beta1/TextToSpeechProto.java | 266 ----- 74 files changed, 5035 insertions(+), 8330 deletions(-) delete mode 100644 grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java delete mode 100644 grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java rename {google-cloud-texttospeech => owl-bot-staging/v1/google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java (97%) rename {google-cloud-texttospeech => owl-bot-staging/v1/google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java (95%) rename {google-cloud-texttospeech => owl-bot-staging/v1/google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1/gapic_metadata.json (100%) rename {google-cloud-texttospeech => owl-bot-staging/v1/google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1/package-info.java (100%) rename {google-cloud-texttospeech => owl-bot-staging/v1/google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechCallableFactory.java (100%) rename {google-cloud-texttospeech => owl-bot-staging/v1/google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechStub.java (100%) rename {google-cloud-texttospeech => owl-bot-staging/v1/google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStub.java (100%) rename {google-cloud-texttospeech => owl-bot-staging/v1/google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java (97%) rename {google-cloud-texttospeech => owl-bot-staging/v1/google-cloud-texttospeech}/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeech.java (100%) rename {google-cloud-texttospeech => owl-bot-staging/v1/google-cloud-texttospeech}/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeechImpl.java (100%) rename {google-cloud-texttospeech => owl-bot-staging/v1/google-cloud-texttospeech}/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechClientTest.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java (69%) rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java (67%) rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java (75%) rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java (73%) rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java (70%) rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponse.java (72%) rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponseOrBuilder.java (60%) rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/SsmlVoiceGender.java (71%) rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java (72%) rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java (71%) rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java (60%) rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java (50%) rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java (69%) rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java (54%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/Voice.java (73%) rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/VoiceOrBuilder.java (75%) rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java (76%) rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java (82%) rename {proto-google-cloud-texttospeech-v1 => owl-bot-staging/v1/proto-google-cloud-texttospeech-v1}/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto (100%) rename {google-cloud-texttospeech => owl-bot-staging/v1beta1/google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java (95%) rename {google-cloud-texttospeech => owl-bot-staging/v1beta1/google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java (95%) rename {google-cloud-texttospeech => owl-bot-staging/v1beta1/google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1beta1/gapic_metadata.json (100%) rename {google-cloud-texttospeech => owl-bot-staging/v1beta1/google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java (100%) rename {google-cloud-texttospeech => owl-bot-staging/v1beta1/google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechCallableFactory.java (100%) rename {google-cloud-texttospeech => owl-bot-staging/v1beta1/google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechStub.java (100%) rename {google-cloud-texttospeech => owl-bot-staging/v1beta1/google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStub.java (100%) rename {google-cloud-texttospeech => owl-bot-staging/v1beta1/google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java (97%) rename {google-cloud-texttospeech => owl-bot-staging/v1beta1/google-cloud-texttospeech}/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeech.java (100%) rename {google-cloud-texttospeech => owl-bot-staging/v1beta1/google-cloud-texttospeech}/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeechImpl.java (100%) rename {google-cloud-texttospeech => owl-bot-staging/v1beta1/google-cloud-texttospeech}/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClientTest.java (100%) create mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java (70%) rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java (67%) rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java (74%) rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponse.java (73%) rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponseOrBuilder.java (61%) rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/SsmlVoiceGender.java (70%) rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java (73%) rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java (71%) rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java (61%) rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java (51%) rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java (75%) rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java (80%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/Timepoint.java (70%) rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/TimepointOrBuilder.java (55%) rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/Voice.java (73%) rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceOrBuilder.java (75%) rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java (76%) rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java (85%) rename {proto-google-cloud-texttospeech-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1}/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto (97%) delete mode 100644 proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java delete mode 100644 proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java delete mode 100644 proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java delete mode 100644 proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java diff --git a/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java b/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java deleted file mode 100644 index cc5fdb26..00000000 --- a/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java +++ /dev/null @@ -1,485 +0,0 @@ -/* - * 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.texttospeech.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service that implements Google Cloud Text-to-Speech API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/texttospeech/v1/cloud_tts.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TextToSpeechGrpc { - - private TextToSpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.texttospeech.v1.TextToSpeech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.texttospeech.v1.ListVoicesRequest, - com.google.cloud.texttospeech.v1.ListVoicesResponse> - getListVoicesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVoices", - requestType = com.google.cloud.texttospeech.v1.ListVoicesRequest.class, - responseType = com.google.cloud.texttospeech.v1.ListVoicesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.texttospeech.v1.ListVoicesRequest, - com.google.cloud.texttospeech.v1.ListVoicesResponse> - getListVoicesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.texttospeech.v1.ListVoicesRequest, - com.google.cloud.texttospeech.v1.ListVoicesResponse> - getListVoicesMethod; - if ((getListVoicesMethod = TextToSpeechGrpc.getListVoicesMethod) == null) { - synchronized (TextToSpeechGrpc.class) { - if ((getListVoicesMethod = TextToSpeechGrpc.getListVoicesMethod) == null) { - TextToSpeechGrpc.getListVoicesMethod = - getListVoicesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVoices")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.texttospeech.v1.ListVoicesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.texttospeech.v1.ListVoicesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new TextToSpeechMethodDescriptorSupplier("ListVoices")) - .build(); - } - } - } - return getListVoicesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest, - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse> - getSynthesizeSpeechMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SynthesizeSpeech", - requestType = com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.class, - responseType = com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest, - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse> - getSynthesizeSpeechMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest, - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse> - getSynthesizeSpeechMethod; - if ((getSynthesizeSpeechMethod = TextToSpeechGrpc.getSynthesizeSpeechMethod) == null) { - synchronized (TextToSpeechGrpc.class) { - if ((getSynthesizeSpeechMethod = TextToSpeechGrpc.getSynthesizeSpeechMethod) == null) { - TextToSpeechGrpc.getSynthesizeSpeechMethod = - getSynthesizeSpeechMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SynthesizeSpeech")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TextToSpeechMethodDescriptorSupplier("SynthesizeSpeech")) - .build(); - } - } - } - return getSynthesizeSpeechMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static TextToSpeechStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TextToSpeechStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechStub(channel, callOptions); - } - }; - return TextToSpeechStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TextToSpeechBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TextToSpeechBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechBlockingStub(channel, callOptions); - } - }; - return TextToSpeechBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static TextToSpeechFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TextToSpeechFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechFutureStub(channel, callOptions); - } - }; - return TextToSpeechFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service that implements Google Cloud Text-to-Speech API.
-   * 
- */ - public abstract static class TextToSpeechImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns a list of Voice supported for synthesis.
-     * 
- */ - public void listVoices( - com.google.cloud.texttospeech.v1.ListVoicesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVoicesMethod(), responseObserver); - } - - /** - * - * - *
-     * Synthesizes speech synchronously: receive results after all text input
-     * has been processed.
-     * 
- */ - public void synthesizeSpeech( - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSynthesizeSpeechMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListVoicesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.texttospeech.v1.ListVoicesRequest, - com.google.cloud.texttospeech.v1.ListVoicesResponse>( - this, METHODID_LIST_VOICES))) - .addMethod( - getSynthesizeSpeechMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest, - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse>( - this, METHODID_SYNTHESIZE_SPEECH))) - .build(); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Text-to-Speech API.
-   * 
- */ - public static final class TextToSpeechStub - extends io.grpc.stub.AbstractAsyncStub { - private TextToSpeechStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TextToSpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a list of Voice supported for synthesis.
-     * 
- */ - public void listVoices( - com.google.cloud.texttospeech.v1.ListVoicesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVoicesMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Synthesizes speech synchronously: receive results after all text input
-     * has been processed.
-     * 
- */ - public void synthesizeSpeech( - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSynthesizeSpeechMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Text-to-Speech API.
-   * 
- */ - public static final class TextToSpeechBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private TextToSpeechBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TextToSpeechBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a list of Voice supported for synthesis.
-     * 
- */ - public com.google.cloud.texttospeech.v1.ListVoicesResponse listVoices( - com.google.cloud.texttospeech.v1.ListVoicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVoicesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Synthesizes speech synchronously: receive results after all text input
-     * has been processed.
-     * 
- */ - public com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse synthesizeSpeech( - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSynthesizeSpeechMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Text-to-Speech API.
-   * 
- */ - public static final class TextToSpeechFutureStub - extends io.grpc.stub.AbstractFutureStub { - private TextToSpeechFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TextToSpeechFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a list of Voice supported for synthesis.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.texttospeech.v1.ListVoicesResponse> - listVoices(com.google.cloud.texttospeech.v1.ListVoicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListVoicesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Synthesizes speech synchronously: receive results after all text input
-     * has been processed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse> - synthesizeSpeech(com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSynthesizeSpeechMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_VOICES = 0; - private static final int METHODID_SYNTHESIZE_SPEECH = 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 TextToSpeechImplBase serviceImpl; - private final int methodId; - - MethodHandlers(TextToSpeechImplBase 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_VOICES: - serviceImpl.listVoices( - (com.google.cloud.texttospeech.v1.ListVoicesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_SYNTHESIZE_SPEECH: - serviceImpl.synthesizeSpeech( - (com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse>) - 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 TextToSpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TextToSpeechBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TextToSpeech"); - } - } - - private static final class TextToSpeechFileDescriptorSupplier - extends TextToSpeechBaseDescriptorSupplier { - TextToSpeechFileDescriptorSupplier() {} - } - - private static final class TextToSpeechMethodDescriptorSupplier - extends TextToSpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TextToSpeechMethodDescriptorSupplier(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 (TextToSpeechGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TextToSpeechFileDescriptorSupplier()) - .addMethod(getListVoicesMethod()) - .addMethod(getSynthesizeSpeechMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java b/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java deleted file mode 100644 index 3a211b42..00000000 --- a/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java +++ /dev/null @@ -1,486 +0,0 @@ -/* - * 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.texttospeech.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service that implements Google Cloud Text-to-Speech API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/texttospeech/v1beta1/cloud_tts.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TextToSpeechGrpc { - - private TextToSpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.texttospeech.v1beta1.TextToSpeech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest, - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse> - getListVoicesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVoices", - requestType = com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.class, - responseType = com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest, - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse> - getListVoicesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest, - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse> - getListVoicesMethod; - if ((getListVoicesMethod = TextToSpeechGrpc.getListVoicesMethod) == null) { - synchronized (TextToSpeechGrpc.class) { - if ((getListVoicesMethod = TextToSpeechGrpc.getListVoicesMethod) == null) { - TextToSpeechGrpc.getListVoicesMethod = - getListVoicesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVoices")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new TextToSpeechMethodDescriptorSupplier("ListVoices")) - .build(); - } - } - } - return getListVoicesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest, - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse> - getSynthesizeSpeechMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SynthesizeSpeech", - requestType = com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.class, - responseType = com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest, - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse> - getSynthesizeSpeechMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest, - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse> - getSynthesizeSpeechMethod; - if ((getSynthesizeSpeechMethod = TextToSpeechGrpc.getSynthesizeSpeechMethod) == null) { - synchronized (TextToSpeechGrpc.class) { - if ((getSynthesizeSpeechMethod = TextToSpeechGrpc.getSynthesizeSpeechMethod) == null) { - TextToSpeechGrpc.getSynthesizeSpeechMethod = - getSynthesizeSpeechMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SynthesizeSpeech")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TextToSpeechMethodDescriptorSupplier("SynthesizeSpeech")) - .build(); - } - } - } - return getSynthesizeSpeechMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static TextToSpeechStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TextToSpeechStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechStub(channel, callOptions); - } - }; - return TextToSpeechStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TextToSpeechBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TextToSpeechBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechBlockingStub(channel, callOptions); - } - }; - return TextToSpeechBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static TextToSpeechFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TextToSpeechFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechFutureStub(channel, callOptions); - } - }; - return TextToSpeechFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service that implements Google Cloud Text-to-Speech API.
-   * 
- */ - public abstract static class TextToSpeechImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns a list of Voice supported for synthesis.
-     * 
- */ - public void listVoices( - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVoicesMethod(), responseObserver); - } - - /** - * - * - *
-     * Synthesizes speech synchronously: receive results after all text input
-     * has been processed.
-     * 
- */ - public void synthesizeSpeech( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSynthesizeSpeechMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListVoicesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest, - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse>( - this, METHODID_LIST_VOICES))) - .addMethod( - getSynthesizeSpeechMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest, - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse>( - this, METHODID_SYNTHESIZE_SPEECH))) - .build(); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Text-to-Speech API.
-   * 
- */ - public static final class TextToSpeechStub - extends io.grpc.stub.AbstractAsyncStub { - private TextToSpeechStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TextToSpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a list of Voice supported for synthesis.
-     * 
- */ - public void listVoices( - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVoicesMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Synthesizes speech synchronously: receive results after all text input
-     * has been processed.
-     * 
- */ - public void synthesizeSpeech( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSynthesizeSpeechMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Text-to-Speech API.
-   * 
- */ - public static final class TextToSpeechBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private TextToSpeechBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TextToSpeechBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a list of Voice supported for synthesis.
-     * 
- */ - public com.google.cloud.texttospeech.v1beta1.ListVoicesResponse listVoices( - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVoicesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Synthesizes speech synchronously: receive results after all text input
-     * has been processed.
-     * 
- */ - public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse synthesizeSpeech( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSynthesizeSpeechMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Text-to-Speech API.
-   * 
- */ - public static final class TextToSpeechFutureStub - extends io.grpc.stub.AbstractFutureStub { - private TextToSpeechFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TextToSpeechFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a list of Voice supported for synthesis.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse> - listVoices(com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListVoicesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Synthesizes speech synchronously: receive results after all text input
-     * has been processed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse> - synthesizeSpeech(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSynthesizeSpeechMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_VOICES = 0; - private static final int METHODID_SYNTHESIZE_SPEECH = 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 TextToSpeechImplBase serviceImpl; - private final int methodId; - - MethodHandlers(TextToSpeechImplBase 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_VOICES: - serviceImpl.listVoices( - (com.google.cloud.texttospeech.v1beta1.ListVoicesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse>) - responseObserver); - break; - case METHODID_SYNTHESIZE_SPEECH: - serviceImpl.synthesizeSpeech( - (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse>) - 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 TextToSpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TextToSpeechBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TextToSpeech"); - } - } - - private static final class TextToSpeechFileDescriptorSupplier - extends TextToSpeechBaseDescriptorSupplier { - TextToSpeechFileDescriptorSupplier() {} - } - - private static final class TextToSpeechMethodDescriptorSupplier - extends TextToSpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TextToSpeechMethodDescriptorSupplier(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 (TextToSpeechGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TextToSpeechFileDescriptorSupplier()) - .addMethod(getListVoicesMethod()) - .addMethod(getSynthesizeSpeechMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java b/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java similarity index 97% rename from google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java rename to owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java index 36aa5929..b77dc381 100644 --- a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java +++ b/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java @@ -46,13 +46,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. 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. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. 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. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. 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. *
* diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java b/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java similarity index 95% rename from google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java rename to owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java index d71f1419..e1ad3a1f 100644 --- a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java +++ b/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java @@ -24,6 +24,7 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.texttospeech.v1.stub.TextToSpeechStubSettings; @@ -38,9 +39,9 @@ *

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

    - *
  • The default service address (texttospeech.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 default service address (texttospeech.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 diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/gapic_metadata.json similarity index 100% rename from google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/gapic_metadata.json diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/package-info.java b/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/package-info.java similarity index 100% rename from google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/package-info.java diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechCallableFactory.java b/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechCallableFactory.java similarity index 100% rename from google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechCallableFactory.java rename to owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechCallableFactory.java diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechStub.java b/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechStub.java similarity index 100% rename from google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechStub.java rename to owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechStub.java diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStub.java b/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStub.java similarity index 100% rename from google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStub.java rename to owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStub.java diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java b/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java similarity index 97% rename from google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java rename to owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java index 4f40b335..00c9e97e 100644 --- a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java @@ -51,9 +51,9 @@ *

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

    - *
  • The default service address (texttospeech.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 default service address (texttospeech.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 diff --git a/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeech.java b/owl-bot-staging/v1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeech.java similarity index 100% rename from google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeech.java rename to owl-bot-staging/v1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeech.java diff --git a/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeechImpl.java b/owl-bot-staging/v1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeechImpl.java similarity index 100% rename from google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeechImpl.java rename to owl-bot-staging/v1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeechImpl.java diff --git a/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechClientTest.java b/owl-bot-staging/v1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechClientTest.java similarity index 100% rename from google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechClientTest.java rename to owl-bot-staging/v1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechClientTest.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java new file mode 100644 index 00000000..8f670ff8 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java @@ -0,0 +1,393 @@ +package com.google.cloud.texttospeech.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Service that implements Google Cloud Text-to-Speech API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/texttospeech/v1/cloud_tts.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TextToSpeechGrpc { + + private TextToSpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.texttospeech.v1.TextToSpeech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListVoicesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVoices", + requestType = com.google.cloud.texttospeech.v1.ListVoicesRequest.class, + responseType = com.google.cloud.texttospeech.v1.ListVoicesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListVoicesMethod() { + io.grpc.MethodDescriptor getListVoicesMethod; + if ((getListVoicesMethod = TextToSpeechGrpc.getListVoicesMethod) == null) { + synchronized (TextToSpeechGrpc.class) { + if ((getListVoicesMethod = TextToSpeechGrpc.getListVoicesMethod) == null) { + TextToSpeechGrpc.getListVoicesMethod = getListVoicesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVoices")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.texttospeech.v1.ListVoicesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.texttospeech.v1.ListVoicesResponse.getDefaultInstance())) + .setSchemaDescriptor(new TextToSpeechMethodDescriptorSupplier("ListVoices")) + .build(); + } + } + } + return getListVoicesMethod; + } + + private static volatile io.grpc.MethodDescriptor getSynthesizeSpeechMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SynthesizeSpeech", + requestType = com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.class, + responseType = com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSynthesizeSpeechMethod() { + io.grpc.MethodDescriptor getSynthesizeSpeechMethod; + if ((getSynthesizeSpeechMethod = TextToSpeechGrpc.getSynthesizeSpeechMethod) == null) { + synchronized (TextToSpeechGrpc.class) { + if ((getSynthesizeSpeechMethod = TextToSpeechGrpc.getSynthesizeSpeechMethod) == null) { + TextToSpeechGrpc.getSynthesizeSpeechMethod = getSynthesizeSpeechMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SynthesizeSpeech")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.getDefaultInstance())) + .setSchemaDescriptor(new TextToSpeechMethodDescriptorSupplier("SynthesizeSpeech")) + .build(); + } + } + } + return getSynthesizeSpeechMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static TextToSpeechStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TextToSpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechStub(channel, callOptions); + } + }; + return TextToSpeechStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TextToSpeechBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TextToSpeechBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechBlockingStub(channel, callOptions); + } + }; + return TextToSpeechBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static TextToSpeechFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TextToSpeechFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechFutureStub(channel, callOptions); + } + }; + return TextToSpeechFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service that implements Google Cloud Text-to-Speech API.
+   * 
+ */ + public static abstract class TextToSpeechImplBase implements io.grpc.BindableService { + + /** + *
+     * Returns a list of Voice supported for synthesis.
+     * 
+ */ + public void listVoices(com.google.cloud.texttospeech.v1.ListVoicesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVoicesMethod(), responseObserver); + } + + /** + *
+     * Synthesizes speech synchronously: receive results after all text input
+     * has been processed.
+     * 
+ */ + public void synthesizeSpeech(com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSynthesizeSpeechMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListVoicesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.texttospeech.v1.ListVoicesRequest, + com.google.cloud.texttospeech.v1.ListVoicesResponse>( + this, METHODID_LIST_VOICES))) + .addMethod( + getSynthesizeSpeechMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest, + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse>( + this, METHODID_SYNTHESIZE_SPEECH))) + .build(); + } + } + + /** + *
+   * Service that implements Google Cloud Text-to-Speech API.
+   * 
+ */ + public static final class TextToSpeechStub extends io.grpc.stub.AbstractAsyncStub { + private TextToSpeechStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TextToSpeechStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechStub(channel, callOptions); + } + + /** + *
+     * Returns a list of Voice supported for synthesis.
+     * 
+ */ + public void listVoices(com.google.cloud.texttospeech.v1.ListVoicesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVoicesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Synthesizes speech synchronously: receive results after all text input
+     * has been processed.
+     * 
+ */ + public void synthesizeSpeech(com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSynthesizeSpeechMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service that implements Google Cloud Text-to-Speech API.
+   * 
+ */ + public static final class TextToSpeechBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private TextToSpeechBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TextToSpeechBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns a list of Voice supported for synthesis.
+     * 
+ */ + public com.google.cloud.texttospeech.v1.ListVoicesResponse listVoices(com.google.cloud.texttospeech.v1.ListVoicesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVoicesMethod(), getCallOptions(), request); + } + + /** + *
+     * Synthesizes speech synchronously: receive results after all text input
+     * has been processed.
+     * 
+ */ + public com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse synthesizeSpeech(com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSynthesizeSpeechMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service that implements Google Cloud Text-to-Speech API.
+   * 
+ */ + public static final class TextToSpeechFutureStub extends io.grpc.stub.AbstractFutureStub { + private TextToSpeechFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TextToSpeechFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechFutureStub(channel, callOptions); + } + + /** + *
+     * Returns a list of Voice supported for synthesis.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listVoices( + com.google.cloud.texttospeech.v1.ListVoicesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVoicesMethod(), getCallOptions()), request); + } + + /** + *
+     * Synthesizes speech synchronously: receive results after all text input
+     * has been processed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture synthesizeSpeech( + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSynthesizeSpeechMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_VOICES = 0; + private static final int METHODID_SYNTHESIZE_SPEECH = 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 TextToSpeechImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TextToSpeechImplBase 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_VOICES: + serviceImpl.listVoices((com.google.cloud.texttospeech.v1.ListVoicesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SYNTHESIZE_SPEECH: + serviceImpl.synthesizeSpeech((com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest) 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 TextToSpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TextToSpeechBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TextToSpeech"); + } + } + + private static final class TextToSpeechFileDescriptorSupplier + extends TextToSpeechBaseDescriptorSupplier { + TextToSpeechFileDescriptorSupplier() {} + } + + private static final class TextToSpeechMethodDescriptorSupplier + extends TextToSpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TextToSpeechMethodDescriptorSupplier(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 (TextToSpeechGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TextToSpeechFileDescriptorSupplier()) + .addMethod(getListVoicesMethod()) + .addMethod(getSynthesizeSpeechMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java similarity index 69% rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java index 3d06458c..e4960108 100644 --- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java @@ -1,42 +1,24 @@ -/* - * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** - * - * *
  * Description of audio data to be synthesized.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1.AudioConfig} */ -public final class AudioConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AudioConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.AudioConfig) AudioConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AudioConfig.newBuilder() to construct. private AudioConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AudioConfig() { audioEncoding_ = 0; effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,15 +26,16 @@ private AudioConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AudioConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AudioConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,56 +55,55 @@ private AudioConfig( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - audioEncoding_ = rawValue; - break; - } - case 17: - { - speakingRate_ = input.readDouble(); - break; - } - case 25: - { - pitch_ = input.readDouble(); - break; - } - case 33: - { - volumeGainDb_ = input.readDouble(); - break; - } - case 40: - { - sampleRateHertz_ = input.readInt32(); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - effectsProfileId_.add(s); - break; + audioEncoding_ = rawValue; + break; + } + case 17: { + + speakingRate_ = input.readDouble(); + break; + } + case 25: { + + pitch_ = input.readDouble(); + break; + } + case 33: { + + volumeGainDb_ = input.readDouble(); + break; + } + case 40: { + + sampleRateHertz_ = input.readInt32(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + effectsProfileId_.add(s); + 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { effectsProfileId_ = effectsProfileId_.getUnmodifiableView(); @@ -130,67 +112,49 @@ private AudioConfig( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_AudioConfig_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_AudioConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.AudioConfig.class, - com.google.cloud.texttospeech.v1.AudioConfig.Builder.class); + com.google.cloud.texttospeech.v1.AudioConfig.class, com.google.cloud.texttospeech.v1.AudioConfig.Builder.class); } public static final int AUDIO_ENCODING_FIELD_NUMBER = 1; private int audioEncoding_; /** - * - * *
    * Required. The format of the audio byte stream.
    * 
* - * - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for audioEncoding. */ - @java.lang.Override - public int getAudioEncodingValue() { + @java.lang.Override public int getAudioEncodingValue() { return audioEncoding_; } /** - * - * *
    * Required. The format of the audio byte stream.
    * 
* - * - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The audioEncoding. */ - @java.lang.Override - public com.google.cloud.texttospeech.v1.AudioEncoding getAudioEncoding() { + @java.lang.Override public com.google.cloud.texttospeech.v1.AudioEncoding getAudioEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1.AudioEncoding result = - com.google.cloud.texttospeech.v1.AudioEncoding.valueOf(audioEncoding_); + com.google.cloud.texttospeech.v1.AudioEncoding result = com.google.cloud.texttospeech.v1.AudioEncoding.valueOf(audioEncoding_); return result == null ? com.google.cloud.texttospeech.v1.AudioEncoding.UNRECOGNIZED : result; } public static final int SPEAKING_RATE_FIELD_NUMBER = 2; private double speakingRate_; /** - * - * *
    * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
    * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -198,10 +162,7 @@ public com.google.cloud.texttospeech.v1.AudioEncoding getAudioEncoding() {
    * speed. Any other values < 0.25 or > 4.0 will return an error.
    * 
* - * - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The speakingRate. */ @java.lang.Override @@ -212,18 +173,13 @@ public double getSpeakingRate() { public static final int PITCH_FIELD_NUMBER = 3; private double pitch_; /** - * - * *
    * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
    * increase 20 semitones from the original pitch. -20 means decrease 20
    * semitones from the original pitch.
    * 
* - * - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The pitch. */ @java.lang.Override @@ -234,8 +190,6 @@ public double getPitch() { public static final int VOLUME_GAIN_DB_FIELD_NUMBER = 4; private double volumeGainDb_; /** - * - * *
    * Optional. Input only. Volume gain (in dB) of the normal native volume
    * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -247,10 +201,7 @@ public double getPitch() {
    * increase in loudness for any value greater than that.
    * 
* - * - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The volumeGainDb. */ @java.lang.Override @@ -261,8 +212,6 @@ public double getVolumeGainDb() { public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 5; private int sampleRateHertz_; /** - * - * *
    * Optional. The synthesis sample rate (in hertz) for this audio. When this is
    * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -274,7 +223,6 @@ public double getVolumeGainDb() {
    * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -285,8 +233,6 @@ public int getSampleRateHertz() { public static final int EFFECTS_PROFILE_ID_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList effectsProfileId_; /** - * - * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -296,18 +242,14 @@ public int getSampleRateHertz() {
    * current supported profile ids.
    * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return A list containing the effectsProfileId. */ - public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { + public com.google.protobuf.ProtocolStringList + getEffectsProfileIdList() { return effectsProfileId_; } /** - * - * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -317,18 +259,13 @@ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() {
    * current supported profile ids.
    * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The count of effectsProfileId. */ public int getEffectsProfileIdCount() { return effectsProfileId_.size(); } /** - * - * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -338,10 +275,7 @@ public int getEffectsProfileIdCount() {
    * current supported profile ids.
    * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The effectsProfileId at the given index. */ @@ -349,8 +283,6 @@ public java.lang.String getEffectsProfileId(int index) { return effectsProfileId_.get(index); } /** - * - * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -360,19 +292,16 @@ public java.lang.String getEffectsProfileId(int index) {
    * current supported profile ids.
    * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. */ - public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { + public com.google.protobuf.ByteString + getEffectsProfileIdBytes(int index) { return effectsProfileId_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -384,9 +313,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (audioEncoding_ - != com.google.cloud.texttospeech.v1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (audioEncoding_ != com.google.cloud.texttospeech.v1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { output.writeEnum(1, audioEncoding_); } if (speakingRate_ != 0D) { @@ -413,21 +342,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (audioEncoding_ - != com.google.cloud.texttospeech.v1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, audioEncoding_); + if (audioEncoding_ != com.google.cloud.texttospeech.v1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, audioEncoding_); } if (speakingRate_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, speakingRate_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, speakingRate_); } if (pitch_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, pitch_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, pitch_); } if (volumeGainDb_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, volumeGainDb_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, volumeGainDb_); } if (sampleRateHertz_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, sampleRateHertz_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, sampleRateHertz_); } { int dataSize = 0; @@ -445,23 +378,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.texttospeech.v1.AudioConfig)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1.AudioConfig other = - (com.google.cloud.texttospeech.v1.AudioConfig) obj; + com.google.cloud.texttospeech.v1.AudioConfig other = (com.google.cloud.texttospeech.v1.AudioConfig) obj; if (audioEncoding_ != other.audioEncoding_) return false; if (java.lang.Double.doubleToLongBits(getSpeakingRate()) - != java.lang.Double.doubleToLongBits(other.getSpeakingRate())) return false; + != java.lang.Double.doubleToLongBits( + other.getSpeakingRate())) return false; if (java.lang.Double.doubleToLongBits(getPitch()) - != java.lang.Double.doubleToLongBits(other.getPitch())) return false; + != java.lang.Double.doubleToLongBits( + other.getPitch())) return false; if (java.lang.Double.doubleToLongBits(getVolumeGainDb()) - != java.lang.Double.doubleToLongBits(other.getVolumeGainDb())) return false; - if (getSampleRateHertz() != other.getSampleRateHertz()) return false; - if (!getEffectsProfileIdList().equals(other.getEffectsProfileIdList())) return false; + != java.lang.Double.doubleToLongBits( + other.getVolumeGainDb())) return false; + if (getSampleRateHertz() + != other.getSampleRateHertz()) return false; + if (!getEffectsProfileIdList() + .equals(other.getEffectsProfileIdList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -476,19 +413,14 @@ public int hashCode() { hash = (37 * hash) + AUDIO_ENCODING_FIELD_NUMBER; hash = (53 * hash) + audioEncoding_; hash = (37 * hash) + SPEAKING_RATE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getSpeakingRate())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSpeakingRate())); hash = (37 * hash) + PITCH_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getPitch())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPitch())); hash = (37 * hash) + VOLUME_GAIN_DB_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVolumeGainDb())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVolumeGainDb())); hash = (37 * hash) + SAMPLE_RATE_HERTZ_FIELD_NUMBER; hash = (53 * hash) + getSampleRateHertz(); if (getEffectsProfileIdCount() > 0) { @@ -500,127 +432,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.AudioConfig 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.texttospeech.v1.AudioConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1.AudioConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1.AudioConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.AudioConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.texttospeech.v1.AudioConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Description of audio data to be synthesized.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1.AudioConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.AudioConfig) com.google.cloud.texttospeech.v1.AudioConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_AudioConfig_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_AudioConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.AudioConfig.class, - com.google.cloud.texttospeech.v1.AudioConfig.Builder.class); + com.google.cloud.texttospeech.v1.AudioConfig.class, com.google.cloud.texttospeech.v1.AudioConfig.Builder.class); } // Construct using com.google.cloud.texttospeech.v1.AudioConfig.newBuilder() @@ -628,15 +551,16 @@ 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(); @@ -656,9 +580,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor; } @java.lang.Override @@ -677,8 +601,7 @@ public com.google.cloud.texttospeech.v1.AudioConfig build() { @java.lang.Override public com.google.cloud.texttospeech.v1.AudioConfig buildPartial() { - com.google.cloud.texttospeech.v1.AudioConfig result = - new com.google.cloud.texttospeech.v1.AudioConfig(this); + com.google.cloud.texttospeech.v1.AudioConfig result = new com.google.cloud.texttospeech.v1.AudioConfig(this); int from_bitField0_ = bitField0_; result.audioEncoding_ = audioEncoding_; result.speakingRate_ = speakingRate_; @@ -698,39 +621,38 @@ public com.google.cloud.texttospeech.v1.AudioConfig 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.texttospeech.v1.AudioConfig) { - return mergeFrom((com.google.cloud.texttospeech.v1.AudioConfig) other); + return mergeFrom((com.google.cloud.texttospeech.v1.AudioConfig)other); } else { super.mergeFrom(other); return this; @@ -792,78 +714,55 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private int audioEncoding_ = 0; /** - * - * *
      * Required. The format of the audio byte stream.
      * 
* - * - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for audioEncoding. */ - @java.lang.Override - public int getAudioEncodingValue() { + @java.lang.Override public int getAudioEncodingValue() { return audioEncoding_; } /** - * - * *
      * Required. The format of the audio byte stream.
      * 
* - * - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for audioEncoding to set. * @return This builder for chaining. */ public Builder setAudioEncodingValue(int value) { - + audioEncoding_ = value; onChanged(); return this; } /** - * - * *
      * Required. The format of the audio byte stream.
      * 
* - * - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The audioEncoding. */ @java.lang.Override public com.google.cloud.texttospeech.v1.AudioEncoding getAudioEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1.AudioEncoding result = - com.google.cloud.texttospeech.v1.AudioEncoding.valueOf(audioEncoding_); + com.google.cloud.texttospeech.v1.AudioEncoding result = com.google.cloud.texttospeech.v1.AudioEncoding.valueOf(audioEncoding_); return result == null ? com.google.cloud.texttospeech.v1.AudioEncoding.UNRECOGNIZED : result; } /** - * - * *
      * Required. The format of the audio byte stream.
      * 
* - * - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The audioEncoding to set. * @return This builder for chaining. */ @@ -871,35 +770,28 @@ public Builder setAudioEncoding(com.google.cloud.texttospeech.v1.AudioEncoding v if (value == null) { throw new NullPointerException(); } - + audioEncoding_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The format of the audio byte stream.
      * 
* - * - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearAudioEncoding() { - + audioEncoding_ = 0; onChanged(); return this; } - private double speakingRate_; + private double speakingRate_ ; /** - * - * *
      * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
      * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -907,10 +799,7 @@ public Builder clearAudioEncoding() {
      * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The speakingRate. */ @java.lang.Override @@ -918,8 +807,6 @@ public double getSpeakingRate() { return speakingRate_; } /** - * - * *
      * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
      * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -927,22 +814,17 @@ public double getSpeakingRate() {
      * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param value The speakingRate to set. * @return This builder for chaining. */ public Builder setSpeakingRate(double value) { - + speakingRate_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
      * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -950,33 +832,25 @@ public Builder setSpeakingRate(double value) {
      * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearSpeakingRate() { - + speakingRate_ = 0D; onChanged(); return this; } - private double pitch_; + private double pitch_ ; /** - * - * *
      * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
      * increase 20 semitones from the original pitch. -20 means decrease 20
      * semitones from the original pitch.
      * 
* - * - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The pitch. */ @java.lang.Override @@ -984,53 +858,41 @@ public double getPitch() { return pitch_; } /** - * - * *
      * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
      * increase 20 semitones from the original pitch. -20 means decrease 20
      * semitones from the original pitch.
      * 
* - * - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param value The pitch to set. * @return This builder for chaining. */ public Builder setPitch(double value) { - + pitch_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
      * increase 20 semitones from the original pitch. -20 means decrease 20
      * semitones from the original pitch.
      * 
* - * - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearPitch() { - + pitch_ = 0D; onChanged(); return this; } - private double volumeGainDb_; + private double volumeGainDb_ ; /** - * - * *
      * Optional. Input only. Volume gain (in dB) of the normal native volume
      * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -1042,10 +904,7 @@ public Builder clearPitch() {
      * increase in loudness for any value greater than that.
      * 
* - * - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The volumeGainDb. */ @java.lang.Override @@ -1053,8 +912,6 @@ public double getVolumeGainDb() { return volumeGainDb_; } /** - * - * *
      * Optional. Input only. Volume gain (in dB) of the normal native volume
      * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -1066,22 +923,17 @@ public double getVolumeGainDb() {
      * increase in loudness for any value greater than that.
      * 
* - * - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param value The volumeGainDb to set. * @return This builder for chaining. */ public Builder setVolumeGainDb(double value) { - + volumeGainDb_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Input only. Volume gain (in dB) of the normal native volume
      * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -1093,23 +945,18 @@ public Builder setVolumeGainDb(double value) {
      * increase in loudness for any value greater than that.
      * 
* - * - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearVolumeGainDb() { - + volumeGainDb_ = 0D; onChanged(); return this; } - private int sampleRateHertz_; + private int sampleRateHertz_ ; /** - * - * *
      * Optional. The synthesis sample rate (in hertz) for this audio. When this is
      * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -1121,7 +968,6 @@ public Builder clearVolumeGainDb() {
      * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -1129,8 +975,6 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** - * - * *
      * Optional. The synthesis sample rate (in hertz) for this audio. When this is
      * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -1142,19 +986,16 @@ public int getSampleRateHertz() {
      * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sampleRateHertz to set. * @return This builder for chaining. */ public Builder setSampleRateHertz(int value) { - + sampleRateHertz_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The synthesis sample rate (in hertz) for this audio. When this is
      * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -1166,28 +1007,23 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + sampleRateHertz_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList effectsProfileId_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureEffectsProfileIdIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(effectsProfileId_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1197,18 +1033,14 @@ private void ensureEffectsProfileIdIsMutable() {
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return A list containing the effectsProfileId. */ - public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { + public com.google.protobuf.ProtocolStringList + getEffectsProfileIdList() { return effectsProfileId_.getUnmodifiableView(); } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1218,18 +1050,13 @@ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() {
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The count of effectsProfileId. */ public int getEffectsProfileIdCount() { return effectsProfileId_.size(); } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1239,10 +1066,7 @@ public int getEffectsProfileIdCount() {
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The effectsProfileId at the given index. */ @@ -1250,8 +1074,6 @@ public java.lang.String getEffectsProfileId(int index) { return effectsProfileId_.get(index); } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1261,19 +1083,15 @@ public java.lang.String getEffectsProfileId(int index) {
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. */ - public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { + public com.google.protobuf.ByteString + getEffectsProfileIdBytes(int index) { return effectsProfileId_.getByteString(index); } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1283,26 +1101,22 @@ public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) {
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The effectsProfileId to set. * @return This builder for chaining. */ - public Builder setEffectsProfileId(int index, java.lang.String value) { + public Builder setEffectsProfileId( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEffectsProfileIdIsMutable(); + throw new NullPointerException(); + } + ensureEffectsProfileIdIsMutable(); effectsProfileId_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1312,25 +1126,21 @@ public Builder setEffectsProfileId(int index, java.lang.String value) {
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param value The effectsProfileId to add. * @return This builder for chaining. */ - public Builder addEffectsProfileId(java.lang.String value) { + public Builder addEffectsProfileId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEffectsProfileIdIsMutable(); + throw new NullPointerException(); + } + ensureEffectsProfileIdIsMutable(); effectsProfileId_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1340,22 +1150,19 @@ public Builder addEffectsProfileId(java.lang.String value) {
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param values The effectsProfileId to add. * @return This builder for chaining. */ - public Builder addAllEffectsProfileId(java.lang.Iterable values) { + public Builder addAllEffectsProfileId( + java.lang.Iterable values) { ensureEffectsProfileIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, effectsProfileId_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, effectsProfileId_); onChanged(); return this; } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1365,10 +1172,7 @@ public Builder addAllEffectsProfileId(java.lang.Iterable value
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearEffectsProfileId() { @@ -1378,8 +1182,6 @@ public Builder clearEffectsProfileId() { return this; } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1389,26 +1191,24 @@ public Builder clearEffectsProfileId() {
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the effectsProfileId to add. * @return This builder for chaining. */ - public Builder addEffectsProfileIdBytes(com.google.protobuf.ByteString value) { + public Builder addEffectsProfileIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureEffectsProfileIdIsMutable(); effectsProfileId_.add(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); } @@ -1418,12 +1218,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.AudioConfig) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.AudioConfig) private static final com.google.cloud.texttospeech.v1.AudioConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.AudioConfig(); } @@ -1432,16 +1232,16 @@ public static com.google.cloud.texttospeech.v1.AudioConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AudioConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AudioConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudioConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AudioConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1456,4 +1256,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1.AudioConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java similarity index 67% rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java index 66496ef0..7d68240c 100644 --- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java @@ -1,60 +1,32 @@ -/* - * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; -public interface AudioConfigOrBuilder - extends +public interface AudioConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.AudioConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The format of the audio byte stream.
    * 
* - * - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for audioEncoding. */ int getAudioEncodingValue(); /** - * - * *
    * Required. The format of the audio byte stream.
    * 
* - * - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The audioEncoding. */ com.google.cloud.texttospeech.v1.AudioEncoding getAudioEncoding(); /** - * - * *
    * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
    * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -62,34 +34,24 @@ public interface AudioConfigOrBuilder
    * speed. Any other values < 0.25 or > 4.0 will return an error.
    * 
* - * - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The speakingRate. */ double getSpeakingRate(); /** - * - * *
    * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
    * increase 20 semitones from the original pitch. -20 means decrease 20
    * semitones from the original pitch.
    * 
* - * - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The pitch. */ double getPitch(); /** - * - * *
    * Optional. Input only. Volume gain (in dB) of the normal native volume
    * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -101,17 +63,12 @@ public interface AudioConfigOrBuilder
    * increase in loudness for any value greater than that.
    * 
* - * - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The volumeGainDb. */ double getVolumeGainDb(); /** - * - * *
    * Optional. The synthesis sample rate (in hertz) for this audio. When this is
    * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -123,14 +80,11 @@ public interface AudioConfigOrBuilder
    * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** - * - * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -140,16 +94,12 @@ public interface AudioConfigOrBuilder
    * current supported profile ids.
    * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return A list containing the effectsProfileId. */ - java.util.List getEffectsProfileIdList(); + java.util.List + getEffectsProfileIdList(); /** - * - * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -159,16 +109,11 @@ public interface AudioConfigOrBuilder
    * current supported profile ids.
    * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The count of effectsProfileId. */ int getEffectsProfileIdCount(); /** - * - * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -178,17 +123,12 @@ public interface AudioConfigOrBuilder
    * current supported profile ids.
    * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The effectsProfileId at the given index. */ java.lang.String getEffectsProfileId(int index); /** - * - * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -198,12 +138,10 @@ public interface AudioConfigOrBuilder
    * current supported profile ids.
    * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. */ - com.google.protobuf.ByteString getEffectsProfileIdBytes(int index); + com.google.protobuf.ByteString + getEffectsProfileIdBytes(int index); } diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java similarity index 75% rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java index 7ce191e9..7f1b5ddf 100644 --- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java @@ -1,26 +1,9 @@ -/* - * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** - * - * *
  * Configuration to set up audio encoder. The encoding determines the output
  * audio format that we'd like.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.texttospeech.v1.AudioEncoding}
  */
-public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
+public enum AudioEncoding
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
    * 
@@ -40,8 +22,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AUDIO_ENCODING_UNSPECIFIED(0), /** - * - * *
    * Uncompressed 16-bit signed little-endian samples (Linear PCM).
    * Audio content returned as LINEAR16 also contains a WAV header.
@@ -51,8 +31,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   LINEAR16(1),
   /**
-   *
-   *
    * 
    * MP3 audio at 32kbps.
    * 
@@ -61,8 +39,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ MP3(2), /** - * - * *
    * Opus encoded audio wrapped in an ogg container. The result will be a
    * file which can be played natively on Android, and in browsers (at least
@@ -74,8 +50,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   OGG_OPUS(3),
   /**
-   *
-   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
    * Audio content returned as MULAW also contains a WAV header.
@@ -85,8 +59,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   MULAW(5),
   /**
-   *
-   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law.
    * Audio content returned as ALAW also contains a WAV header.
@@ -99,8 +71,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
   ;
 
   /**
-   *
-   *
    * 
    * Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
    * 
@@ -109,8 +79,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AUDIO_ENCODING_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Uncompressed 16-bit signed little-endian samples (Linear PCM).
    * Audio content returned as LINEAR16 also contains a WAV header.
@@ -120,8 +88,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int LINEAR16_VALUE = 1;
   /**
-   *
-   *
    * 
    * MP3 audio at 32kbps.
    * 
@@ -130,8 +96,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MP3_VALUE = 2; /** - * - * *
    * Opus encoded audio wrapped in an ogg container. The result will be a
    * file which can be played natively on Android, and in browsers (at least
@@ -143,8 +107,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int OGG_OPUS_VALUE = 3;
   /**
-   *
-   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
    * Audio content returned as MULAW also contains a WAV header.
@@ -154,8 +116,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int MULAW_VALUE = 5;
   /**
-   *
-   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law.
    * Audio content returned as ALAW also contains a WAV header.
@@ -165,6 +125,7 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int ALAW_VALUE = 6;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -189,55 +150,52 @@ public static AudioEncoding valueOf(int value) {
    */
   public static AudioEncoding forNumber(int value) {
     switch (value) {
-      case 0:
-        return AUDIO_ENCODING_UNSPECIFIED;
-      case 1:
-        return LINEAR16;
-      case 2:
-        return MP3;
-      case 3:
-        return OGG_OPUS;
-      case 5:
-        return MULAW;
-      case 6:
-        return ALAW;
-      default:
-        return null;
+      case 0: return AUDIO_ENCODING_UNSPECIFIED;
+      case 1: return LINEAR16;
+      case 2: return MP3;
+      case 3: return OGG_OPUS;
+      case 5: return MULAW;
+      case 6: return ALAW;
+      default: return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap
+      internalGetValueMap() {
     return internalValueMap;
   }
-
-  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-      new com.google.protobuf.Internal.EnumLiteMap() {
-        public AudioEncoding findValueByNumber(int number) {
-          return AudioEncoding.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      AudioEncoding> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public AudioEncoding findValueByNumber(int number) {
+            return AudioEncoding.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() {
+  public static final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptor() {
     return com.google.cloud.texttospeech.v1.TextToSpeechProto.getDescriptor().getEnumTypes().get(1);
   }
 
   private static final AudioEncoding[] VALUES = values();
 
-  public static AudioEncoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static AudioEncoding 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;
@@ -253,3 +211,4 @@ private AudioEncoding(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.texttospeech.v1.AudioEncoding)
 }
+
diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java
similarity index 73%
rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java
index 19967c29..44bb8e0a 100644
--- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java
@@ -1,57 +1,40 @@
-/*
- * 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/texttospeech/v1/cloud_tts.proto
 
 package com.google.cloud.texttospeech.v1;
 
 /**
- *
- *
  * 
  * The top-level message sent by the client for the `ListVoices` method.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1.ListVoicesRequest} */ -public final class ListVoicesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListVoicesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.ListVoicesRequest) ListVoicesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListVoicesRequest.newBuilder() to construct. private ListVoicesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListVoicesRequest() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListVoicesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListVoicesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private ListVoicesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCode_ = s; + 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.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.ListVoicesRequest.class, - com.google.cloud.texttospeech.v1.ListVoicesRequest.Builder.class); + com.google.cloud.texttospeech.v1.ListVoicesRequest.class, com.google.cloud.texttospeech.v1.ListVoicesRequest.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** - * - * *
    * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -128,7 +106,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ @java.lang.Override @@ -137,15 +114,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -158,15 +134,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -175,7 +152,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +163,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -211,15 +188,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.texttospeech.v1.ListVoicesRequest)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1.ListVoicesRequest other = - (com.google.cloud.texttospeech.v1.ListVoicesRequest) obj; + com.google.cloud.texttospeech.v1.ListVoicesRequest other = (com.google.cloud.texttospeech.v1.ListVoicesRequest) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -239,126 +216,117 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.texttospeech.v1.ListVoicesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 top-level message sent by the client for the `ListVoices` method.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1.ListVoicesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.ListVoicesRequest) com.google.cloud.texttospeech.v1.ListVoicesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.ListVoicesRequest.class, - com.google.cloud.texttospeech.v1.ListVoicesRequest.Builder.class); + com.google.cloud.texttospeech.v1.ListVoicesRequest.class, com.google.cloud.texttospeech.v1.ListVoicesRequest.Builder.class); } // Construct using com.google.cloud.texttospeech.v1.ListVoicesRequest.newBuilder() @@ -366,15 +334,16 @@ 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(); @@ -384,9 +353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor; } @java.lang.Override @@ -405,8 +374,7 @@ public com.google.cloud.texttospeech.v1.ListVoicesRequest build() { @java.lang.Override public com.google.cloud.texttospeech.v1.ListVoicesRequest buildPartial() { - com.google.cloud.texttospeech.v1.ListVoicesRequest result = - new com.google.cloud.texttospeech.v1.ListVoicesRequest(this); + com.google.cloud.texttospeech.v1.ListVoicesRequest result = new com.google.cloud.texttospeech.v1.ListVoicesRequest(this); result.languageCode_ = languageCode_; onBuilt(); return result; @@ -416,39 +384,38 @@ public com.google.cloud.texttospeech.v1.ListVoicesRequest 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.texttospeech.v1.ListVoicesRequest) { - return mergeFrom((com.google.cloud.texttospeech.v1.ListVoicesRequest) other); + return mergeFrom((com.google.cloud.texttospeech.v1.ListVoicesRequest)other); } else { super.mergeFrom(other); return this; @@ -456,8 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1.ListVoicesRequest other) { - if (other == com.google.cloud.texttospeech.v1.ListVoicesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.texttospeech.v1.ListVoicesRequest.getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -481,8 +447,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.texttospeech.v1.ListVoicesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.texttospeech.v1.ListVoicesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -494,8 +459,6 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** - * - * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -508,13 +471,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -523,8 +486,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -537,14 +498,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -552,8 +514,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -566,22 +526,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -594,18 +552,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -618,23 +573,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } - @java.lang.Override - 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,12 +599,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.ListVoicesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.ListVoicesRequest) private static final com.google.cloud.texttospeech.v1.ListVoicesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.ListVoicesRequest(); } @@ -658,16 +613,16 @@ public static com.google.cloud.texttospeech.v1.ListVoicesRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVoicesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVoicesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVoicesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVoicesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -682,4 +637,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1.ListVoicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java index ce0b67b6..b7a0b03b 100644 --- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; -public interface ListVoicesRequestOrBuilder - extends +public interface ListVoicesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.ListVoicesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -38,13 +20,10 @@ public interface ListVoicesRequestOrBuilder
    * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -57,8 +36,8 @@ public interface ListVoicesRequestOrBuilder
    * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponse.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponse.java similarity index 72% rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponse.java index 17e86d99..86ce198d 100644 --- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponse.java @@ -1,57 +1,40 @@ -/* - * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** - * - * *
  * The message returned to the client by the `ListVoices` method.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1.ListVoicesResponse} */ -public final class ListVoicesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListVoicesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.ListVoicesResponse) ListVoicesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListVoicesResponse.newBuilder() to construct. private ListVoicesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListVoicesResponse() { voices_ = 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 ListVoicesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListVoicesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,30 +54,29 @@ private ListVoicesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - voices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - voices_.add( - input.readMessage( - com.google.cloud.texttospeech.v1.Voice.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + voices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + voices_.add( + input.readMessage(com.google.cloud.texttospeech.v1.Voice.parser(), extensionRegistry)); + 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { voices_ = java.util.Collections.unmodifiableList(voices_); @@ -103,27 +85,22 @@ private ListVoicesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.ListVoicesResponse.class, - com.google.cloud.texttospeech.v1.ListVoicesResponse.Builder.class); + com.google.cloud.texttospeech.v1.ListVoicesResponse.class, com.google.cloud.texttospeech.v1.ListVoicesResponse.Builder.class); } public static final int VOICES_FIELD_NUMBER = 1; private java.util.List voices_; /** - * - * *
    * The list of voices.
    * 
@@ -135,8 +112,6 @@ public java.util.List getVoicesList() { return voices_; } /** - * - * *
    * The list of voices.
    * 
@@ -144,13 +119,11 @@ public java.util.List getVoicesList() { * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVoicesOrBuilderList() { return voices_; } /** - * - * *
    * The list of voices.
    * 
@@ -162,8 +135,6 @@ public int getVoicesCount() { return voices_.size(); } /** - * - * *
    * The list of voices.
    * 
@@ -175,8 +146,6 @@ public com.google.cloud.texttospeech.v1.Voice getVoices(int index) { return voices_.get(index); } /** - * - * *
    * The list of voices.
    * 
@@ -184,12 +153,12 @@ public com.google.cloud.texttospeech.v1.Voice getVoices(int index) { * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ @java.lang.Override - public com.google.cloud.texttospeech.v1.VoiceOrBuilder getVoicesOrBuilder(int index) { + public com.google.cloud.texttospeech.v1.VoiceOrBuilder getVoicesOrBuilder( + int index) { return voices_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +170,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < voices_.size(); i++) { output.writeMessage(1, voices_.get(i)); } @@ -215,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < voices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, voices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, voices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -225,15 +196,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.texttospeech.v1.ListVoicesResponse)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1.ListVoicesResponse other = - (com.google.cloud.texttospeech.v1.ListVoicesResponse) obj; + com.google.cloud.texttospeech.v1.ListVoicesResponse other = (com.google.cloud.texttospeech.v1.ListVoicesResponse) obj; - if (!getVoicesList().equals(other.getVoicesList())) return false; + if (!getVoicesList() + .equals(other.getVoicesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -255,126 +226,117 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.texttospeech.v1.ListVoicesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message returned to the client by the `ListVoices` method.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1.ListVoicesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.ListVoicesResponse) com.google.cloud.texttospeech.v1.ListVoicesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.ListVoicesResponse.class, - com.google.cloud.texttospeech.v1.ListVoicesResponse.Builder.class); + com.google.cloud.texttospeech.v1.ListVoicesResponse.class, com.google.cloud.texttospeech.v1.ListVoicesResponse.Builder.class); } // Construct using com.google.cloud.texttospeech.v1.ListVoicesResponse.newBuilder() @@ -382,17 +344,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) { getVoicesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +368,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor; } @java.lang.Override @@ -427,8 +389,7 @@ public com.google.cloud.texttospeech.v1.ListVoicesResponse build() { @java.lang.Override public com.google.cloud.texttospeech.v1.ListVoicesResponse buildPartial() { - com.google.cloud.texttospeech.v1.ListVoicesResponse result = - new com.google.cloud.texttospeech.v1.ListVoicesResponse(this); + com.google.cloud.texttospeech.v1.ListVoicesResponse result = new com.google.cloud.texttospeech.v1.ListVoicesResponse(this); int from_bitField0_ = bitField0_; if (voicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -447,39 +408,38 @@ public com.google.cloud.texttospeech.v1.ListVoicesResponse 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.texttospeech.v1.ListVoicesResponse) { - return mergeFrom((com.google.cloud.texttospeech.v1.ListVoicesResponse) other); + return mergeFrom((com.google.cloud.texttospeech.v1.ListVoicesResponse)other); } else { super.mergeFrom(other); return this; @@ -487,8 +447,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1.ListVoicesResponse other) { - if (other == com.google.cloud.texttospeech.v1.ListVoicesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.texttospeech.v1.ListVoicesResponse.getDefaultInstance()) return this; if (voicesBuilder_ == null) { if (!other.voices_.isEmpty()) { if (voices_.isEmpty()) { @@ -507,10 +466,9 @@ public Builder mergeFrom(com.google.cloud.texttospeech.v1.ListVoicesResponse oth voicesBuilder_ = null; voices_ = other.voices_; bitField0_ = (bitField0_ & ~0x00000001); - voicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVoicesFieldBuilder() - : null; + voicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVoicesFieldBuilder() : null; } else { voicesBuilder_.addAllMessages(other.voices_); } @@ -535,8 +493,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.texttospeech.v1.ListVoicesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.texttospeech.v1.ListVoicesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -545,28 +502,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List voices_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVoicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { voices_ = new java.util.ArrayList(voices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.texttospeech.v1.Voice, - com.google.cloud.texttospeech.v1.Voice.Builder, - com.google.cloud.texttospeech.v1.VoiceOrBuilder> - voicesBuilder_; + com.google.cloud.texttospeech.v1.Voice, com.google.cloud.texttospeech.v1.Voice.Builder, com.google.cloud.texttospeech.v1.VoiceOrBuilder> voicesBuilder_; /** - * - * *
      * The list of voices.
      * 
@@ -581,8 +531,6 @@ public java.util.List getVoicesList() { } } /** - * - * *
      * The list of voices.
      * 
@@ -597,8 +545,6 @@ public int getVoicesCount() { } } /** - * - * *
      * The list of voices.
      * 
@@ -613,15 +559,14 @@ public com.google.cloud.texttospeech.v1.Voice getVoices(int index) { } } /** - * - * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - public Builder setVoices(int index, com.google.cloud.texttospeech.v1.Voice value) { + public Builder setVoices( + int index, com.google.cloud.texttospeech.v1.Voice value) { if (voicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -635,8 +580,6 @@ public Builder setVoices(int index, com.google.cloud.texttospeech.v1.Voice value return this; } /** - * - * *
      * The list of voices.
      * 
@@ -655,8 +598,6 @@ public Builder setVoices( return this; } /** - * - * *
      * The list of voices.
      * 
@@ -677,15 +618,14 @@ public Builder addVoices(com.google.cloud.texttospeech.v1.Voice value) { return this; } /** - * - * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - public Builder addVoices(int index, com.google.cloud.texttospeech.v1.Voice value) { + public Builder addVoices( + int index, com.google.cloud.texttospeech.v1.Voice value) { if (voicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -699,15 +639,14 @@ public Builder addVoices(int index, com.google.cloud.texttospeech.v1.Voice value return this; } /** - * - * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - public Builder addVoices(com.google.cloud.texttospeech.v1.Voice.Builder builderForValue) { + public Builder addVoices( + com.google.cloud.texttospeech.v1.Voice.Builder builderForValue) { if (voicesBuilder_ == null) { ensureVoicesIsMutable(); voices_.add(builderForValue.build()); @@ -718,8 +657,6 @@ public Builder addVoices(com.google.cloud.texttospeech.v1.Voice.Builder builderF return this; } /** - * - * *
      * The list of voices.
      * 
@@ -738,8 +675,6 @@ public Builder addVoices( return this; } /** - * - * *
      * The list of voices.
      * 
@@ -750,7 +685,8 @@ public Builder addAllVoices( java.lang.Iterable values) { if (voicesBuilder_ == null) { ensureVoicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, voices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, voices_); onChanged(); } else { voicesBuilder_.addAllMessages(values); @@ -758,8 +694,6 @@ public Builder addAllVoices( return this; } /** - * - * *
      * The list of voices.
      * 
@@ -777,8 +711,6 @@ public Builder clearVoices() { return this; } /** - * - * *
      * The list of voices.
      * 
@@ -796,44 +728,39 @@ public Builder removeVoices(int index) { return this; } /** - * - * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - public com.google.cloud.texttospeech.v1.Voice.Builder getVoicesBuilder(int index) { + public com.google.cloud.texttospeech.v1.Voice.Builder getVoicesBuilder( + int index) { return getVoicesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - public com.google.cloud.texttospeech.v1.VoiceOrBuilder getVoicesOrBuilder(int index) { + public com.google.cloud.texttospeech.v1.VoiceOrBuilder getVoicesOrBuilder( + int index) { if (voicesBuilder_ == null) { - return voices_.get(index); - } else { + return voices_.get(index); } else { return voicesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - public java.util.List - getVoicesOrBuilderList() { + public java.util.List + getVoicesOrBuilderList() { if (voicesBuilder_ != null) { return voicesBuilder_.getMessageOrBuilderList(); } else { @@ -841,8 +768,6 @@ public com.google.cloud.texttospeech.v1.VoiceOrBuilder getVoicesOrBuilder(int in } } /** - * - * *
      * The list of voices.
      * 
@@ -850,54 +775,49 @@ public com.google.cloud.texttospeech.v1.VoiceOrBuilder getVoicesOrBuilder(int in * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ public com.google.cloud.texttospeech.v1.Voice.Builder addVoicesBuilder() { - return getVoicesFieldBuilder() - .addBuilder(com.google.cloud.texttospeech.v1.Voice.getDefaultInstance()); + return getVoicesFieldBuilder().addBuilder( + com.google.cloud.texttospeech.v1.Voice.getDefaultInstance()); } /** - * - * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - public com.google.cloud.texttospeech.v1.Voice.Builder addVoicesBuilder(int index) { - return getVoicesFieldBuilder() - .addBuilder(index, com.google.cloud.texttospeech.v1.Voice.getDefaultInstance()); + public com.google.cloud.texttospeech.v1.Voice.Builder addVoicesBuilder( + int index) { + return getVoicesFieldBuilder().addBuilder( + index, com.google.cloud.texttospeech.v1.Voice.getDefaultInstance()); } /** - * - * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - public java.util.List getVoicesBuilderList() { + public java.util.List + getVoicesBuilderList() { return getVoicesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.texttospeech.v1.Voice, - com.google.cloud.texttospeech.v1.Voice.Builder, - com.google.cloud.texttospeech.v1.VoiceOrBuilder> + com.google.cloud.texttospeech.v1.Voice, com.google.cloud.texttospeech.v1.Voice.Builder, com.google.cloud.texttospeech.v1.VoiceOrBuilder> getVoicesFieldBuilder() { if (voicesBuilder_ == null) { - voicesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.texttospeech.v1.Voice, - com.google.cloud.texttospeech.v1.Voice.Builder, - com.google.cloud.texttospeech.v1.VoiceOrBuilder>( - voices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + voicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.texttospeech.v1.Voice, com.google.cloud.texttospeech.v1.Voice.Builder, com.google.cloud.texttospeech.v1.VoiceOrBuilder>( + voices_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); voices_ = null; } return voicesBuilder_; } - @java.lang.Override - 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 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.ListVoicesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.ListVoicesResponse) private static final com.google.cloud.texttospeech.v1.ListVoicesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.ListVoicesResponse(); } @@ -921,16 +841,16 @@ public static com.google.cloud.texttospeech.v1.ListVoicesResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVoicesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVoicesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVoicesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVoicesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -945,4 +865,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1.ListVoicesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponseOrBuilder.java similarity index 60% rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponseOrBuilder.java index e53e081d..253480e2 100644 --- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; -public interface ListVoicesResponseOrBuilder - extends +public interface ListVoicesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.ListVoicesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of voices.
    * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - java.util.List getVoicesList(); + java.util.List + getVoicesList(); /** - * - * *
    * The list of voices.
    * 
@@ -44,8 +25,6 @@ public interface ListVoicesResponseOrBuilder */ com.google.cloud.texttospeech.v1.Voice getVoices(int index); /** - * - * *
    * The list of voices.
    * 
@@ -54,24 +33,21 @@ public interface ListVoicesResponseOrBuilder */ int getVoicesCount(); /** - * - * *
    * The list of voices.
    * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - java.util.List + java.util.List getVoicesOrBuilderList(); /** - * - * *
    * The list of voices.
    * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - com.google.cloud.texttospeech.v1.VoiceOrBuilder getVoicesOrBuilder(int index); + com.google.cloud.texttospeech.v1.VoiceOrBuilder getVoicesOrBuilder( + int index); } diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SsmlVoiceGender.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SsmlVoiceGender.java similarity index 71% rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SsmlVoiceGender.java rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SsmlVoiceGender.java index a0a37bdc..ada2d31b 100644 --- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SsmlVoiceGender.java +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SsmlVoiceGender.java @@ -1,26 +1,9 @@ -/* - * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** - * - * *
  * Gender of the voice as described in
  * [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.texttospeech.v1.SsmlVoiceGender}
  */
-public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum {
+public enum SsmlVoiceGender
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * An unspecified gender.
    * In VoiceSelectionParams, this means that the client doesn't care which
@@ -44,8 +26,6 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum {
    */
   SSML_VOICE_GENDER_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * A male voice.
    * 
@@ -54,8 +34,6 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum { */ MALE(1), /** - * - * *
    * A female voice.
    * 
@@ -64,8 +42,6 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum { */ FEMALE(2), /** - * - * *
    * A gender-neutral voice. This voice is not yet supported.
    * 
@@ -77,8 +53,6 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * An unspecified gender.
    * In VoiceSelectionParams, this means that the client doesn't care which
@@ -91,8 +65,6 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int SSML_VOICE_GENDER_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * A male voice.
    * 
@@ -101,8 +73,6 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MALE_VALUE = 1; /** - * - * *
    * A female voice.
    * 
@@ -111,8 +81,6 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FEMALE_VALUE = 2; /** - * - * *
    * A gender-neutral voice. This voice is not yet supported.
    * 
@@ -121,6 +89,7 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NEUTRAL_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -145,51 +114,50 @@ public static SsmlVoiceGender valueOf(int value) { */ public static SsmlVoiceGender forNumber(int value) { switch (value) { - case 0: - return SSML_VOICE_GENDER_UNSPECIFIED; - case 1: - return MALE; - case 2: - return FEMALE; - case 3: - return NEUTRAL; - default: - return null; + case 0: return SSML_VOICE_GENDER_UNSPECIFIED; + case 1: return MALE; + case 2: return FEMALE; + case 3: return NEUTRAL; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SsmlVoiceGender findValueByNumber(int number) { - return SsmlVoiceGender.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + SsmlVoiceGender> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SsmlVoiceGender findValueByNumber(int number) { + return SsmlVoiceGender.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() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.texttospeech.v1.TextToSpeechProto.getDescriptor().getEnumTypes().get(0); } private static final SsmlVoiceGender[] VALUES = values(); - public static SsmlVoiceGender valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SsmlVoiceGender 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; @@ -205,3 +173,4 @@ private SsmlVoiceGender(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.texttospeech.v1.SsmlVoiceGender) } + diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java similarity index 72% rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java index 8cfc897d..c0bf7a0b 100644 --- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java @@ -1,26 +1,9 @@ -/* - * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** - * - * *
  * Contains text input to be synthesized. Either `text` or `ssml` must be
  * supplied. Supplying both or neither returns
@@ -30,29 +13,30 @@
  *
  * Protobuf type {@code google.cloud.texttospeech.v1.SynthesisInput}
  */
-public final class SynthesisInput extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SynthesisInput extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.SynthesisInput)
     SynthesisInputOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SynthesisInput.newBuilder() to construct.
   private SynthesisInput(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private SynthesisInput() {}
+  private SynthesisInput() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SynthesisInput();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SynthesisInput(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,66 +55,59 @@ private SynthesisInput(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              inputSourceCase_ = 1;
-              inputSource_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              inputSourceCase_ = 2;
-              inputSource_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+            inputSourceCase_ = 1;
+            inputSource_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+            inputSourceCase_ = 2;
+            inputSource_ = s;
+            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.texttospeech.v1.TextToSpeechProto
-        .internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.texttospeech.v1.TextToSpeechProto
-        .internal_static_google_cloud_texttospeech_v1_SynthesisInput_fieldAccessorTable
+    return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesisInput_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.texttospeech.v1.SynthesisInput.class,
-            com.google.cloud.texttospeech.v1.SynthesisInput.Builder.class);
+            com.google.cloud.texttospeech.v1.SynthesisInput.class, com.google.cloud.texttospeech.v1.SynthesisInput.Builder.class);
   }
 
   private int inputSourceCase_ = 0;
   private java.lang.Object inputSource_;
-
   public enum InputSourceCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     TEXT(1),
     SSML(2),
     INPUTSOURCE_NOT_SET(0);
     private final int value;
-
     private InputSourceCase(int value) {
       this.value = value;
     }
@@ -146,50 +123,41 @@ public static InputSourceCase valueOf(int value) {
 
     public static InputSourceCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return TEXT;
-        case 2:
-          return SSML;
-        case 0:
-          return INPUTSOURCE_NOT_SET;
-        default:
-          return null;
+        case 1: return TEXT;
+        case 2: return SSML;
+        case 0: return INPUTSOURCE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public InputSourceCase getInputSourceCase() {
-    return InputSourceCase.forNumber(inputSourceCase_);
+  public InputSourceCase
+  getInputSourceCase() {
+    return InputSourceCase.forNumber(
+        inputSourceCase_);
   }
 
   public static final int TEXT_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * The raw text to be synthesized.
    * 
* * string text = 1; - * * @return Whether the text field is set. */ public boolean hasText() { return inputSourceCase_ == 1; } /** - * - * *
    * The raw text to be synthesized.
    * 
* * string text = 1; - * * @return The text. */ public java.lang.String getText() { @@ -200,7 +168,8 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (inputSourceCase_ == 1) { inputSource_ = s; @@ -209,24 +178,23 @@ public java.lang.String getText() { } } /** - * - * *
    * The raw text to be synthesized.
    * 
* * string text = 1; - * * @return The bytes for text. */ - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = ""; if (inputSourceCase_ == 1) { ref = inputSource_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (inputSourceCase_ == 1) { inputSource_ = b; } @@ -238,8 +206,6 @@ public com.google.protobuf.ByteString getTextBytes() { public static final int SSML_FIELD_NUMBER = 2; /** - * - * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -248,15 +214,12 @@ public com.google.protobuf.ByteString getTextBytes() {
    * 
* * string ssml = 2; - * * @return Whether the ssml field is set. */ public boolean hasSsml() { return inputSourceCase_ == 2; } /** - * - * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -265,7 +228,6 @@ public boolean hasSsml() {
    * 
* * string ssml = 2; - * * @return The ssml. */ public java.lang.String getSsml() { @@ -276,7 +238,8 @@ public java.lang.String getSsml() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (inputSourceCase_ == 2) { inputSource_ = s; @@ -285,8 +248,6 @@ public java.lang.String getSsml() { } } /** - * - * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -295,17 +256,18 @@ public java.lang.String getSsml() {
    * 
* * string ssml = 2; - * * @return The bytes for ssml. */ - public com.google.protobuf.ByteString getSsmlBytes() { + public com.google.protobuf.ByteString + getSsmlBytes() { java.lang.Object ref = ""; if (inputSourceCase_ == 2) { ref = inputSource_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (inputSourceCase_ == 2) { inputSource_ = b; } @@ -316,7 +278,6 @@ public com.google.protobuf.ByteString getSsmlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (inputSourceCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputSource_); } @@ -358,21 +320,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.texttospeech.v1.SynthesisInput)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1.SynthesisInput other = - (com.google.cloud.texttospeech.v1.SynthesisInput) obj; + com.google.cloud.texttospeech.v1.SynthesisInput other = (com.google.cloud.texttospeech.v1.SynthesisInput) obj; if (!getInputSourceCase().equals(other.getInputSourceCase())) return false; switch (inputSourceCase_) { case 1: - if (!getText().equals(other.getText())) return false; + if (!getText() + .equals(other.getText())) return false; break; case 2: - if (!getSsml().equals(other.getSsml())) return false; + if (!getSsml() + .equals(other.getSsml())) return false; break; case 0: default: @@ -405,104 +368,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.SynthesisInput 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.texttospeech.v1.SynthesisInput parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1.SynthesisInput parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1.SynthesisInput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.SynthesisInput parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.texttospeech.v1.SynthesisInput prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains text input to be synthesized. Either `text` or `ssml` must be
    * supplied. Supplying both or neither returns
@@ -512,23 +468,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.texttospeech.v1.SynthesisInput}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.SynthesisInput)
       com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.texttospeech.v1.TextToSpeechProto
-          .internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.texttospeech.v1.TextToSpeechProto
-          .internal_static_google_cloud_texttospeech_v1_SynthesisInput_fieldAccessorTable
+      return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesisInput_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.texttospeech.v1.SynthesisInput.class,
-              com.google.cloud.texttospeech.v1.SynthesisInput.Builder.class);
+              com.google.cloud.texttospeech.v1.SynthesisInput.class, com.google.cloud.texttospeech.v1.SynthesisInput.Builder.class);
     }
 
     // Construct using com.google.cloud.texttospeech.v1.SynthesisInput.newBuilder()
@@ -536,15 +490,16 @@ 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();
@@ -554,9 +509,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.texttospeech.v1.TextToSpeechProto
-          .internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor;
     }
 
     @java.lang.Override
@@ -575,8 +530,7 @@ public com.google.cloud.texttospeech.v1.SynthesisInput build() {
 
     @java.lang.Override
     public com.google.cloud.texttospeech.v1.SynthesisInput buildPartial() {
-      com.google.cloud.texttospeech.v1.SynthesisInput result =
-          new com.google.cloud.texttospeech.v1.SynthesisInput(this);
+      com.google.cloud.texttospeech.v1.SynthesisInput result = new com.google.cloud.texttospeech.v1.SynthesisInput(this);
       if (inputSourceCase_ == 1) {
         result.inputSource_ = inputSource_;
       }
@@ -592,39 +546,38 @@ public com.google.cloud.texttospeech.v1.SynthesisInput 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.texttospeech.v1.SynthesisInput) {
-        return mergeFrom((com.google.cloud.texttospeech.v1.SynthesisInput) other);
+        return mergeFrom((com.google.cloud.texttospeech.v1.SynthesisInput)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -632,27 +585,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.texttospeech.v1.SynthesisInput other) {
-      if (other == com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance()) return this;
       switch (other.getInputSourceCase()) {
-        case TEXT:
-          {
-            inputSourceCase_ = 1;
-            inputSource_ = other.inputSource_;
-            onChanged();
-            break;
-          }
-        case SSML:
-          {
-            inputSourceCase_ = 2;
-            inputSource_ = other.inputSource_;
-            onChanged();
-            break;
-          }
-        case INPUTSOURCE_NOT_SET:
-          {
-            break;
-          }
+        case TEXT: {
+          inputSourceCase_ = 1;
+          inputSource_ = other.inputSource_;
+          onChanged();
+          break;
+        }
+        case SSML: {
+          inputSourceCase_ = 2;
+          inputSource_ = other.inputSource_;
+          onChanged();
+          break;
+        }
+        case INPUTSOURCE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -682,12 +631,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int inputSourceCase_ = 0;
     private java.lang.Object inputSource_;
-
-    public InputSourceCase getInputSourceCase() {
-      return InputSourceCase.forNumber(inputSourceCase_);
+    public InputSourceCase
+        getInputSourceCase() {
+      return InputSourceCase.forNumber(
+          inputSourceCase_);
     }
 
     public Builder clearInputSource() {
@@ -697,15 +646,13 @@ public Builder clearInputSource() {
       return this;
     }
 
+
     /**
-     *
-     *
      * 
      * The raw text to be synthesized.
      * 
* * string text = 1; - * * @return Whether the text field is set. */ @java.lang.Override @@ -713,14 +660,11 @@ public boolean hasText() { return inputSourceCase_ == 1; } /** - * - * *
      * The raw text to be synthesized.
      * 
* * string text = 1; - * * @return The text. */ @java.lang.Override @@ -730,7 +674,8 @@ public java.lang.String getText() { ref = inputSource_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (inputSourceCase_ == 1) { inputSource_ = s; @@ -741,25 +686,24 @@ public java.lang.String getText() { } } /** - * - * *
      * The raw text to be synthesized.
      * 
* * string text = 1; - * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = ""; if (inputSourceCase_ == 1) { ref = inputSource_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (inputSourceCase_ == 1) { inputSource_ = b; } @@ -769,35 +713,30 @@ public com.google.protobuf.ByteString getTextBytes() { } } /** - * - * *
      * The raw text to be synthesized.
      * 
* * string text = 1; - * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(java.lang.String value) { + public Builder setText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - inputSourceCase_ = 1; + throw new NullPointerException(); + } + inputSourceCase_ = 1; inputSource_ = value; onChanged(); return this; } /** - * - * *
      * The raw text to be synthesized.
      * 
* * string text = 1; - * * @return This builder for chaining. */ public Builder clearText() { @@ -809,22 +748,20 @@ public Builder clearText() { return this; } /** - * - * *
      * The raw text to be synthesized.
      * 
* * string text = 1; - * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + public Builder setTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); inputSourceCase_ = 1; inputSource_ = value; onChanged(); @@ -832,8 +769,6 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -842,7 +777,6 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) {
      * 
* * string ssml = 2; - * * @return Whether the ssml field is set. */ @java.lang.Override @@ -850,8 +784,6 @@ public boolean hasSsml() { return inputSourceCase_ == 2; } /** - * - * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -860,7 +792,6 @@ public boolean hasSsml() {
      * 
* * string ssml = 2; - * * @return The ssml. */ @java.lang.Override @@ -870,7 +801,8 @@ public java.lang.String getSsml() { ref = inputSource_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (inputSourceCase_ == 2) { inputSource_ = s; @@ -881,8 +813,6 @@ public java.lang.String getSsml() { } } /** - * - * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -891,18 +821,19 @@ public java.lang.String getSsml() {
      * 
* * string ssml = 2; - * * @return The bytes for ssml. */ @java.lang.Override - public com.google.protobuf.ByteString getSsmlBytes() { + public com.google.protobuf.ByteString + getSsmlBytes() { java.lang.Object ref = ""; if (inputSourceCase_ == 2) { ref = inputSource_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (inputSourceCase_ == 2) { inputSource_ = b; } @@ -912,8 +843,6 @@ public com.google.protobuf.ByteString getSsmlBytes() { } } /** - * - * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -922,22 +851,20 @@ public com.google.protobuf.ByteString getSsmlBytes() {
      * 
* * string ssml = 2; - * * @param value The ssml to set. * @return This builder for chaining. */ - public Builder setSsml(java.lang.String value) { + public Builder setSsml( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - inputSourceCase_ = 2; + throw new NullPointerException(); + } + inputSourceCase_ = 2; inputSource_ = value; onChanged(); return this; } /** - * - * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -946,7 +873,6 @@ public Builder setSsml(java.lang.String value) {
      * 
* * string ssml = 2; - * * @return This builder for chaining. */ public Builder clearSsml() { @@ -958,8 +884,6 @@ public Builder clearSsml() { return this; } /** - * - * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -968,23 +892,23 @@ public Builder clearSsml() {
      * 
* * string ssml = 2; - * * @param value The bytes for ssml to set. * @return This builder for chaining. */ - public Builder setSsmlBytes(com.google.protobuf.ByteString value) { + public Builder setSsmlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); inputSourceCase_ = 2; inputSource_ = 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); } @@ -994,12 +918,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.SynthesisInput) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.SynthesisInput) private static final com.google.cloud.texttospeech.v1.SynthesisInput DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.SynthesisInput(); } @@ -1008,16 +932,16 @@ public static com.google.cloud.texttospeech.v1.SynthesisInput getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SynthesisInput parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SynthesisInput(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SynthesisInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SynthesisInput(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1032,4 +956,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1.SynthesisInput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java similarity index 71% rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java index 412be426..25c02cd7 100644 --- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java @@ -1,68 +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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; -public interface SynthesisInputOrBuilder - extends +public interface SynthesisInputOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.SynthesisInput) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The raw text to be synthesized.
    * 
* * string text = 1; - * * @return Whether the text field is set. */ boolean hasText(); /** - * - * *
    * The raw text to be synthesized.
    * 
* * string text = 1; - * * @return The text. */ java.lang.String getText(); /** - * - * *
    * The raw text to be synthesized.
    * 
* * string text = 1; - * * @return The bytes for text. */ - com.google.protobuf.ByteString getTextBytes(); + com.google.protobuf.ByteString + getTextBytes(); /** - * - * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -71,13 +45,10 @@ public interface SynthesisInputOrBuilder
    * 
* * string ssml = 2; - * * @return Whether the ssml field is set. */ boolean hasSsml(); /** - * - * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -86,13 +57,10 @@ public interface SynthesisInputOrBuilder
    * 
* * string ssml = 2; - * * @return The ssml. */ java.lang.String getSsml(); /** - * - * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -101,10 +69,10 @@ public interface SynthesisInputOrBuilder
    * 
* * string ssml = 2; - * * @return The bytes for ssml. */ - com.google.protobuf.ByteString getSsmlBytes(); + com.google.protobuf.ByteString + getSsmlBytes(); public com.google.cloud.texttospeech.v1.SynthesisInput.InputSourceCase getInputSourceCase(); } diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java similarity index 60% rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java index 720752a0..bba234a1 100644 --- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java @@ -1,55 +1,39 @@ -/* - * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** - * - * *
  * The top-level message sent by the client for the `SynthesizeSpeech` method.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1.SynthesizeSpeechRequest} */ -public final class SynthesizeSpeechRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SynthesizeSpeechRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.SynthesizeSpeechRequest) SynthesizeSpeechRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SynthesizeSpeechRequest.newBuilder() to construct. private SynthesizeSpeechRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SynthesizeSpeechRequest() {} + private SynthesizeSpeechRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SynthesizeSpeechRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SynthesizeSpeechRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,102 +52,85 @@ private SynthesizeSpeechRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.texttospeech.v1.SynthesisInput.Builder subBuilder = null; - if (input_ != null) { - subBuilder = input_.toBuilder(); - } - input_ = - input.readMessage( - com.google.cloud.texttospeech.v1.SynthesisInput.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(input_); - input_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.texttospeech.v1.SynthesisInput.Builder subBuilder = null; + if (input_ != null) { + subBuilder = input_.toBuilder(); + } + input_ = input.readMessage(com.google.cloud.texttospeech.v1.SynthesisInput.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(input_); + input_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder subBuilder = null; - if (voice_ != null) { - subBuilder = voice_.toBuilder(); - } - voice_ = - input.readMessage( - com.google.cloud.texttospeech.v1.VoiceSelectionParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(voice_); - voice_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder subBuilder = null; + if (voice_ != null) { + subBuilder = voice_.toBuilder(); + } + voice_ = input.readMessage(com.google.cloud.texttospeech.v1.VoiceSelectionParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(voice_); + voice_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.texttospeech.v1.AudioConfig.Builder subBuilder = null; - if (audioConfig_ != null) { - subBuilder = audioConfig_.toBuilder(); - } - audioConfig_ = - input.readMessage( - com.google.cloud.texttospeech.v1.AudioConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(audioConfig_); - audioConfig_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.cloud.texttospeech.v1.AudioConfig.Builder subBuilder = null; + if (audioConfig_ != null) { + subBuilder = audioConfig_.toBuilder(); + } + audioConfig_ = input.readMessage(com.google.cloud.texttospeech.v1.AudioConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audioConfig_); + audioConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.class, - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.Builder.class); + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.class, com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.Builder.class); } public static final int INPUT_FIELD_NUMBER = 1; private com.google.cloud.texttospeech.v1.SynthesisInput input_; /** - * - * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the input field is set. */ @java.lang.Override @@ -171,34 +138,23 @@ public boolean hasInput() { return input_ != null; } /** - * - * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The input. */ @java.lang.Override public com.google.cloud.texttospeech.v1.SynthesisInput getInput() { - return input_ == null - ? com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance() - : input_; + return input_ == null ? com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance() : input_; } /** - * - * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder getInputOrBuilder() { @@ -208,16 +164,11 @@ public com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder getInputOrBuilde public static final int VOICE_FIELD_NUMBER = 2; private com.google.cloud.texttospeech.v1.VoiceSelectionParams voice_; /** - * - * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the voice field is set. */ @java.lang.Override @@ -225,34 +176,23 @@ public boolean hasVoice() { return voice_ != null; } /** - * - * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The voice. */ @java.lang.Override public com.google.cloud.texttospeech.v1.VoiceSelectionParams getVoice() { - return voice_ == null - ? com.google.cloud.texttospeech.v1.VoiceSelectionParams.getDefaultInstance() - : voice_; + return voice_ == null ? com.google.cloud.texttospeech.v1.VoiceSelectionParams.getDefaultInstance() : voice_; } /** - * - * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { @@ -262,16 +202,11 @@ public com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder getVoiceOr public static final int AUDIO_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.texttospeech.v1.AudioConfig audioConfig_; /** - * - * *
    * Required. The configuration of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audioConfig field is set. */ @java.lang.Override @@ -279,34 +214,23 @@ public boolean hasAudioConfig() { return audioConfig_ != null; } /** - * - * *
    * Required. The configuration of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The audioConfig. */ @java.lang.Override public com.google.cloud.texttospeech.v1.AudioConfig getAudioConfig() { - return audioConfig_ == null - ? com.google.cloud.texttospeech.v1.AudioConfig.getDefaultInstance() - : audioConfig_; + return audioConfig_ == null ? com.google.cloud.texttospeech.v1.AudioConfig.getDefaultInstance() : audioConfig_; } /** - * - * *
    * Required. The configuration of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.texttospeech.v1.AudioConfigOrBuilder getAudioConfigOrBuilder() { @@ -314,7 +238,6 @@ public com.google.cloud.texttospeech.v1.AudioConfigOrBuilder getAudioConfigOrBui } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,7 +249,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (input_ != null) { output.writeMessage(1, getInput()); } @@ -346,13 +270,16 @@ public int getSerializedSize() { size = 0; if (input_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInput()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInput()); } if (voice_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVoice()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getVoice()); } if (audioConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAudioConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAudioConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -362,25 +289,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.texttospeech.v1.SynthesizeSpeechRequest)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest other = - (com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest) obj; + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest other = (com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest) obj; if (hasInput() != other.hasInput()) return false; if (hasInput()) { - if (!getInput().equals(other.getInput())) return false; + if (!getInput() + .equals(other.getInput())) return false; } if (hasVoice() != other.hasVoice()) return false; if (hasVoice()) { - if (!getVoice().equals(other.getVoice())) return false; + if (!getVoice() + .equals(other.getVoice())) return false; } if (hasAudioConfig() != other.hasAudioConfig()) return false; if (hasAudioConfig()) { - if (!getAudioConfig().equals(other.getAudioConfig())) return false; + if (!getAudioConfig() + .equals(other.getAudioConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -411,127 +340,117 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest prototype) { + public static Builder newBuilder(com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 top-level message sent by the client for the `SynthesizeSpeech` method.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1.SynthesizeSpeechRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.SynthesizeSpeechRequest) com.google.cloud.texttospeech.v1.SynthesizeSpeechRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.class, - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.Builder.class); + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.class, com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.Builder.class); } // Construct using com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.newBuilder() @@ -539,15 +458,16 @@ 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(); @@ -573,9 +493,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor; } @java.lang.Override @@ -594,8 +514,7 @@ public com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest build() { @java.lang.Override public com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest buildPartial() { - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest result = - new com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest(this); + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest result = new com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest(this); if (inputBuilder_ == null) { result.input_ = input_; } else { @@ -619,39 +538,38 @@ public com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest 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.texttospeech.v1.SynthesizeSpeechRequest) { - return mergeFrom((com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest) other); + return mergeFrom((com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest)other); } else { super.mergeFrom(other); return this; @@ -659,8 +577,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest other) { - if (other == com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.getDefaultInstance()) return this; if (other.hasInput()) { mergeInput(other.getInput()); } @@ -689,8 +606,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -702,58 +618,39 @@ public Builder mergeFrom( private com.google.cloud.texttospeech.v1.SynthesisInput input_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.SynthesisInput, - com.google.cloud.texttospeech.v1.SynthesisInput.Builder, - com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder> - inputBuilder_; + com.google.cloud.texttospeech.v1.SynthesisInput, com.google.cloud.texttospeech.v1.SynthesisInput.Builder, com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder> inputBuilder_; /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the input field is set. */ public boolean hasInput() { return inputBuilder_ != null || input_ != null; } /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The input. */ public com.google.cloud.texttospeech.v1.SynthesisInput getInput() { if (inputBuilder_ == null) { - return input_ == null - ? com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance() - : input_; + return input_ == null ? com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance() : input_; } else { return inputBuilder_.getMessage(); } } /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInput(com.google.cloud.texttospeech.v1.SynthesisInput value) { if (inputBuilder_ == null) { @@ -769,15 +666,11 @@ public Builder setInput(com.google.cloud.texttospeech.v1.SynthesisInput value) { return this; } /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInput( com.google.cloud.texttospeech.v1.SynthesisInput.Builder builderForValue) { @@ -791,23 +684,17 @@ public Builder setInput( return this; } /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInput(com.google.cloud.texttospeech.v1.SynthesisInput value) { if (inputBuilder_ == null) { if (input_ != null) { input_ = - com.google.cloud.texttospeech.v1.SynthesisInput.newBuilder(input_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.texttospeech.v1.SynthesisInput.newBuilder(input_).mergeFrom(value).buildPartial(); } else { input_ = value; } @@ -819,15 +706,11 @@ public Builder mergeInput(com.google.cloud.texttospeech.v1.SynthesisInput value) return this; } /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInput() { if (inputBuilder_ == null) { @@ -841,64 +724,48 @@ public Builder clearInput() { return this; } /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.texttospeech.v1.SynthesisInput.Builder getInputBuilder() { - + onChanged(); return getInputFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { return inputBuilder_.getMessageOrBuilder(); } else { - return input_ == null - ? com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance() - : input_; + return input_ == null ? + com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance() : input_; } } /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.SynthesisInput, - com.google.cloud.texttospeech.v1.SynthesisInput.Builder, - com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder> + com.google.cloud.texttospeech.v1.SynthesisInput, com.google.cloud.texttospeech.v1.SynthesisInput.Builder, com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder> getInputFieldBuilder() { if (inputBuilder_ == null) { - inputBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.SynthesisInput, - com.google.cloud.texttospeech.v1.SynthesisInput.Builder, - com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder>( - getInput(), getParentForChildren(), isClean()); + inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1.SynthesisInput, com.google.cloud.texttospeech.v1.SynthesisInput.Builder, com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder>( + getInput(), + getParentForChildren(), + isClean()); input_ = null; } return inputBuilder_; @@ -906,58 +773,39 @@ public com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder getInputOrBuilde private com.google.cloud.texttospeech.v1.VoiceSelectionParams voice_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.VoiceSelectionParams, - com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder, - com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder> - voiceBuilder_; + com.google.cloud.texttospeech.v1.VoiceSelectionParams, com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder, com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder> voiceBuilder_; /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the voice field is set. */ public boolean hasVoice() { return voiceBuilder_ != null || voice_ != null; } /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The voice. */ public com.google.cloud.texttospeech.v1.VoiceSelectionParams getVoice() { if (voiceBuilder_ == null) { - return voice_ == null - ? com.google.cloud.texttospeech.v1.VoiceSelectionParams.getDefaultInstance() - : voice_; + return voice_ == null ? com.google.cloud.texttospeech.v1.VoiceSelectionParams.getDefaultInstance() : voice_; } else { return voiceBuilder_.getMessage(); } } /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setVoice(com.google.cloud.texttospeech.v1.VoiceSelectionParams value) { if (voiceBuilder_ == null) { @@ -973,15 +821,11 @@ public Builder setVoice(com.google.cloud.texttospeech.v1.VoiceSelectionParams va return this; } /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setVoice( com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder builderForValue) { @@ -995,23 +839,17 @@ public Builder setVoice( return this; } /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeVoice(com.google.cloud.texttospeech.v1.VoiceSelectionParams value) { if (voiceBuilder_ == null) { if (voice_ != null) { voice_ = - com.google.cloud.texttospeech.v1.VoiceSelectionParams.newBuilder(voice_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.texttospeech.v1.VoiceSelectionParams.newBuilder(voice_).mergeFrom(value).buildPartial(); } else { voice_ = value; } @@ -1023,15 +861,11 @@ public Builder mergeVoice(com.google.cloud.texttospeech.v1.VoiceSelectionParams return this; } /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearVoice() { if (voiceBuilder_ == null) { @@ -1045,64 +879,48 @@ public Builder clearVoice() { return this; } /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder getVoiceBuilder() { - + onChanged(); return getVoiceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { if (voiceBuilder_ != null) { return voiceBuilder_.getMessageOrBuilder(); } else { - return voice_ == null - ? com.google.cloud.texttospeech.v1.VoiceSelectionParams.getDefaultInstance() - : voice_; + return voice_ == null ? + com.google.cloud.texttospeech.v1.VoiceSelectionParams.getDefaultInstance() : voice_; } } /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.VoiceSelectionParams, - com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder, - com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder> + com.google.cloud.texttospeech.v1.VoiceSelectionParams, com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder, com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder> getVoiceFieldBuilder() { if (voiceBuilder_ == null) { - voiceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.VoiceSelectionParams, - com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder, - com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder>( - getVoice(), getParentForChildren(), isClean()); + voiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1.VoiceSelectionParams, com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder, com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder>( + getVoice(), + getParentForChildren(), + isClean()); voice_ = null; } return voiceBuilder_; @@ -1110,58 +928,39 @@ public com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder getVoiceOr private com.google.cloud.texttospeech.v1.AudioConfig audioConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.AudioConfig, - com.google.cloud.texttospeech.v1.AudioConfig.Builder, - com.google.cloud.texttospeech.v1.AudioConfigOrBuilder> - audioConfigBuilder_; + com.google.cloud.texttospeech.v1.AudioConfig, com.google.cloud.texttospeech.v1.AudioConfig.Builder, com.google.cloud.texttospeech.v1.AudioConfigOrBuilder> audioConfigBuilder_; /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audioConfig field is set. */ public boolean hasAudioConfig() { return audioConfigBuilder_ != null || audioConfig_ != null; } /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The audioConfig. */ public com.google.cloud.texttospeech.v1.AudioConfig getAudioConfig() { if (audioConfigBuilder_ == null) { - return audioConfig_ == null - ? com.google.cloud.texttospeech.v1.AudioConfig.getDefaultInstance() - : audioConfig_; + return audioConfig_ == null ? com.google.cloud.texttospeech.v1.AudioConfig.getDefaultInstance() : audioConfig_; } else { return audioConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAudioConfig(com.google.cloud.texttospeech.v1.AudioConfig value) { if (audioConfigBuilder_ == null) { @@ -1177,15 +976,11 @@ public Builder setAudioConfig(com.google.cloud.texttospeech.v1.AudioConfig value return this; } /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAudioConfig( com.google.cloud.texttospeech.v1.AudioConfig.Builder builderForValue) { @@ -1199,23 +994,17 @@ public Builder setAudioConfig( return this; } /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAudioConfig(com.google.cloud.texttospeech.v1.AudioConfig value) { if (audioConfigBuilder_ == null) { if (audioConfig_ != null) { audioConfig_ = - com.google.cloud.texttospeech.v1.AudioConfig.newBuilder(audioConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.texttospeech.v1.AudioConfig.newBuilder(audioConfig_).mergeFrom(value).buildPartial(); } else { audioConfig_ = value; } @@ -1227,15 +1016,11 @@ public Builder mergeAudioConfig(com.google.cloud.texttospeech.v1.AudioConfig val return this; } /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAudioConfig() { if (audioConfigBuilder_ == null) { @@ -1249,71 +1034,55 @@ public Builder clearAudioConfig() { return this; } /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.texttospeech.v1.AudioConfig.Builder getAudioConfigBuilder() { - + onChanged(); return getAudioConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.texttospeech.v1.AudioConfigOrBuilder getAudioConfigOrBuilder() { if (audioConfigBuilder_ != null) { return audioConfigBuilder_.getMessageOrBuilder(); } else { - return audioConfig_ == null - ? com.google.cloud.texttospeech.v1.AudioConfig.getDefaultInstance() - : audioConfig_; + return audioConfig_ == null ? + com.google.cloud.texttospeech.v1.AudioConfig.getDefaultInstance() : audioConfig_; } } /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.AudioConfig, - com.google.cloud.texttospeech.v1.AudioConfig.Builder, - com.google.cloud.texttospeech.v1.AudioConfigOrBuilder> + com.google.cloud.texttospeech.v1.AudioConfig, com.google.cloud.texttospeech.v1.AudioConfig.Builder, com.google.cloud.texttospeech.v1.AudioConfigOrBuilder> getAudioConfigFieldBuilder() { if (audioConfigBuilder_ == null) { - audioConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.AudioConfig, - com.google.cloud.texttospeech.v1.AudioConfig.Builder, - com.google.cloud.texttospeech.v1.AudioConfigOrBuilder>( - getAudioConfig(), getParentForChildren(), isClean()); + audioConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1.AudioConfig, com.google.cloud.texttospeech.v1.AudioConfig.Builder, com.google.cloud.texttospeech.v1.AudioConfigOrBuilder>( + getAudioConfig(), + getParentForChildren(), + isClean()); audioConfig_ = null; } return audioConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1323,12 +1092,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.SynthesizeSpeechRequest) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.SynthesizeSpeechRequest) private static final com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest(); } @@ -1337,16 +1106,16 @@ public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SynthesizeSpeechRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SynthesizeSpeechRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SynthesizeSpeechRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SynthesizeSpeechRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1361,4 +1130,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java similarity index 50% rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java index 4da6f776..26fe0173 100644 --- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java @@ -1,148 +1,90 @@ -/* - * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; -public interface SynthesizeSpeechRequestOrBuilder - extends +public interface SynthesizeSpeechRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.SynthesizeSpeechRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the input field is set. */ boolean hasInput(); /** - * - * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The input. */ com.google.cloud.texttospeech.v1.SynthesisInput getInput(); /** - * - * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder getInputOrBuilder(); /** - * - * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the voice field is set. */ boolean hasVoice(); /** - * - * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The voice. */ com.google.cloud.texttospeech.v1.VoiceSelectionParams getVoice(); /** - * - * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder(); /** - * - * *
    * Required. The configuration of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audioConfig field is set. */ boolean hasAudioConfig(); /** - * - * *
    * Required. The configuration of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The audioConfig. */ com.google.cloud.texttospeech.v1.AudioConfig getAudioConfig(); /** - * - * *
    * Required. The configuration of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.texttospeech.v1.AudioConfigOrBuilder getAudioConfigOrBuilder(); } diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java similarity index 69% rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java index a64b8c9e..1b4bb8f7 100644 --- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java @@ -1,57 +1,40 @@ -/* - * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** - * - * *
  * The message returned to the client by the `SynthesizeSpeech` method.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1.SynthesizeSpeechResponse} */ -public final class SynthesizeSpeechResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SynthesizeSpeechResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.SynthesizeSpeechResponse) SynthesizeSpeechResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SynthesizeSpeechResponse.newBuilder() to construct. private SynthesizeSpeechResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SynthesizeSpeechResponse() { audioContent_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SynthesizeSpeechResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SynthesizeSpeechResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,50 +53,46 @@ private SynthesizeSpeechResponse( case 0: done = true; break; - case 10: - { - audioContent_ = input.readBytes(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 10: { + + audioContent_ = input.readBytes(); + 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.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.class, - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.Builder.class); + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.class, com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.Builder.class); } public static final int AUDIO_CONTENT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString audioContent_; /** - * - * *
    * The audio data bytes encoded as specified in the request, including the
    * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -123,7 +102,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bytes audio_content = 1; - * * @return The audioContent. */ @java.lang.Override @@ -132,7 +110,6 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -144,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!audioContent_.isEmpty()) { output.writeBytes(1, audioContent_); } @@ -158,7 +136,8 @@ public int getSerializedSize() { size = 0; if (!audioContent_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, audioContent_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, audioContent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -168,15 +147,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse other = - (com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse) obj; + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse other = (com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse) obj; - if (!getAudioContent().equals(other.getAudioContent())) return false; + if (!getAudioContent() + .equals(other.getAudioContent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -196,127 +175,117 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse prototype) { + public static Builder newBuilder(com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message returned to the client by the `SynthesizeSpeech` method.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1.SynthesizeSpeechResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.SynthesizeSpeechResponse) com.google.cloud.texttospeech.v1.SynthesizeSpeechResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.class, - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.Builder.class); + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.class, com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.Builder.class); } // Construct using com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.newBuilder() @@ -324,15 +293,16 @@ 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(); @@ -342,9 +312,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor; } @java.lang.Override @@ -363,8 +333,7 @@ public com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse build() { @java.lang.Override public com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse buildPartial() { - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse result = - new com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse(this); + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse result = new com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse(this); result.audioContent_ = audioContent_; onBuilt(); return result; @@ -374,39 +343,38 @@ public com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse 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.texttospeech.v1.SynthesizeSpeechResponse) { - return mergeFrom((com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse) other); + return mergeFrom((com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse)other); } else { super.mergeFrom(other); return this; @@ -414,8 +382,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse other) { - if (other == com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.getDefaultInstance()) return this; if (other.getAudioContent() != com.google.protobuf.ByteString.EMPTY) { setAudioContent(other.getAudioContent()); } @@ -438,8 +405,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,8 +417,6 @@ public Builder mergeFrom( private com.google.protobuf.ByteString audioContent_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The audio data bytes encoded as specified in the request, including the
      * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -462,7 +426,6 @@ public Builder mergeFrom(
      * 
* * bytes audio_content = 1; - * * @return The audioContent. */ @java.lang.Override @@ -470,8 +433,6 @@ public com.google.protobuf.ByteString getAudioContent() { return audioContent_; } /** - * - * *
      * The audio data bytes encoded as specified in the request, including the
      * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -481,22 +442,19 @@ public com.google.protobuf.ByteString getAudioContent() {
      * 
* * bytes audio_content = 1; - * * @param value The audioContent to set. * @return This builder for chaining. */ public Builder setAudioContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audioContent_ = value; onChanged(); return this; } /** - * - * *
      * The audio data bytes encoded as specified in the request, including the
      * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -506,18 +464,17 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 1; - * * @return This builder for chaining. */ public Builder clearAudioContent() { - + audioContent_ = getDefaultInstance().getAudioContent(); 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); } @@ -527,12 +484,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.SynthesizeSpeechResponse) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.SynthesizeSpeechResponse) private static final com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse(); } @@ -541,16 +498,16 @@ public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SynthesizeSpeechResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SynthesizeSpeechResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SynthesizeSpeechResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SynthesizeSpeechResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -565,4 +522,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java similarity index 54% rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java index 51fa85d6..5e4a44ed 100644 --- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; -public interface SynthesizeSpeechResponseOrBuilder - extends +public interface SynthesizeSpeechResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.SynthesizeSpeechResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The audio data bytes encoded as specified in the request, including the
    * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -35,7 +17,6 @@ public interface SynthesizeSpeechResponseOrBuilder
    * 
* * bytes audio_content = 1; - * * @return The audioContent. */ com.google.protobuf.ByteString getAudioContent(); diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java new file mode 100644 index 00000000..8a283bb4 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java @@ -0,0 +1,194 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/texttospeech/v1/cloud_tts.proto + +package com.google.cloud.texttospeech.v1; + +public final class TextToSpeechProto { + private TextToSpeechProto() {} + 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_texttospeech_v1_ListVoicesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_Voice_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_Voice_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_SynthesisInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_AudioConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_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/texttospeech/v1/cloud_tts" + + ".proto\022\034google.cloud.texttospeech.v1\032\034go" + + "ogle/api/annotations.proto\032\027google/api/c" + + "lient.proto\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\"/\n\021ListV" + + "oicesRequest\022\032\n\rlanguage_code\030\001 \001(\tB\003\340A\001" + + "\"I\n\022ListVoicesResponse\0223\n\006voices\030\001 \003(\0132#" + + ".google.cloud.texttospeech.v1.Voice\"\224\001\n\005" + + "Voice\022\026\n\016language_codes\030\001 \003(\t\022\014\n\004name\030\002 " + + "\001(\t\022B\n\013ssml_gender\030\003 \001(\0162-.google.cloud." + + "texttospeech.v1.SsmlVoiceGender\022!\n\031natur" + + "al_sample_rate_hertz\030\004 \001(\005\"\351\001\n\027Synthesiz" + + "eSpeechRequest\022@\n\005input\030\001 \001(\0132,.google.c" + + "loud.texttospeech.v1.SynthesisInputB\003\340A\002" + + "\022F\n\005voice\030\002 \001(\01322.google.cloud.texttospe" + + "ech.v1.VoiceSelectionParamsB\003\340A\002\022D\n\014audi" + + "o_config\030\003 \001(\0132).google.cloud.texttospee" + + "ch.v1.AudioConfigB\003\340A\002\"@\n\016SynthesisInput" + + "\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000B\016\n\014inpu" + + "t_source\"\204\001\n\024VoiceSelectionParams\022\032\n\rlan" + + "guage_code\030\001 \001(\tB\003\340A\002\022\014\n\004name\030\002 \001(\t\022B\n\013s" + + "sml_gender\030\003 \001(\0162-.google.cloud.texttosp" + + "eech.v1.SsmlVoiceGender\"\361\001\n\013AudioConfig\022" + + "H\n\016audio_encoding\030\001 \001(\0162+.google.cloud.t" + + "exttospeech.v1.AudioEncodingB\003\340A\002\022\035\n\rspe" + + "aking_rate\030\002 \001(\001B\006\340A\004\340A\001\022\025\n\005pitch\030\003 \001(\001B" + + "\006\340A\004\340A\001\022\036\n\016volume_gain_db\030\004 \001(\001B\006\340A\004\340A\001\022" + + "\036\n\021sample_rate_hertz\030\005 \001(\005B\003\340A\001\022\"\n\022effec" + + "ts_profile_id\030\006 \003(\tB\006\340A\004\340A\001\"1\n\030Synthesiz" + + "eSpeechResponse\022\025\n\raudio_content\030\001 \001(\014*W" + + "\n\017SsmlVoiceGender\022!\n\035SSML_VOICE_GENDER_U" + + "NSPECIFIED\020\000\022\010\n\004MALE\020\001\022\n\n\006FEMALE\020\002\022\013\n\007NE" + + "UTRAL\020\003*i\n\rAudioEncoding\022\036\n\032AUDIO_ENCODI" + + "NG_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\007\n\003MP3\020\002\022" + + "\014\n\010OGG_OPUS\020\003\022\t\n\005MULAW\020\005\022\010\n\004ALAW\020\0062\264\003\n\014T" + + "extToSpeech\022\223\001\n\nListVoices\022/.google.clou" + + "d.texttospeech.v1.ListVoicesRequest\0320.go" + + "ogle.cloud.texttospeech.v1.ListVoicesRes" + + "ponse\"\"\202\323\344\223\002\014\022\n/v1/voices\332A\rlanguage_cod" + + "e\022\274\001\n\020SynthesizeSpeech\0225.google.cloud.te" + + "xttospeech.v1.SynthesizeSpeechRequest\0326." + + "google.cloud.texttospeech.v1.SynthesizeS" + + "peechResponse\"9\202\323\344\223\002\030\"\023/v1/text:synthesi" + + "ze:\001*\332A\030input,voice,audio_config\032O\312A\033tex" + + "ttospeech.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platformB\274\002\n co" + + "m.google.cloud.texttospeech.v1B\021TextToSp" + + "eechProtoP\001ZHgoogle.golang.org/genproto/" + + "googleapis/cloud/texttospeech/v1;texttos" + + "peech\370\001\001\252\002\034Google.Cloud.TextToSpeech.V1\312" + + "\002\034Google\\Cloud\\TextToSpeech\\V1\352\002\037Google:" + + ":Cloud::TextToSpeech::V1\352AU\n\033automl.goog" + + "leapis.com/Model\0226projects/{project}/loc" + + "ations/{location}/models/{model}b\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(), + }); + internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor, + new java.lang.String[] { "LanguageCode", }); + internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor, + new java.lang.String[] { "Voices", }); + internal_static_google_cloud_texttospeech_v1_Voice_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_texttospeech_v1_Voice_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_Voice_descriptor, + new java.lang.String[] { "LanguageCodes", "Name", "SsmlGender", "NaturalSampleRateHertz", }); + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor, + new java.lang.String[] { "Input", "Voice", "AudioConfig", }); + internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_texttospeech_v1_SynthesisInput_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor, + new java.lang.String[] { "Text", "Ssml", "InputSource", }); + internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor, + new java.lang.String[] { "LanguageCode", "Name", "SsmlGender", }); + internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_texttospeech_v1_AudioConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor, + new java.lang.String[] { "AudioEncoding", "SpeakingRate", "Pitch", "VolumeGainDb", "SampleRateHertz", "EffectsProfileId", }); + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor, + new java.lang.String[] { "AudioContent", }); + 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.resourceDefinition); + 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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/Voice.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/Voice.java similarity index 73% rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/Voice.java rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/Voice.java index 32596552..48651f20 100644 --- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/Voice.java +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/Voice.java @@ -1,42 +1,24 @@ -/* - * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** - * - * *
  * Description of a voice supported by the TTS service.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1.Voice} */ -public final class Voice extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Voice extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.Voice) VoiceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Voice.newBuilder() to construct. private Voice(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Voice() { languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; name_ = ""; @@ -45,15 +27,16 @@ private Voice() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Voice(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Voice( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,48 +56,46 @@ private Voice( 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; - } - languageCodes_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + languageCodes_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - ssmlGender_ = rawValue; - break; - } - case 32: - { - naturalSampleRateHertz_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + ssmlGender_ = rawValue; + break; + } + case 32: { + + naturalSampleRateHertz_ = input.readInt32(); + 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { languageCodes_ = languageCodes_.getUnmodifiableView(); @@ -123,27 +104,22 @@ private Voice( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_Voice_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_Voice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_Voice_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_Voice_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.Voice.class, - com.google.cloud.texttospeech.v1.Voice.Builder.class); + com.google.cloud.texttospeech.v1.Voice.class, com.google.cloud.texttospeech.v1.Voice.Builder.class); } public static final int LANGUAGE_CODES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList languageCodes_; /** - * - * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -151,15 +127,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { return languageCodes_; } /** - * - * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -167,15 +141,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
    * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -183,7 +154,6 @@ public int getLanguageCodesCount() {
    * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -191,8 +161,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -200,25 +168,22 @@ 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); } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** - * - * *
    * The name of this voice.  Each distinct voice has a unique name.
    * 
* * string name = 2; - * * @return The name. */ @java.lang.Override @@ -227,29 +192,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 this voice.  Each distinct voice has a unique name.
    * 
* * string name = 2; - * * @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 { @@ -260,50 +225,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SSML_GENDER_FIELD_NUMBER = 3; private int ssmlGender_; /** - * - * *
    * The gender of this voice.
    * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @return The enum numeric value on the wire for ssmlGender. */ - @java.lang.Override - public int getSsmlGenderValue() { + @java.lang.Override public int getSsmlGenderValue() { return ssmlGender_; } /** - * - * *
    * The gender of this voice.
    * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @return The ssmlGender. */ - @java.lang.Override - public com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender() { + @java.lang.Override public com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1.SsmlVoiceGender result = - com.google.cloud.texttospeech.v1.SsmlVoiceGender.valueOf(ssmlGender_); + com.google.cloud.texttospeech.v1.SsmlVoiceGender result = com.google.cloud.texttospeech.v1.SsmlVoiceGender.valueOf(ssmlGender_); return result == null ? com.google.cloud.texttospeech.v1.SsmlVoiceGender.UNRECOGNIZED : result; } public static final int NATURAL_SAMPLE_RATE_HERTZ_FIELD_NUMBER = 4; private int naturalSampleRateHertz_; /** - * - * *
    * The natural sample rate (in hertz) for this voice.
    * 
* * int32 natural_sample_rate_hertz = 4; - * * @return The naturalSampleRateHertz. */ @java.lang.Override @@ -312,7 +265,6 @@ public int getNaturalSampleRateHertz() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,16 +276,15 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } - if (ssmlGender_ - != com.google.cloud.texttospeech.v1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED - .getNumber()) { + if (ssmlGender_ != com.google.cloud.texttospeech.v1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) { output.writeEnum(3, ssmlGender_); } if (naturalSampleRateHertz_ != 0) { @@ -359,13 +310,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } - if (ssmlGender_ - != com.google.cloud.texttospeech.v1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, ssmlGender_); + if (ssmlGender_ != com.google.cloud.texttospeech.v1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, ssmlGender_); } if (naturalSampleRateHertz_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, naturalSampleRateHertz_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, naturalSampleRateHertz_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -375,17 +326,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.texttospeech.v1.Voice)) { return super.equals(obj); } com.google.cloud.texttospeech.v1.Voice other = (com.google.cloud.texttospeech.v1.Voice) obj; - if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; - if (!getName().equals(other.getName())) return false; + if (!getLanguageCodesList() + .equals(other.getLanguageCodesList())) return false; + if (!getName() + .equals(other.getName())) return false; if (ssmlGender_ != other.ssmlGender_) return false; - if (getNaturalSampleRateHertz() != other.getNaturalSampleRateHertz()) return false; + if (getNaturalSampleRateHertz() + != other.getNaturalSampleRateHertz()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -412,127 +366,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.texttospeech.v1.Voice parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.texttospeech.v1.Voice parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.Voice parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.Voice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.Voice parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.Voice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.Voice parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.Voice 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.texttospeech.v1.Voice parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.Voice 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.texttospeech.v1.Voice parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.Voice parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.Voice parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.texttospeech.v1.Voice prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Description of a voice supported by the TTS service.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1.Voice} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.Voice) com.google.cloud.texttospeech.v1.VoiceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_Voice_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_Voice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_Voice_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_Voice_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.Voice.class, - com.google.cloud.texttospeech.v1.Voice.Builder.class); + com.google.cloud.texttospeech.v1.Voice.class, com.google.cloud.texttospeech.v1.Voice.Builder.class); } // Construct using com.google.cloud.texttospeech.v1.Voice.newBuilder() @@ -540,15 +485,16 @@ 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 +510,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_Voice_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_Voice_descriptor; } @java.lang.Override @@ -585,8 +531,7 @@ public com.google.cloud.texttospeech.v1.Voice build() { @java.lang.Override public com.google.cloud.texttospeech.v1.Voice buildPartial() { - com.google.cloud.texttospeech.v1.Voice result = - new com.google.cloud.texttospeech.v1.Voice(this); + com.google.cloud.texttospeech.v1.Voice result = new com.google.cloud.texttospeech.v1.Voice(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { languageCodes_ = languageCodes_.getUnmodifiableView(); @@ -604,39 +549,38 @@ public com.google.cloud.texttospeech.v1.Voice 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.texttospeech.v1.Voice) { - return mergeFrom((com.google.cloud.texttospeech.v1.Voice) other); + return mergeFrom((com.google.cloud.texttospeech.v1.Voice)other); } else { super.mergeFrom(other); return this; @@ -693,21 +637,16 @@ 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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -715,15 +654,13 @@ 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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -731,15 +668,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
      * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
      * The languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -747,7 +681,6 @@ public int getLanguageCodesCount() {
      * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -755,8 +688,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
      * The languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -764,16 +695,14 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } /** - * - * *
      * The languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -781,23 +710,21 @@ public com.google.protobuf.ByteString getLanguageCodesBytes(int index) {
      * 
* * repeated string language_codes = 1; - * * @param index The index to set the value at. * @param value The languageCodes to set. * @return This builder for chaining. */ - public Builder setLanguageCodes(int index, java.lang.String value) { + 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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -805,22 +732,20 @@ public Builder setLanguageCodes(int index, java.lang.String value) {
      * 
* * repeated string language_codes = 1; - * * @param value The languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodes(java.lang.String value) { + 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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -828,19 +753,18 @@ public Builder addLanguageCodes(java.lang.String value) {
      * 
* * repeated string language_codes = 1; - * * @param values The languageCodes to add. * @return This builder for chaining. */ - public Builder addAllLanguageCodes(java.lang.Iterable values) { + public Builder addAllLanguageCodes( + java.lang.Iterable values) { ensureLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languageCodes_); onChanged(); return this; } /** - * - * *
      * The languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -848,7 +772,6 @@ public Builder addAllLanguageCodes(java.lang.Iterable values)
      * 
* * repeated string language_codes = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCodes() { @@ -858,8 +781,6 @@ public Builder clearLanguageCodes() { return this; } /** - * - * *
      * The languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -867,15 +788,15 @@ 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(); @@ -884,20 +805,18 @@ public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * The name of this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; - * * @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; @@ -906,21 +825,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; - * * @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 { @@ -928,61 +846,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; - * * @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 this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; - * * @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; @@ -990,67 +901,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int ssmlGender_ = 0; /** - * - * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @return The enum numeric value on the wire for ssmlGender. */ - @java.lang.Override - public int getSsmlGenderValue() { + @java.lang.Override public int getSsmlGenderValue() { return ssmlGender_; } /** - * - * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @param value The enum numeric value on the wire for ssmlGender to set. * @return This builder for chaining. */ public Builder setSsmlGenderValue(int value) { - + ssmlGender_ = value; onChanged(); return this; } /** - * - * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @return The ssmlGender. */ @java.lang.Override public com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1.SsmlVoiceGender result = - com.google.cloud.texttospeech.v1.SsmlVoiceGender.valueOf(ssmlGender_); - return result == null - ? com.google.cloud.texttospeech.v1.SsmlVoiceGender.UNRECOGNIZED - : result; + com.google.cloud.texttospeech.v1.SsmlVoiceGender result = com.google.cloud.texttospeech.v1.SsmlVoiceGender.valueOf(ssmlGender_); + return result == null ? com.google.cloud.texttospeech.v1.SsmlVoiceGender.UNRECOGNIZED : result; } /** - * - * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @param value The ssmlGender to set. * @return This builder for chaining. */ @@ -1058,39 +953,33 @@ public Builder setSsmlGender(com.google.cloud.texttospeech.v1.SsmlVoiceGender va if (value == null) { throw new NullPointerException(); } - + ssmlGender_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @return This builder for chaining. */ public Builder clearSsmlGender() { - + ssmlGender_ = 0; onChanged(); return this; } - private int naturalSampleRateHertz_; + private int naturalSampleRateHertz_ ; /** - * - * *
      * The natural sample rate (in hertz) for this voice.
      * 
* * int32 natural_sample_rate_hertz = 4; - * * @return The naturalSampleRateHertz. */ @java.lang.Override @@ -1098,43 +987,37 @@ public int getNaturalSampleRateHertz() { return naturalSampleRateHertz_; } /** - * - * *
      * The natural sample rate (in hertz) for this voice.
      * 
* * int32 natural_sample_rate_hertz = 4; - * * @param value The naturalSampleRateHertz to set. * @return This builder for chaining. */ public Builder setNaturalSampleRateHertz(int value) { - + naturalSampleRateHertz_ = value; onChanged(); return this; } /** - * - * *
      * The natural sample rate (in hertz) for this voice.
      * 
* * int32 natural_sample_rate_hertz = 4; - * * @return This builder for chaining. */ public Builder clearNaturalSampleRateHertz() { - + naturalSampleRateHertz_ = 0; 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); } @@ -1144,12 +1027,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.Voice) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.Voice) private static final com.google.cloud.texttospeech.v1.Voice DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.Voice(); } @@ -1158,16 +1041,16 @@ public static com.google.cloud.texttospeech.v1.Voice getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Voice parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Voice(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Voice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Voice(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1182,4 +1065,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1.Voice getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceOrBuilder.java similarity index 75% rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceOrBuilder.java index 10359f7e..1f56838a 100644 --- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; -public interface VoiceOrBuilder - extends +public interface VoiceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.Voice) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -33,13 +15,11 @@ public interface VoiceOrBuilder
    * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - java.util.List getLanguageCodesList(); + java.util.List + getLanguageCodesList(); /** - * - * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -47,13 +27,10 @@ public interface VoiceOrBuilder
    * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** - * - * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -61,14 +38,11 @@ public interface VoiceOrBuilder
    * 
* * 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 languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -76,71 +50,57 @@ public interface VoiceOrBuilder
    * 
* * 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); /** - * - * *
    * The name of this voice.  Each distinct voice has a unique name.
    * 
* * string name = 2; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of this voice.  Each distinct voice has a unique name.
    * 
* * string name = 2; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The gender of this voice.
    * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @return The enum numeric value on the wire for ssmlGender. */ int getSsmlGenderValue(); /** - * - * *
    * The gender of this voice.
    * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @return The ssmlGender. */ com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender(); /** - * - * *
    * The natural sample rate (in hertz) for this voice.
    * 
* * int32 natural_sample_rate_hertz = 4; - * * @return The naturalSampleRateHertz. */ int getNaturalSampleRateHertz(); diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java similarity index 76% rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java index 06ad0e56..28bee91b 100644 --- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java @@ -1,42 +1,24 @@ -/* - * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** - * - * *
  * Description of which voice to use for a synthesis request.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1.VoiceSelectionParams} */ -public final class VoiceSelectionParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VoiceSelectionParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.VoiceSelectionParams) VoiceSelectionParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VoiceSelectionParams.newBuilder() to construct. private VoiceSelectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VoiceSelectionParams() { languageCode_ = ""; name_ = ""; @@ -45,15 +27,16 @@ private VoiceSelectionParams() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VoiceSelectionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VoiceSelectionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,66 +55,59 @@ private VoiceSelectionParams( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + languageCode_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - ssmlGender_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + ssmlGender_ = rawValue; + 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.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.VoiceSelectionParams.class, - com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder.class); + com.google.cloud.texttospeech.v1.VoiceSelectionParams.class, com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** - * - * *
    * Required. The language (and potentially also the region) of the voice expressed as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -147,7 +123,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ @java.lang.Override @@ -156,15 +131,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Required. The language (and potentially also the region) of the voice expressed as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -180,15 +154,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -199,15 +174,12 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** - * - * *
    * The name of the voice. If not set, the service will choose a
    * voice based on the other parameters such as language_code and gender.
    * 
* * string name = 2; - * * @return The name. */ @java.lang.Override @@ -216,30 +188,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; } } /** - * - * *
    * The name of the voice. If not set, the service will choose a
    * voice based on the other parameters such as language_code and gender.
    * 
* * string name = 2; - * * @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 { @@ -250,8 +222,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SSML_GENDER_FIELD_NUMBER = 3; private int ssmlGender_; /** - * - * *
    * The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
@@ -261,16 +231,12 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @return The enum numeric value on the wire for ssmlGender. */ - @java.lang.Override - public int getSsmlGenderValue() { + @java.lang.Override public int getSsmlGenderValue() { return ssmlGender_; } /** - * - * *
    * The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
@@ -280,19 +246,15 @@ public int getSsmlGenderValue() {
    * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @return The ssmlGender. */ - @java.lang.Override - public com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender() { + @java.lang.Override public com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1.SsmlVoiceGender result = - com.google.cloud.texttospeech.v1.SsmlVoiceGender.valueOf(ssmlGender_); + com.google.cloud.texttospeech.v1.SsmlVoiceGender result = com.google.cloud.texttospeech.v1.SsmlVoiceGender.valueOf(ssmlGender_); return result == null ? com.google.cloud.texttospeech.v1.SsmlVoiceGender.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -304,16 +266,15 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } - if (ssmlGender_ - != com.google.cloud.texttospeech.v1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED - .getNumber()) { + if (ssmlGender_ != com.google.cloud.texttospeech.v1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) { output.writeEnum(3, ssmlGender_); } unknownFields.writeTo(output); @@ -331,10 +292,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } - if (ssmlGender_ - != com.google.cloud.texttospeech.v1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, ssmlGender_); + if (ssmlGender_ != com.google.cloud.texttospeech.v1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, ssmlGender_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -344,16 +304,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.texttospeech.v1.VoiceSelectionParams)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1.VoiceSelectionParams other = - (com.google.cloud.texttospeech.v1.VoiceSelectionParams) obj; + com.google.cloud.texttospeech.v1.VoiceSelectionParams other = (com.google.cloud.texttospeech.v1.VoiceSelectionParams) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getName().equals(other.getName())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getName() + .equals(other.getName())) return false; if (ssmlGender_ != other.ssmlGender_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -378,127 +339,117 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.texttospeech.v1.VoiceSelectionParams prototype) { + public static Builder newBuilder(com.google.cloud.texttospeech.v1.VoiceSelectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Description of which voice to use for a synthesis request.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1.VoiceSelectionParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.VoiceSelectionParams) com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.VoiceSelectionParams.class, - com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder.class); + com.google.cloud.texttospeech.v1.VoiceSelectionParams.class, com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder.class); } // Construct using com.google.cloud.texttospeech.v1.VoiceSelectionParams.newBuilder() @@ -506,15 +457,16 @@ 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(); @@ -528,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor; } @java.lang.Override @@ -549,8 +501,7 @@ public com.google.cloud.texttospeech.v1.VoiceSelectionParams build() { @java.lang.Override public com.google.cloud.texttospeech.v1.VoiceSelectionParams buildPartial() { - com.google.cloud.texttospeech.v1.VoiceSelectionParams result = - new com.google.cloud.texttospeech.v1.VoiceSelectionParams(this); + com.google.cloud.texttospeech.v1.VoiceSelectionParams result = new com.google.cloud.texttospeech.v1.VoiceSelectionParams(this); result.languageCode_ = languageCode_; result.name_ = name_; result.ssmlGender_ = ssmlGender_; @@ -562,39 +513,38 @@ public com.google.cloud.texttospeech.v1.VoiceSelectionParams 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.texttospeech.v1.VoiceSelectionParams) { - return mergeFrom((com.google.cloud.texttospeech.v1.VoiceSelectionParams) other); + return mergeFrom((com.google.cloud.texttospeech.v1.VoiceSelectionParams)other); } else { super.mergeFrom(other); return this; @@ -602,8 +552,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1.VoiceSelectionParams other) { - if (other == com.google.cloud.texttospeech.v1.VoiceSelectionParams.getDefaultInstance()) - return this; + if (other == com.google.cloud.texttospeech.v1.VoiceSelectionParams.getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -634,8 +583,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.texttospeech.v1.VoiceSelectionParams) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.texttospeech.v1.VoiceSelectionParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -647,8 +595,6 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** - * - * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -664,13 +610,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -679,8 +625,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -696,14 +640,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -711,8 +656,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -728,22 +671,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; } /** - * - * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -759,18 +700,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -786,16 +724,16 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -803,21 +741,19 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * The name of the voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; - * * @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; @@ -826,22 +762,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; - * * @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 { @@ -849,64 +784,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; - * * @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 voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; - * * @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; @@ -914,8 +842,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int ssmlGender_ = 0; /** - * - * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -925,16 +851,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @return The enum numeric value on the wire for ssmlGender. */ - @java.lang.Override - public int getSsmlGenderValue() { + @java.lang.Override public int getSsmlGenderValue() { return ssmlGender_; } /** - * - * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -944,19 +866,16 @@ public int getSsmlGenderValue() {
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @param value The enum numeric value on the wire for ssmlGender to set. * @return This builder for chaining. */ public Builder setSsmlGenderValue(int value) { - + ssmlGender_ = value; onChanged(); return this; } /** - * - * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -966,21 +885,15 @@ public Builder setSsmlGenderValue(int value) {
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @return The ssmlGender. */ @java.lang.Override public com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1.SsmlVoiceGender result = - com.google.cloud.texttospeech.v1.SsmlVoiceGender.valueOf(ssmlGender_); - return result == null - ? com.google.cloud.texttospeech.v1.SsmlVoiceGender.UNRECOGNIZED - : result; + com.google.cloud.texttospeech.v1.SsmlVoiceGender result = com.google.cloud.texttospeech.v1.SsmlVoiceGender.valueOf(ssmlGender_); + return result == null ? com.google.cloud.texttospeech.v1.SsmlVoiceGender.UNRECOGNIZED : result; } /** - * - * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -990,7 +903,6 @@ public com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender() {
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @param value The ssmlGender to set. * @return This builder for chaining. */ @@ -998,14 +910,12 @@ public Builder setSsmlGender(com.google.cloud.texttospeech.v1.SsmlVoiceGender va if (value == null) { throw new NullPointerException(); } - + ssmlGender_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -1015,18 +925,17 @@ public Builder setSsmlGender(com.google.cloud.texttospeech.v1.SsmlVoiceGender va
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @return This builder for chaining. */ public Builder clearSsmlGender() { - + ssmlGender_ = 0; 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); } @@ -1036,12 +945,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.VoiceSelectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.VoiceSelectionParams) private static final com.google.cloud.texttospeech.v1.VoiceSelectionParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.VoiceSelectionParams(); } @@ -1050,16 +959,16 @@ public static com.google.cloud.texttospeech.v1.VoiceSelectionParams getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VoiceSelectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VoiceSelectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VoiceSelectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VoiceSelectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1074,4 +983,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1.VoiceSelectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java similarity index 82% rename from proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java index 06af331c..bf2126a4 100644 --- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; -public interface VoiceSelectionParamsOrBuilder - extends +public interface VoiceSelectionParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.VoiceSelectionParams) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The language (and potentially also the region) of the voice expressed as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -41,13 +23,10 @@ public interface VoiceSelectionParamsOrBuilder
    * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Required. The language (and potentially also the region) of the voice expressed as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -63,41 +42,34 @@ public interface VoiceSelectionParamsOrBuilder
    * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * The name of the voice. If not set, the service will choose a
    * voice based on the other parameters such as language_code and gender.
    * 
* * string name = 2; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the voice. If not set, the service will choose a
    * voice based on the other parameters such as language_code and gender.
    * 
* * string name = 2; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
@@ -107,13 +79,10 @@ public interface VoiceSelectionParamsOrBuilder
    * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @return The enum numeric value on the wire for ssmlGender. */ int getSsmlGenderValue(); /** - * - * *
    * The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
@@ -123,7 +92,6 @@ public interface VoiceSelectionParamsOrBuilder
    * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; - * * @return The ssmlGender. */ com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender(); diff --git a/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto similarity index 100% rename from proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto rename to owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java b/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java similarity index 95% rename from google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java rename to owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java index 20e524fc..d9451d78 100644 --- a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java +++ b/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java @@ -46,13 +46,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. 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. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. 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. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. 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. *
* @@ -154,11 +154,9 @@ public TextToSpeechStub getStub() { * @param languageCode Optional. Recommended. * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If not specified, the * API will return all supported voices. If specified, the ListVoices call will only return - * voices that can be used to synthesize this language_code. E.g. when specifying `"en-NZ"`, - * you will get supported `"en-NZ"` voices; when specifying `"no"`, you will get supported - * `"no-\\*"` (Norwegian) and `"nb-\\*"` (Norwegian Bokmal) voices; specifying `"zh"` - * will also get supported `"cmn-\\*"` voices; specifying `"zh-hk"` will also get - * supported `"yue-hk"` voices. + * voices that can be used to synthesize this language_code. For example, if you specify + * `"en-NZ"`, all `"en-NZ"` voices will be returned. If you specify `"no"`, both + * `"no-\\*"` (Norwegian) and `"nb-\\*"` (Norwegian Bokmal) voices will be returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListVoicesResponse listVoices(String languageCode) { diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java b/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java similarity index 95% rename from google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java rename to owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java index b5004b43..83f1a2b4 100644 --- a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java @@ -24,6 +24,7 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.texttospeech.v1beta1.stub.TextToSpeechStubSettings; @@ -38,9 +39,9 @@ *

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

    - *
  • The default service address (texttospeech.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 default service address (texttospeech.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 diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/gapic_metadata.json b/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/gapic_metadata.json similarity index 100% rename from google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/gapic_metadata.json rename to owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/gapic_metadata.json diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java b/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java similarity index 100% rename from google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java rename to owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechCallableFactory.java similarity index 100% rename from google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechCallableFactory.java diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechStub.java b/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechStub.java similarity index 100% rename from google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechStub.java rename to owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechStub.java diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStub.java b/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStub.java similarity index 100% rename from google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStub.java rename to owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStub.java diff --git a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java b/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java similarity index 97% rename from google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java index 9ffb00c1..a20ba7b9 100644 --- a/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java @@ -51,9 +51,9 @@ *

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

    - *
  • The default service address (texttospeech.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 default service address (texttospeech.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 diff --git a/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeech.java b/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeech.java similarity index 100% rename from google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeech.java rename to owl-bot-staging/v1beta1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeech.java diff --git a/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeechImpl.java b/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeechImpl.java similarity index 100% rename from google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeechImpl.java rename to owl-bot-staging/v1beta1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeechImpl.java diff --git a/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClientTest.java b/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClientTest.java similarity index 100% rename from google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClientTest.java diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java new file mode 100644 index 00000000..67551a85 --- /dev/null +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java @@ -0,0 +1,393 @@ +package com.google.cloud.texttospeech.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Service that implements Google Cloud Text-to-Speech API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/texttospeech/v1beta1/cloud_tts.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TextToSpeechGrpc { + + private TextToSpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.texttospeech.v1beta1.TextToSpeech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListVoicesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVoices", + requestType = com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.class, + responseType = com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListVoicesMethod() { + io.grpc.MethodDescriptor getListVoicesMethod; + if ((getListVoicesMethod = TextToSpeechGrpc.getListVoicesMethod) == null) { + synchronized (TextToSpeechGrpc.class) { + if ((getListVoicesMethod = TextToSpeechGrpc.getListVoicesMethod) == null) { + TextToSpeechGrpc.getListVoicesMethod = getListVoicesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVoices")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.getDefaultInstance())) + .setSchemaDescriptor(new TextToSpeechMethodDescriptorSupplier("ListVoices")) + .build(); + } + } + } + return getListVoicesMethod; + } + + private static volatile io.grpc.MethodDescriptor getSynthesizeSpeechMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SynthesizeSpeech", + requestType = com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.class, + responseType = com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSynthesizeSpeechMethod() { + io.grpc.MethodDescriptor getSynthesizeSpeechMethod; + if ((getSynthesizeSpeechMethod = TextToSpeechGrpc.getSynthesizeSpeechMethod) == null) { + synchronized (TextToSpeechGrpc.class) { + if ((getSynthesizeSpeechMethod = TextToSpeechGrpc.getSynthesizeSpeechMethod) == null) { + TextToSpeechGrpc.getSynthesizeSpeechMethod = getSynthesizeSpeechMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SynthesizeSpeech")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.getDefaultInstance())) + .setSchemaDescriptor(new TextToSpeechMethodDescriptorSupplier("SynthesizeSpeech")) + .build(); + } + } + } + return getSynthesizeSpeechMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static TextToSpeechStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TextToSpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechStub(channel, callOptions); + } + }; + return TextToSpeechStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TextToSpeechBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TextToSpeechBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechBlockingStub(channel, callOptions); + } + }; + return TextToSpeechBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static TextToSpeechFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TextToSpeechFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechFutureStub(channel, callOptions); + } + }; + return TextToSpeechFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service that implements Google Cloud Text-to-Speech API.
+   * 
+ */ + public static abstract class TextToSpeechImplBase implements io.grpc.BindableService { + + /** + *
+     * Returns a list of Voice supported for synthesis.
+     * 
+ */ + public void listVoices(com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVoicesMethod(), responseObserver); + } + + /** + *
+     * Synthesizes speech synchronously: receive results after all text input
+     * has been processed.
+     * 
+ */ + public void synthesizeSpeech(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSynthesizeSpeechMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListVoicesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest, + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse>( + this, METHODID_LIST_VOICES))) + .addMethod( + getSynthesizeSpeechMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest, + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse>( + this, METHODID_SYNTHESIZE_SPEECH))) + .build(); + } + } + + /** + *
+   * Service that implements Google Cloud Text-to-Speech API.
+   * 
+ */ + public static final class TextToSpeechStub extends io.grpc.stub.AbstractAsyncStub { + private TextToSpeechStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TextToSpeechStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechStub(channel, callOptions); + } + + /** + *
+     * Returns a list of Voice supported for synthesis.
+     * 
+ */ + public void listVoices(com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVoicesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Synthesizes speech synchronously: receive results after all text input
+     * has been processed.
+     * 
+ */ + public void synthesizeSpeech(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSynthesizeSpeechMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service that implements Google Cloud Text-to-Speech API.
+   * 
+ */ + public static final class TextToSpeechBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private TextToSpeechBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TextToSpeechBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns a list of Voice supported for synthesis.
+     * 
+ */ + public com.google.cloud.texttospeech.v1beta1.ListVoicesResponse listVoices(com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVoicesMethod(), getCallOptions(), request); + } + + /** + *
+     * Synthesizes speech synchronously: receive results after all text input
+     * has been processed.
+     * 
+ */ + public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse synthesizeSpeech(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSynthesizeSpeechMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service that implements Google Cloud Text-to-Speech API.
+   * 
+ */ + public static final class TextToSpeechFutureStub extends io.grpc.stub.AbstractFutureStub { + private TextToSpeechFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TextToSpeechFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechFutureStub(channel, callOptions); + } + + /** + *
+     * Returns a list of Voice supported for synthesis.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listVoices( + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVoicesMethod(), getCallOptions()), request); + } + + /** + *
+     * Synthesizes speech synchronously: receive results after all text input
+     * has been processed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture synthesizeSpeech( + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSynthesizeSpeechMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_VOICES = 0; + private static final int METHODID_SYNTHESIZE_SPEECH = 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 TextToSpeechImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TextToSpeechImplBase 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_VOICES: + serviceImpl.listVoices((com.google.cloud.texttospeech.v1beta1.ListVoicesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SYNTHESIZE_SPEECH: + serviceImpl.synthesizeSpeech((com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) 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 TextToSpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TextToSpeechBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TextToSpeech"); + } + } + + private static final class TextToSpeechFileDescriptorSupplier + extends TextToSpeechBaseDescriptorSupplier { + TextToSpeechFileDescriptorSupplier() {} + } + + private static final class TextToSpeechMethodDescriptorSupplier + extends TextToSpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TextToSpeechMethodDescriptorSupplier(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 (TextToSpeechGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TextToSpeechFileDescriptorSupplier()) + .addMethod(getListVoicesMethod()) + .addMethod(getSynthesizeSpeechMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java similarity index 70% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java index 3d057718..3c105410 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java @@ -1,42 +1,24 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** - * - * *
  * Description of audio data to be synthesized.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.AudioConfig} */ -public final class AudioConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AudioConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.AudioConfig) AudioConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AudioConfig.newBuilder() to construct. private AudioConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AudioConfig() { audioEncoding_ = 0; effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,15 +26,16 @@ private AudioConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AudioConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AudioConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,56 +55,55 @@ private AudioConfig( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - audioEncoding_ = rawValue; - break; - } - case 17: - { - speakingRate_ = input.readDouble(); - break; - } - case 25: - { - pitch_ = input.readDouble(); - break; - } - case 33: - { - volumeGainDb_ = input.readDouble(); - break; - } - case 40: - { - sampleRateHertz_ = input.readInt32(); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - effectsProfileId_.add(s); - break; + audioEncoding_ = rawValue; + break; + } + case 17: { + + speakingRate_ = input.readDouble(); + break; + } + case 25: { + + pitch_ = input.readDouble(); + break; + } + case 33: { + + volumeGainDb_ = input.readDouble(); + break; + } + case 40: { + + sampleRateHertz_ = input.readInt32(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + effectsProfileId_.add(s); + 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { effectsProfileId_ = effectsProfileId_.getUnmodifiableView(); @@ -130,69 +112,49 @@ private AudioConfig( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.AudioConfig.class, - com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder.class); + com.google.cloud.texttospeech.v1beta1.AudioConfig.class, com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder.class); } public static final int AUDIO_ENCODING_FIELD_NUMBER = 1; private int audioEncoding_; /** - * - * *
    * Required. The format of the audio byte stream.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for audioEncoding. */ - @java.lang.Override - public int getAudioEncodingValue() { + @java.lang.Override public int getAudioEncodingValue() { return audioEncoding_; } /** - * - * *
    * Required. The format of the audio byte stream.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The audioEncoding. */ - @java.lang.Override - public com.google.cloud.texttospeech.v1beta1.AudioEncoding getAudioEncoding() { + @java.lang.Override public com.google.cloud.texttospeech.v1beta1.AudioEncoding getAudioEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.AudioEncoding result = - com.google.cloud.texttospeech.v1beta1.AudioEncoding.valueOf(audioEncoding_); - return result == null - ? com.google.cloud.texttospeech.v1beta1.AudioEncoding.UNRECOGNIZED - : result; + com.google.cloud.texttospeech.v1beta1.AudioEncoding result = com.google.cloud.texttospeech.v1beta1.AudioEncoding.valueOf(audioEncoding_); + return result == null ? com.google.cloud.texttospeech.v1beta1.AudioEncoding.UNRECOGNIZED : result; } public static final int SPEAKING_RATE_FIELD_NUMBER = 2; private double speakingRate_; /** - * - * *
    * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
    * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -200,10 +162,7 @@ public com.google.cloud.texttospeech.v1beta1.AudioEncoding getAudioEncoding() {
    * speed. Any other values < 0.25 or > 4.0 will return an error.
    * 
* - * - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The speakingRate. */ @java.lang.Override @@ -214,18 +173,13 @@ public double getSpeakingRate() { public static final int PITCH_FIELD_NUMBER = 3; private double pitch_; /** - * - * *
    * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
    * increase 20 semitones from the original pitch. -20 means decrease 20
    * semitones from the original pitch.
    * 
* - * - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The pitch. */ @java.lang.Override @@ -236,8 +190,6 @@ public double getPitch() { public static final int VOLUME_GAIN_DB_FIELD_NUMBER = 4; private double volumeGainDb_; /** - * - * *
    * Optional. Input only. Volume gain (in dB) of the normal native volume
    * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -249,10 +201,7 @@ public double getPitch() {
    * increase in loudness for any value greater than that.
    * 
* - * - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The volumeGainDb. */ @java.lang.Override @@ -263,8 +212,6 @@ public double getVolumeGainDb() { public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 5; private int sampleRateHertz_; /** - * - * *
    * Optional. The synthesis sample rate (in hertz) for this audio. When this is
    * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -276,7 +223,6 @@ public double getVolumeGainDb() {
    * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -287,8 +233,6 @@ public int getSampleRateHertz() { public static final int EFFECTS_PROFILE_ID_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList effectsProfileId_; /** - * - * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -298,18 +242,14 @@ public int getSampleRateHertz() {
    * current supported profile ids.
    * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return A list containing the effectsProfileId. */ - public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { + public com.google.protobuf.ProtocolStringList + getEffectsProfileIdList() { return effectsProfileId_; } /** - * - * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -319,18 +259,13 @@ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() {
    * current supported profile ids.
    * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The count of effectsProfileId. */ public int getEffectsProfileIdCount() { return effectsProfileId_.size(); } /** - * - * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -340,10 +275,7 @@ public int getEffectsProfileIdCount() {
    * current supported profile ids.
    * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The effectsProfileId at the given index. */ @@ -351,8 +283,6 @@ public java.lang.String getEffectsProfileId(int index) { return effectsProfileId_.get(index); } /** - * - * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -362,19 +292,16 @@ public java.lang.String getEffectsProfileId(int index) {
    * current supported profile ids.
    * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. */ - public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { + public com.google.protobuf.ByteString + getEffectsProfileIdBytes(int index) { return effectsProfileId_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -386,10 +313,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (audioEncoding_ - != com.google.cloud.texttospeech.v1beta1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (audioEncoding_ != com.google.cloud.texttospeech.v1beta1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { output.writeEnum(1, audioEncoding_); } if (speakingRate_ != 0D) { @@ -416,22 +342,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (audioEncoding_ - != com.google.cloud.texttospeech.v1beta1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, audioEncoding_); + if (audioEncoding_ != com.google.cloud.texttospeech.v1beta1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, audioEncoding_); } if (speakingRate_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, speakingRate_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, speakingRate_); } if (pitch_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, pitch_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, pitch_); } if (volumeGainDb_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, volumeGainDb_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, volumeGainDb_); } if (sampleRateHertz_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, sampleRateHertz_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, sampleRateHertz_); } { int dataSize = 0; @@ -449,23 +378,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.texttospeech.v1beta1.AudioConfig)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.AudioConfig other = - (com.google.cloud.texttospeech.v1beta1.AudioConfig) obj; + com.google.cloud.texttospeech.v1beta1.AudioConfig other = (com.google.cloud.texttospeech.v1beta1.AudioConfig) obj; if (audioEncoding_ != other.audioEncoding_) return false; if (java.lang.Double.doubleToLongBits(getSpeakingRate()) - != java.lang.Double.doubleToLongBits(other.getSpeakingRate())) return false; + != java.lang.Double.doubleToLongBits( + other.getSpeakingRate())) return false; if (java.lang.Double.doubleToLongBits(getPitch()) - != java.lang.Double.doubleToLongBits(other.getPitch())) return false; + != java.lang.Double.doubleToLongBits( + other.getPitch())) return false; if (java.lang.Double.doubleToLongBits(getVolumeGainDb()) - != java.lang.Double.doubleToLongBits(other.getVolumeGainDb())) return false; - if (getSampleRateHertz() != other.getSampleRateHertz()) return false; - if (!getEffectsProfileIdList().equals(other.getEffectsProfileIdList())) return false; + != java.lang.Double.doubleToLongBits( + other.getVolumeGainDb())) return false; + if (getSampleRateHertz() + != other.getSampleRateHertz()) return false; + if (!getEffectsProfileIdList() + .equals(other.getEffectsProfileIdList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -480,19 +413,14 @@ public int hashCode() { hash = (37 * hash) + AUDIO_ENCODING_FIELD_NUMBER; hash = (53 * hash) + audioEncoding_; hash = (37 * hash) + SPEAKING_RATE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getSpeakingRate())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSpeakingRate())); hash = (37 * hash) + PITCH_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getPitch())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPitch())); hash = (37 * hash) + VOLUME_GAIN_DB_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVolumeGainDb())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVolumeGainDb())); hash = (37 * hash) + SAMPLE_RATE_HERTZ_FIELD_NUMBER; hash = (53 * hash) + getSampleRateHertz(); if (getEffectsProfileIdCount() > 0) { @@ -505,126 +433,117 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.AudioConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Description of audio data to be synthesized.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.AudioConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.AudioConfig) com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.AudioConfig.class, - com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder.class); + com.google.cloud.texttospeech.v1beta1.AudioConfig.class, com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder.class); } // Construct using com.google.cloud.texttospeech.v1beta1.AudioConfig.newBuilder() @@ -632,15 +551,16 @@ 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 +580,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor; } @java.lang.Override @@ -681,8 +601,7 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfig build() { @java.lang.Override public com.google.cloud.texttospeech.v1beta1.AudioConfig buildPartial() { - com.google.cloud.texttospeech.v1beta1.AudioConfig result = - new com.google.cloud.texttospeech.v1beta1.AudioConfig(this); + com.google.cloud.texttospeech.v1beta1.AudioConfig result = new com.google.cloud.texttospeech.v1beta1.AudioConfig(this); int from_bitField0_ = bitField0_; result.audioEncoding_ = audioEncoding_; result.speakingRate_ = speakingRate_; @@ -702,39 +621,38 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfig 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.texttospeech.v1beta1.AudioConfig) { - return mergeFrom((com.google.cloud.texttospeech.v1beta1.AudioConfig) other); + return mergeFrom((com.google.cloud.texttospeech.v1beta1.AudioConfig)other); } else { super.mergeFrom(other); return this; @@ -742,8 +660,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.AudioConfig other) { - if (other == com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance()) return this; if (other.audioEncoding_ != 0) { setAudioEncodingValue(other.getAudioEncodingValue()); } @@ -788,8 +705,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.texttospeech.v1beta1.AudioConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.texttospeech.v1beta1.AudioConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -798,80 +714,55 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private int audioEncoding_ = 0; /** - * - * *
      * Required. The format of the audio byte stream.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for audioEncoding. */ - @java.lang.Override - public int getAudioEncodingValue() { + @java.lang.Override public int getAudioEncodingValue() { return audioEncoding_; } /** - * - * *
      * Required. The format of the audio byte stream.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for audioEncoding to set. * @return This builder for chaining. */ public Builder setAudioEncodingValue(int value) { - + audioEncoding_ = value; onChanged(); return this; } /** - * - * *
      * Required. The format of the audio byte stream.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The audioEncoding. */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.AudioEncoding getAudioEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.AudioEncoding result = - com.google.cloud.texttospeech.v1beta1.AudioEncoding.valueOf(audioEncoding_); - return result == null - ? com.google.cloud.texttospeech.v1beta1.AudioEncoding.UNRECOGNIZED - : result; + com.google.cloud.texttospeech.v1beta1.AudioEncoding result = com.google.cloud.texttospeech.v1beta1.AudioEncoding.valueOf(audioEncoding_); + return result == null ? com.google.cloud.texttospeech.v1beta1.AudioEncoding.UNRECOGNIZED : result; } /** - * - * *
      * Required. The format of the audio byte stream.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The audioEncoding to set. * @return This builder for chaining. */ @@ -879,35 +770,28 @@ public Builder setAudioEncoding(com.google.cloud.texttospeech.v1beta1.AudioEncod if (value == null) { throw new NullPointerException(); } - + audioEncoding_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The format of the audio byte stream.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearAudioEncoding() { - + audioEncoding_ = 0; onChanged(); return this; } - private double speakingRate_; + private double speakingRate_ ; /** - * - * *
      * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
      * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -915,10 +799,7 @@ public Builder clearAudioEncoding() {
      * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The speakingRate. */ @java.lang.Override @@ -926,8 +807,6 @@ public double getSpeakingRate() { return speakingRate_; } /** - * - * *
      * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
      * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -935,22 +814,17 @@ public double getSpeakingRate() {
      * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param value The speakingRate to set. * @return This builder for chaining. */ public Builder setSpeakingRate(double value) { - + speakingRate_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
      * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -958,33 +832,25 @@ public Builder setSpeakingRate(double value) {
      * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearSpeakingRate() { - + speakingRate_ = 0D; onChanged(); return this; } - private double pitch_; + private double pitch_ ; /** - * - * *
      * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
      * increase 20 semitones from the original pitch. -20 means decrease 20
      * semitones from the original pitch.
      * 
* - * - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The pitch. */ @java.lang.Override @@ -992,53 +858,41 @@ public double getPitch() { return pitch_; } /** - * - * *
      * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
      * increase 20 semitones from the original pitch. -20 means decrease 20
      * semitones from the original pitch.
      * 
* - * - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param value The pitch to set. * @return This builder for chaining. */ public Builder setPitch(double value) { - + pitch_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
      * increase 20 semitones from the original pitch. -20 means decrease 20
      * semitones from the original pitch.
      * 
* - * - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearPitch() { - + pitch_ = 0D; onChanged(); return this; } - private double volumeGainDb_; + private double volumeGainDb_ ; /** - * - * *
      * Optional. Input only. Volume gain (in dB) of the normal native volume
      * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -1050,10 +904,7 @@ public Builder clearPitch() {
      * increase in loudness for any value greater than that.
      * 
* - * - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The volumeGainDb. */ @java.lang.Override @@ -1061,8 +912,6 @@ public double getVolumeGainDb() { return volumeGainDb_; } /** - * - * *
      * Optional. Input only. Volume gain (in dB) of the normal native volume
      * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -1074,22 +923,17 @@ public double getVolumeGainDb() {
      * increase in loudness for any value greater than that.
      * 
* - * - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param value The volumeGainDb to set. * @return This builder for chaining. */ public Builder setVolumeGainDb(double value) { - + volumeGainDb_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Input only. Volume gain (in dB) of the normal native volume
      * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -1101,23 +945,18 @@ public Builder setVolumeGainDb(double value) {
      * increase in loudness for any value greater than that.
      * 
* - * - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearVolumeGainDb() { - + volumeGainDb_ = 0D; onChanged(); return this; } - private int sampleRateHertz_; + private int sampleRateHertz_ ; /** - * - * *
      * Optional. The synthesis sample rate (in hertz) for this audio. When this is
      * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -1129,7 +968,6 @@ public Builder clearVolumeGainDb() {
      * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -1137,8 +975,6 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** - * - * *
      * Optional. The synthesis sample rate (in hertz) for this audio. When this is
      * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -1150,19 +986,16 @@ public int getSampleRateHertz() {
      * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sampleRateHertz to set. * @return This builder for chaining. */ public Builder setSampleRateHertz(int value) { - + sampleRateHertz_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The synthesis sample rate (in hertz) for this audio. When this is
      * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -1174,28 +1007,23 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + sampleRateHertz_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList effectsProfileId_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureEffectsProfileIdIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(effectsProfileId_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1205,18 +1033,14 @@ private void ensureEffectsProfileIdIsMutable() {
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return A list containing the effectsProfileId. */ - public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { + public com.google.protobuf.ProtocolStringList + getEffectsProfileIdList() { return effectsProfileId_.getUnmodifiableView(); } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1226,18 +1050,13 @@ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() {
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The count of effectsProfileId. */ public int getEffectsProfileIdCount() { return effectsProfileId_.size(); } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1247,10 +1066,7 @@ public int getEffectsProfileIdCount() {
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The effectsProfileId at the given index. */ @@ -1258,8 +1074,6 @@ public java.lang.String getEffectsProfileId(int index) { return effectsProfileId_.get(index); } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1269,19 +1083,15 @@ public java.lang.String getEffectsProfileId(int index) {
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. */ - public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { + public com.google.protobuf.ByteString + getEffectsProfileIdBytes(int index) { return effectsProfileId_.getByteString(index); } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1291,26 +1101,22 @@ public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) {
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The effectsProfileId to set. * @return This builder for chaining. */ - public Builder setEffectsProfileId(int index, java.lang.String value) { + public Builder setEffectsProfileId( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEffectsProfileIdIsMutable(); + throw new NullPointerException(); + } + ensureEffectsProfileIdIsMutable(); effectsProfileId_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1320,25 +1126,21 @@ public Builder setEffectsProfileId(int index, java.lang.String value) {
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param value The effectsProfileId to add. * @return This builder for chaining. */ - public Builder addEffectsProfileId(java.lang.String value) { + public Builder addEffectsProfileId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEffectsProfileIdIsMutable(); + throw new NullPointerException(); + } + ensureEffectsProfileIdIsMutable(); effectsProfileId_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1348,22 +1150,19 @@ public Builder addEffectsProfileId(java.lang.String value) {
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param values The effectsProfileId to add. * @return This builder for chaining. */ - public Builder addAllEffectsProfileId(java.lang.Iterable values) { + public Builder addAllEffectsProfileId( + java.lang.Iterable values) { ensureEffectsProfileIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, effectsProfileId_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, effectsProfileId_); onChanged(); return this; } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1373,10 +1172,7 @@ public Builder addAllEffectsProfileId(java.lang.Iterable value
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearEffectsProfileId() { @@ -1386,8 +1182,6 @@ public Builder clearEffectsProfileId() { return this; } /** - * - * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1397,26 +1191,24 @@ public Builder clearEffectsProfileId() {
      * current supported profile ids.
      * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the effectsProfileId to add. * @return This builder for chaining. */ - public Builder addEffectsProfileIdBytes(com.google.protobuf.ByteString value) { + public Builder addEffectsProfileIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureEffectsProfileIdIsMutable(); effectsProfileId_.add(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); } @@ -1426,12 +1218,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.AudioConfig) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.AudioConfig) private static final com.google.cloud.texttospeech.v1beta1.AudioConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.AudioConfig(); } @@ -1440,16 +1232,16 @@ public static com.google.cloud.texttospeech.v1beta1.AudioConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AudioConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AudioConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudioConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AudioConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1464,4 +1256,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1beta1.AudioConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java similarity index 67% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java index 3825c9ff..cfcd16a9 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java @@ -1,60 +1,32 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; -public interface AudioConfigOrBuilder - extends +public interface AudioConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.AudioConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The format of the audio byte stream.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for audioEncoding. */ int getAudioEncodingValue(); /** - * - * *
    * Required. The format of the audio byte stream.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The audioEncoding. */ com.google.cloud.texttospeech.v1beta1.AudioEncoding getAudioEncoding(); /** - * - * *
    * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
    * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -62,34 +34,24 @@ public interface AudioConfigOrBuilder
    * speed. Any other values < 0.25 or > 4.0 will return an error.
    * 
* - * - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The speakingRate. */ double getSpeakingRate(); /** - * - * *
    * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
    * increase 20 semitones from the original pitch. -20 means decrease 20
    * semitones from the original pitch.
    * 
* - * - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The pitch. */ double getPitch(); /** - * - * *
    * Optional. Input only. Volume gain (in dB) of the normal native volume
    * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -101,17 +63,12 @@ public interface AudioConfigOrBuilder
    * increase in loudness for any value greater than that.
    * 
* - * - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The volumeGainDb. */ double getVolumeGainDb(); /** - * - * *
    * Optional. The synthesis sample rate (in hertz) for this audio. When this is
    * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -123,14 +80,11 @@ public interface AudioConfigOrBuilder
    * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** - * - * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -140,16 +94,12 @@ public interface AudioConfigOrBuilder
    * current supported profile ids.
    * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return A list containing the effectsProfileId. */ - java.util.List getEffectsProfileIdList(); + java.util.List + getEffectsProfileIdList(); /** - * - * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -159,16 +109,11 @@ public interface AudioConfigOrBuilder
    * current supported profile ids.
    * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @return The count of effectsProfileId. */ int getEffectsProfileIdCount(); /** - * - * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -178,17 +123,12 @@ public interface AudioConfigOrBuilder
    * current supported profile ids.
    * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The effectsProfileId at the given index. */ java.lang.String getEffectsProfileId(int index); /** - * - * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -198,12 +138,10 @@ public interface AudioConfigOrBuilder
    * current supported profile ids.
    * 
* - * - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. */ - com.google.protobuf.ByteString getEffectsProfileIdBytes(int index); + com.google.protobuf.ByteString + getEffectsProfileIdBytes(int index); } diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java similarity index 74% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java index 706e6f33..bae8b42d 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java @@ -1,26 +1,9 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** - * - * *
  * Configuration to set up audio encoder. The encoding determines the output
  * audio format that we'd like.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.texttospeech.v1beta1.AudioEncoding}
  */
-public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
+public enum AudioEncoding
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
    * 
@@ -40,8 +22,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AUDIO_ENCODING_UNSPECIFIED(0), /** - * - * *
    * Uncompressed 16-bit signed little-endian samples (Linear PCM).
    * Audio content returned as LINEAR16 also contains a WAV header.
@@ -51,8 +31,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   LINEAR16(1),
   /**
-   *
-   *
    * 
    * MP3 audio at 32kbps.
    * 
@@ -61,8 +39,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ MP3(2), /** - * - * *
    * MP3 at 64kbps.
    * 
@@ -71,8 +47,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ MP3_64_KBPS(4), /** - * - * *
    * Opus encoded audio wrapped in an ogg container. The result will be a
    * file which can be played natively on Android, and in browsers (at least
@@ -84,8 +58,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   OGG_OPUS(3),
   /**
-   *
-   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
    * Audio content returned as MULAW also contains a WAV header.
@@ -95,8 +67,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   MULAW(5),
   /**
-   *
-   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law.
    * Audio content returned as ALAW also contains a WAV header.
@@ -109,8 +79,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
   ;
 
   /**
-   *
-   *
    * 
    * Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
    * 
@@ -119,8 +87,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AUDIO_ENCODING_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Uncompressed 16-bit signed little-endian samples (Linear PCM).
    * Audio content returned as LINEAR16 also contains a WAV header.
@@ -130,8 +96,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int LINEAR16_VALUE = 1;
   /**
-   *
-   *
    * 
    * MP3 audio at 32kbps.
    * 
@@ -140,8 +104,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MP3_VALUE = 2; /** - * - * *
    * MP3 at 64kbps.
    * 
@@ -150,8 +112,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MP3_64_KBPS_VALUE = 4; /** - * - * *
    * Opus encoded audio wrapped in an ogg container. The result will be a
    * file which can be played natively on Android, and in browsers (at least
@@ -163,8 +123,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int OGG_OPUS_VALUE = 3;
   /**
-   *
-   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
    * Audio content returned as MULAW also contains a WAV header.
@@ -174,8 +132,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int MULAW_VALUE = 5;
   /**
-   *
-   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law.
    * Audio content returned as ALAW also contains a WAV header.
@@ -185,6 +141,7 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int ALAW_VALUE = 6;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -209,59 +166,53 @@ public static AudioEncoding valueOf(int value) {
    */
   public static AudioEncoding forNumber(int value) {
     switch (value) {
-      case 0:
-        return AUDIO_ENCODING_UNSPECIFIED;
-      case 1:
-        return LINEAR16;
-      case 2:
-        return MP3;
-      case 4:
-        return MP3_64_KBPS;
-      case 3:
-        return OGG_OPUS;
-      case 5:
-        return MULAW;
-      case 6:
-        return ALAW;
-      default:
-        return null;
+      case 0: return AUDIO_ENCODING_UNSPECIFIED;
+      case 1: return LINEAR16;
+      case 2: return MP3;
+      case 4: return MP3_64_KBPS;
+      case 3: return OGG_OPUS;
+      case 5: return MULAW;
+      case 6: return ALAW;
+      default: return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap
+      internalGetValueMap() {
     return internalValueMap;
   }
-
-  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-      new com.google.protobuf.Internal.EnumLiteMap() {
-        public AudioEncoding findValueByNumber(int number) {
-          return AudioEncoding.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      AudioEncoding> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public AudioEncoding findValueByNumber(int number) {
+            return AudioEncoding.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.texttospeech.v1beta1.TextToSpeechProto.getDescriptor()
-        .getEnumTypes()
-        .get(1);
+  public static final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptor() {
+    return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.getDescriptor().getEnumTypes().get(1);
   }
 
   private static final AudioEncoding[] VALUES = values();
 
-  public static AudioEncoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static AudioEncoding 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;
@@ -277,3 +228,4 @@ private AudioEncoding(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.texttospeech.v1beta1.AudioEncoding)
 }
+
diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java
similarity index 64%
rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java
index cf3399d4..f483ca26 100644
--- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java
@@ -1,42 +1,24 @@
-/*
- * 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/texttospeech/v1beta1/cloud_tts.proto
 
 package com.google.cloud.texttospeech.v1beta1;
 
 /**
- *
- *
  * 
  * Description of the custom voice to be synthesized.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.CustomVoiceParams} */ -public final class CustomVoiceParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CustomVoiceParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.CustomVoiceParams) CustomVoiceParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CustomVoiceParams.newBuilder() to construct. private CustomVoiceParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CustomVoiceParams() { model_ = ""; reportedUsage_ = 0; @@ -44,15 +26,16 @@ private CustomVoiceParams() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CustomVoiceParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CustomVoiceParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,57 +54,51 @@ private CustomVoiceParams( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + model_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - reportedUsage_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + reportedUsage_ = rawValue; + 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.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.class, - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder.class); + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.class, com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder.class); } /** - * - * *
    * The usage of the synthesized audio. You must report your honest and
    * correct usage of the service as it's regulated by contract and will cause
@@ -130,10 +107,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage}
    */
-  public enum ReportedUsage implements com.google.protobuf.ProtocolMessageEnum {
+  public enum ReportedUsage
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Request with reported usage unspecified will be rejected.
      * 
@@ -142,8 +118,6 @@ public enum ReportedUsage implements com.google.protobuf.ProtocolMessageEnum { */ REPORTED_USAGE_UNSPECIFIED(0), /** - * - * *
      * For scenarios where the synthesized audio is not downloadable and can
      * only be used once. For example, real-time request in IVR system.
@@ -153,8 +127,6 @@ public enum ReportedUsage implements com.google.protobuf.ProtocolMessageEnum {
      */
     REALTIME(1),
     /**
-     *
-     *
      * 
      * For scenarios where the synthesized audio is downloadable and can be
      * reused. For example, the synthesized audio is downloaded, stored in
@@ -168,8 +140,6 @@ public enum ReportedUsage implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Request with reported usage unspecified will be rejected.
      * 
@@ -178,8 +148,6 @@ public enum ReportedUsage implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REPORTED_USAGE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * For scenarios where the synthesized audio is not downloadable and can
      * only be used once. For example, real-time request in IVR system.
@@ -189,8 +157,6 @@ public enum ReportedUsage implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REALTIME_VALUE = 1;
     /**
-     *
-     *
      * 
      * For scenarios where the synthesized audio is downloadable and can be
      * reused. For example, the synthesized audio is downloaded, stored in
@@ -201,6 +167,7 @@ public enum ReportedUsage implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int OFFLINE_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -225,51 +192,49 @@ public static ReportedUsage valueOf(int value) {
      */
     public static ReportedUsage forNumber(int value) {
       switch (value) {
-        case 0:
-          return REPORTED_USAGE_UNSPECIFIED;
-        case 1:
-          return REALTIME;
-        case 2:
-          return OFFLINE;
-        default:
-          return null;
+        case 0: return REPORTED_USAGE_UNSPECIFIED;
+        case 1: return REALTIME;
+        case 2: return OFFLINE;
+        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<
+        ReportedUsage> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public ReportedUsage findValueByNumber(int number) {
+              return ReportedUsage.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public ReportedUsage findValueByNumber(int number) {
-            return ReportedUsage.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final ReportedUsage[] VALUES = values();
 
-    public static ReportedUsage valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static ReportedUsage 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;
@@ -289,16 +254,11 @@ private ReportedUsage(int value) {
   public static final int MODEL_FIELD_NUMBER = 1;
   private volatile java.lang.Object model_;
   /**
-   *
-   *
    * 
    * Required. The name of the AutoML model that synthesizes the custom voice.
    * 
* - * - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The model. */ @java.lang.Override @@ -307,31 +267,29 @@ 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; } } /** - * - * *
    * Required. The name of the AutoML model that synthesizes the custom voice.
    * 
* - * - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -342,48 +300,31 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int REPORTED_USAGE_FIELD_NUMBER = 3; private int reportedUsage_; /** - * - * *
    * Optional. The usage of the synthesized audio to be reported.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for reportedUsage. */ - @java.lang.Override - public int getReportedUsageValue() { + @java.lang.Override public int getReportedUsageValue() { return reportedUsage_; } /** - * - * *
    * Optional. The usage of the synthesized audio to be reported.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The reportedUsage. */ - @java.lang.Override - public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage getReportedUsage() { + @java.lang.Override public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage getReportedUsage() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage result = - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.valueOf( - reportedUsage_); - return result == null - ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.UNRECOGNIZED - : result; + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage result = com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.valueOf(reportedUsage_); + return result == null ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,14 +336,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(model_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_); } - if (reportedUsage_ - != com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage - .REPORTED_USAGE_UNSPECIFIED - .getNumber()) { + if (reportedUsage_ != com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.REPORTED_USAGE_UNSPECIFIED.getNumber()) { output.writeEnum(3, reportedUsage_); } unknownFields.writeTo(output); @@ -417,11 +356,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, model_); } - if (reportedUsage_ - != com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage - .REPORTED_USAGE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, reportedUsage_); + if (reportedUsage_ != com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.REPORTED_USAGE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, reportedUsage_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -431,15 +368,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.texttospeech.v1beta1.CustomVoiceParams)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams other = - (com.google.cloud.texttospeech.v1beta1.CustomVoiceParams) obj; + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams other = (com.google.cloud.texttospeech.v1beta1.CustomVoiceParams) obj; - if (!getModel().equals(other.getModel())) return false; + if (!getModel() + .equals(other.getModel())) return false; if (reportedUsage_ != other.reportedUsage_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -462,127 +399,117 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams prototype) { + public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.CustomVoiceParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Description of the custom voice to be synthesized.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.CustomVoiceParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.CustomVoiceParams) com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.class, - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder.class); + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.class, com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder.class); } // Construct using com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.newBuilder() @@ -590,15 +517,16 @@ 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(); @@ -610,9 +538,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor; } @java.lang.Override @@ -631,8 +559,7 @@ public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams build() { @java.lang.Override public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams buildPartial() { - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams result = - new com.google.cloud.texttospeech.v1beta1.CustomVoiceParams(this); + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams result = new com.google.cloud.texttospeech.v1beta1.CustomVoiceParams(this); result.model_ = model_; result.reportedUsage_ = reportedUsage_; onBuilt(); @@ -643,39 +570,38 @@ public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams 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.texttospeech.v1beta1.CustomVoiceParams) { - return mergeFrom((com.google.cloud.texttospeech.v1beta1.CustomVoiceParams) other); + return mergeFrom((com.google.cloud.texttospeech.v1beta1.CustomVoiceParams)other); } else { super.mergeFrom(other); return this; @@ -683,8 +609,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.CustomVoiceParams other) { - if (other == com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDefaultInstance()) - return this; + if (other == com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDefaultInstance()) return this; if (!other.getModel().isEmpty()) { model_ = other.model_; onChanged(); @@ -711,8 +636,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.texttospeech.v1beta1.CustomVoiceParams) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.texttospeech.v1beta1.CustomVoiceParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -724,22 +648,18 @@ public Builder mergeFrom( private java.lang.Object model_ = ""; /** - * - * *
      * Required. The name of the AutoML model that synthesizes the custom voice.
      * 
* - * - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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; @@ -748,23 +668,20 @@ public java.lang.String getModel() { } } /** - * - * *
      * Required. The name of the AutoML model that synthesizes the custom voice.
      * 
* - * - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -772,67 +689,54 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Required. The name of the AutoML model that synthesizes the custom voice.
      * 
* - * - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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; } /** - * - * *
      * Required. The name of the AutoML model that synthesizes the custom voice.
      * 
* - * - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Required. The name of the AutoML model that synthesizes the custom voice.
      * 
* - * - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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; @@ -840,112 +744,80 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { private int reportedUsage_ = 0; /** - * - * *
      * Optional. The usage of the synthesized audio to be reported.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for reportedUsage. */ - @java.lang.Override - public int getReportedUsageValue() { + @java.lang.Override public int getReportedUsageValue() { return reportedUsage_; } /** - * - * *
      * Optional. The usage of the synthesized audio to be reported.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for reportedUsage to set. * @return This builder for chaining. */ public Builder setReportedUsageValue(int value) { - + reportedUsage_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The usage of the synthesized audio to be reported.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The reportedUsage. */ @java.lang.Override - public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage - getReportedUsage() { + public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage getReportedUsage() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage result = - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.valueOf( - reportedUsage_); - return result == null - ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.UNRECOGNIZED - : result; + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage result = com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.valueOf(reportedUsage_); + return result == null ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The usage of the synthesized audio to be reported.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The reportedUsage to set. * @return This builder for chaining. */ - public Builder setReportedUsage( - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage value) { + public Builder setReportedUsage(com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage value) { if (value == null) { throw new NullPointerException(); } - + reportedUsage_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. The usage of the synthesized audio to be reported.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearReportedUsage() { - + reportedUsage_ = 0; 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); } @@ -955,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.CustomVoiceParams) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.CustomVoiceParams) private static final com.google.cloud.texttospeech.v1beta1.CustomVoiceParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.CustomVoiceParams(); } @@ -969,16 +841,16 @@ public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomVoiceParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomVoiceParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomVoiceParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomVoiceParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -993,4 +865,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java new file mode 100644 index 00000000..8adc813c --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java @@ -0,0 +1,48 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/texttospeech/v1beta1/cloud_tts.proto + +package com.google.cloud.texttospeech.v1beta1; + +public interface CustomVoiceParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.CustomVoiceParams) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the AutoML model that synthesizes the custom voice.
+   * 
+ * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The model. + */ + java.lang.String getModel(); + /** + *
+   * Required. The name of the AutoML model that synthesizes the custom voice.
+   * 
+ * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for model. + */ + com.google.protobuf.ByteString + getModelBytes(); + + /** + *
+   * Optional. The usage of the synthesized audio to be reported.
+   * 
+ * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enum numeric value on the wire for reportedUsage. + */ + int getReportedUsageValue(); + /** + *
+   * Optional. The usage of the synthesized audio to be reported.
+   * 
+ * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The reportedUsage. + */ + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage getReportedUsage(); +} diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java similarity index 64% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java index e429442c..7ba8fc48 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java @@ -1,57 +1,40 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** - * - * *
  * The top-level message sent by the client for the `ListVoices` method.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.ListVoicesRequest} */ -public final class ListVoicesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListVoicesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.ListVoicesRequest) ListVoicesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListVoicesRequest.newBuilder() to construct. private ListVoicesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListVoicesRequest() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListVoicesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListVoicesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,66 +53,59 @@ private ListVoicesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCode_ = s; + 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.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.class, - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.Builder.class); + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.class, com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** - * - * *
    * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
    * If not specified, the API will return all supported voices.
    * If specified, the ListVoices call will only return voices that can be used
-   * to synthesize this language_code. E.g. when specifying `"en-NZ"`, you will
-   * get supported `"en-NZ"` voices; when specifying `"no"`, you will get
-   * supported `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices;
-   * specifying `"zh"` will also get supported `"cmn-\*"` voices; specifying
-   * `"zh-hk"` will also get supported `"yue-hk"` voices.
+   * to synthesize this language_code. For example, if you specify `"en-NZ"`,
+   * all `"en-NZ"` voices will be returned. If you specify `"no"`, both
+   * `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
+   * returned.
    * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ @java.lang.Override @@ -138,37 +114,36 @@ 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; } } /** - * - * *
    * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
    * If not specified, the API will return all supported voices.
    * If specified, the ListVoices call will only return voices that can be used
-   * to synthesize this language_code. E.g. when specifying `"en-NZ"`, you will
-   * get supported `"en-NZ"` voices; when specifying `"no"`, you will get
-   * supported `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices;
-   * specifying `"zh"` will also get supported `"cmn-\*"` voices; specifying
-   * `"zh-hk"` will also get supported `"yue-hk"` voices.
+   * to synthesize this language_code. For example, if you specify `"en-NZ"`,
+   * all `"en-NZ"` voices will be returned. If you specify `"no"`, both
+   * `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
+   * returned.
    * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -177,7 +152,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,7 +163,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -213,15 +188,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.texttospeech.v1beta1.ListVoicesRequest)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest other = - (com.google.cloud.texttospeech.v1beta1.ListVoicesRequest) obj; + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest other = (com.google.cloud.texttospeech.v1beta1.ListVoicesRequest) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -241,127 +216,117 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest prototype) { + public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.ListVoicesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 top-level message sent by the client for the `ListVoices` method.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.ListVoicesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.ListVoicesRequest) com.google.cloud.texttospeech.v1beta1.ListVoicesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.class, - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.Builder.class); + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.class, com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.Builder.class); } // Construct using com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.newBuilder() @@ -369,15 +334,16 @@ 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(); @@ -387,9 +353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor; } @java.lang.Override @@ -408,8 +374,7 @@ public com.google.cloud.texttospeech.v1beta1.ListVoicesRequest build() { @java.lang.Override public com.google.cloud.texttospeech.v1beta1.ListVoicesRequest buildPartial() { - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest result = - new com.google.cloud.texttospeech.v1beta1.ListVoicesRequest(this); + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest result = new com.google.cloud.texttospeech.v1beta1.ListVoicesRequest(this); result.languageCode_ = languageCode_; onBuilt(); return result; @@ -419,39 +384,38 @@ public com.google.cloud.texttospeech.v1beta1.ListVoicesRequest 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.texttospeech.v1beta1.ListVoicesRequest) { - return mergeFrom((com.google.cloud.texttospeech.v1beta1.ListVoicesRequest) other); + return mergeFrom((com.google.cloud.texttospeech.v1beta1.ListVoicesRequest)other); } else { super.mergeFrom(other); return this; @@ -459,8 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.ListVoicesRequest other) { - if (other == com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -484,8 +447,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.texttospeech.v1beta1.ListVoicesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.texttospeech.v1beta1.ListVoicesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,28 +459,25 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** - * - * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
      * If not specified, the API will return all supported voices.
      * If specified, the ListVoices call will only return voices that can be used
-     * to synthesize this language_code. E.g. when specifying `"en-NZ"`, you will
-     * get supported `"en-NZ"` voices; when specifying `"no"`, you will get
-     * supported `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices;
-     * specifying `"zh"` will also get supported `"cmn-\*"` voices; specifying
-     * `"zh-hk"` will also get supported `"yue-hk"` voices.
+     * to synthesize this language_code. For example, if you specify `"en-NZ"`,
+     * all `"en-NZ"` voices will be returned. If you specify `"no"`, both
+     * `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
+     * returned.
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -527,29 +486,27 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
      * If not specified, the API will return all supported voices.
      * If specified, the ListVoices call will only return voices that can be used
-     * to synthesize this language_code. E.g. when specifying `"en-NZ"`, you will
-     * get supported `"en-NZ"` voices; when specifying `"no"`, you will get
-     * supported `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices;
-     * specifying `"zh"` will also get supported `"cmn-\*"` voices; specifying
-     * `"zh-hk"` will also get supported `"yue-hk"` voices.
+     * to synthesize this language_code. For example, if you specify `"en-NZ"`,
+     * all `"en-NZ"` voices will be returned. If you specify `"no"`, both
+     * `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
+     * returned.
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -557,92 +514,82 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
      * If not specified, the API will return all supported voices.
      * If specified, the ListVoices call will only return voices that can be used
-     * to synthesize this language_code. E.g. when specifying `"en-NZ"`, you will
-     * get supported `"en-NZ"` voices; when specifying `"no"`, you will get
-     * supported `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices;
-     * specifying `"zh"` will also get supported `"cmn-\*"` voices; specifying
-     * `"zh-hk"` will also get supported `"yue-hk"` voices.
+     * to synthesize this language_code. For example, if you specify `"en-NZ"`,
+     * all `"en-NZ"` voices will be returned. If you specify `"no"`, both
+     * `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
+     * returned.
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
      * If not specified, the API will return all supported voices.
      * If specified, the ListVoices call will only return voices that can be used
-     * to synthesize this language_code. E.g. when specifying `"en-NZ"`, you will
-     * get supported `"en-NZ"` voices; when specifying `"no"`, you will get
-     * supported `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices;
-     * specifying `"zh"` will also get supported `"cmn-\*"` voices; specifying
-     * `"zh-hk"` will also get supported `"yue-hk"` voices.
+     * to synthesize this language_code. For example, if you specify `"en-NZ"`,
+     * all `"en-NZ"` voices will be returned. If you specify `"no"`, both
+     * `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
+     * returned.
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
      * If not specified, the API will return all supported voices.
      * If specified, the ListVoices call will only return voices that can be used
-     * to synthesize this language_code. E.g. when specifying `"en-NZ"`, you will
-     * get supported `"en-NZ"` voices; when specifying `"no"`, you will get
-     * supported `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices;
-     * specifying `"zh"` will also get supported `"cmn-\*"` voices; specifying
-     * `"zh-hk"` will also get supported `"yue-hk"` voices.
+     * to synthesize this language_code. For example, if you specify `"en-NZ"`,
+     * all `"en-NZ"` voices will be returned. If you specify `"no"`, both
+     * `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
+     * returned.
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -652,12 +599,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.ListVoicesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.ListVoicesRequest) private static final com.google.cloud.texttospeech.v1beta1.ListVoicesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.ListVoicesRequest(); } @@ -666,16 +613,16 @@ public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVoicesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVoicesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVoicesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVoicesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -690,4 +637,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1beta1.ListVoicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java new file mode 100644 index 00000000..bba7a6cd --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java @@ -0,0 +1,43 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/texttospeech/v1beta1/cloud_tts.proto + +package com.google.cloud.texttospeech.v1beta1; + +public interface ListVoicesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.ListVoicesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Optional. Recommended.
+   * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
+   * If not specified, the API will return all supported voices.
+   * If specified, the ListVoices call will only return voices that can be used
+   * to synthesize this language_code. For example, if you specify `"en-NZ"`,
+   * all `"en-NZ"` voices will be returned. If you specify `"no"`, both
+   * `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
+   * returned.
+   * 
+ * + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + /** + *
+   * Optional. Recommended.
+   * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
+   * If not specified, the API will return all supported voices.
+   * If specified, the ListVoices call will only return voices that can be used
+   * to synthesize this language_code. For example, if you specify `"en-NZ"`,
+   * all `"en-NZ"` voices will be returned. If you specify `"no"`, both
+   * `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
+   * returned.
+   * 
+ * + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString + getLanguageCodeBytes(); +} diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponse.java similarity index 73% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponse.java index 6860e3bb..437f2038 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponse.java @@ -1,57 +1,40 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** - * - * *
  * The message returned to the client by the `ListVoices` method.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.ListVoicesResponse} */ -public final class ListVoicesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListVoicesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.ListVoicesResponse) ListVoicesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListVoicesResponse.newBuilder() to construct. private ListVoicesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListVoicesResponse() { voices_ = 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 ListVoicesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListVoicesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,30 +54,29 @@ private ListVoicesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - voices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - voices_.add( - input.readMessage( - com.google.cloud.texttospeech.v1beta1.Voice.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + voices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + voices_.add( + input.readMessage(com.google.cloud.texttospeech.v1beta1.Voice.parser(), extensionRegistry)); + 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { voices_ = java.util.Collections.unmodifiableList(voices_); @@ -103,27 +85,22 @@ private ListVoicesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.class, - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.Builder.class); + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.class, com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.Builder.class); } public static final int VOICES_FIELD_NUMBER = 1; private java.util.List voices_; /** - * - * *
    * The list of voices.
    * 
@@ -135,8 +112,6 @@ public java.util.List getVoicesList return voices_; } /** - * - * *
    * The list of voices.
    * 
@@ -144,13 +119,11 @@ public java.util.List getVoicesList * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVoicesOrBuilderList() { return voices_; } /** - * - * *
    * The list of voices.
    * 
@@ -162,8 +135,6 @@ public int getVoicesCount() { return voices_.size(); } /** - * - * *
    * The list of voices.
    * 
@@ -175,8 +146,6 @@ public com.google.cloud.texttospeech.v1beta1.Voice getVoices(int index) { return voices_.get(index); } /** - * - * *
    * The list of voices.
    * 
@@ -184,12 +153,12 @@ public com.google.cloud.texttospeech.v1beta1.Voice getVoices(int index) { * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ @java.lang.Override - public com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder getVoicesOrBuilder(int index) { + public com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder getVoicesOrBuilder( + int index) { return voices_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +170,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < voices_.size(); i++) { output.writeMessage(1, voices_.get(i)); } @@ -215,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < voices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, voices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, voices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -225,15 +196,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.texttospeech.v1beta1.ListVoicesResponse)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse other = - (com.google.cloud.texttospeech.v1beta1.ListVoicesResponse) obj; + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse other = (com.google.cloud.texttospeech.v1beta1.ListVoicesResponse) obj; - if (!getVoicesList().equals(other.getVoicesList())) return false; + if (!getVoicesList() + .equals(other.getVoicesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -255,127 +226,117 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse prototype) { + public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.ListVoicesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message returned to the client by the `ListVoices` method.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.ListVoicesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.ListVoicesResponse) com.google.cloud.texttospeech.v1beta1.ListVoicesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.class, - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.Builder.class); + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.class, com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.Builder.class); } // Construct using com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.newBuilder() @@ -383,17 +344,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) { getVoicesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -407,9 +368,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor; } @java.lang.Override @@ -428,8 +389,7 @@ public com.google.cloud.texttospeech.v1beta1.ListVoicesResponse build() { @java.lang.Override public com.google.cloud.texttospeech.v1beta1.ListVoicesResponse buildPartial() { - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse result = - new com.google.cloud.texttospeech.v1beta1.ListVoicesResponse(this); + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse result = new com.google.cloud.texttospeech.v1beta1.ListVoicesResponse(this); int from_bitField0_ = bitField0_; if (voicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -448,39 +408,38 @@ public com.google.cloud.texttospeech.v1beta1.ListVoicesResponse 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.texttospeech.v1beta1.ListVoicesResponse) { - return mergeFrom((com.google.cloud.texttospeech.v1beta1.ListVoicesResponse) other); + return mergeFrom((com.google.cloud.texttospeech.v1beta1.ListVoicesResponse)other); } else { super.mergeFrom(other); return this; @@ -488,8 +447,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.ListVoicesResponse other) { - if (other == com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.getDefaultInstance()) return this; if (voicesBuilder_ == null) { if (!other.voices_.isEmpty()) { if (voices_.isEmpty()) { @@ -508,10 +466,9 @@ public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.ListVoicesRespons voicesBuilder_ = null; voices_ = other.voices_; bitField0_ = (bitField0_ & ~0x00000001); - voicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVoicesFieldBuilder() - : null; + voicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVoicesFieldBuilder() : null; } else { voicesBuilder_.addAllMessages(other.voices_); } @@ -536,8 +493,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.texttospeech.v1beta1.ListVoicesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.texttospeech.v1beta1.ListVoicesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -546,28 +502,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List voices_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVoicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { voices_ = new java.util.ArrayList(voices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.Voice, - com.google.cloud.texttospeech.v1beta1.Voice.Builder, - com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder> - voicesBuilder_; + com.google.cloud.texttospeech.v1beta1.Voice, com.google.cloud.texttospeech.v1beta1.Voice.Builder, com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder> voicesBuilder_; /** - * - * *
      * The list of voices.
      * 
@@ -582,8 +531,6 @@ public java.util.List getVoicesList } } /** - * - * *
      * The list of voices.
      * 
@@ -598,8 +545,6 @@ public int getVoicesCount() { } } /** - * - * *
      * The list of voices.
      * 
@@ -614,15 +559,14 @@ public com.google.cloud.texttospeech.v1beta1.Voice getVoices(int index) { } } /** - * - * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - public Builder setVoices(int index, com.google.cloud.texttospeech.v1beta1.Voice value) { + public Builder setVoices( + int index, com.google.cloud.texttospeech.v1beta1.Voice value) { if (voicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -636,8 +580,6 @@ public Builder setVoices(int index, com.google.cloud.texttospeech.v1beta1.Voice return this; } /** - * - * *
      * The list of voices.
      * 
@@ -656,8 +598,6 @@ public Builder setVoices( return this; } /** - * - * *
      * The list of voices.
      * 
@@ -678,15 +618,14 @@ public Builder addVoices(com.google.cloud.texttospeech.v1beta1.Voice value) { return this; } /** - * - * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - public Builder addVoices(int index, com.google.cloud.texttospeech.v1beta1.Voice value) { + public Builder addVoices( + int index, com.google.cloud.texttospeech.v1beta1.Voice value) { if (voicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -700,15 +639,14 @@ public Builder addVoices(int index, com.google.cloud.texttospeech.v1beta1.Voice return this; } /** - * - * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - public Builder addVoices(com.google.cloud.texttospeech.v1beta1.Voice.Builder builderForValue) { + public Builder addVoices( + com.google.cloud.texttospeech.v1beta1.Voice.Builder builderForValue) { if (voicesBuilder_ == null) { ensureVoicesIsMutable(); voices_.add(builderForValue.build()); @@ -719,8 +657,6 @@ public Builder addVoices(com.google.cloud.texttospeech.v1beta1.Voice.Builder bui return this; } /** - * - * *
      * The list of voices.
      * 
@@ -739,8 +675,6 @@ public Builder addVoices( return this; } /** - * - * *
      * The list of voices.
      * 
@@ -751,7 +685,8 @@ public Builder addAllVoices( java.lang.Iterable values) { if (voicesBuilder_ == null) { ensureVoicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, voices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, voices_); onChanged(); } else { voicesBuilder_.addAllMessages(values); @@ -759,8 +694,6 @@ public Builder addAllVoices( return this; } /** - * - * *
      * The list of voices.
      * 
@@ -778,8 +711,6 @@ public Builder clearVoices() { return this; } /** - * - * *
      * The list of voices.
      * 
@@ -797,44 +728,39 @@ public Builder removeVoices(int index) { return this; } /** - * - * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - public com.google.cloud.texttospeech.v1beta1.Voice.Builder getVoicesBuilder(int index) { + public com.google.cloud.texttospeech.v1beta1.Voice.Builder getVoicesBuilder( + int index) { return getVoicesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - public com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder getVoicesOrBuilder(int index) { + public com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder getVoicesOrBuilder( + int index) { if (voicesBuilder_ == null) { - return voices_.get(index); - } else { + return voices_.get(index); } else { return voicesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - public java.util.List - getVoicesOrBuilderList() { + public java.util.List + getVoicesOrBuilderList() { if (voicesBuilder_ != null) { return voicesBuilder_.getMessageOrBuilderList(); } else { @@ -842,8 +768,6 @@ public com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder getVoicesOrBuilder(i } } /** - * - * *
      * The list of voices.
      * 
@@ -851,55 +775,49 @@ public com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder getVoicesOrBuilder(i * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ public com.google.cloud.texttospeech.v1beta1.Voice.Builder addVoicesBuilder() { - return getVoicesFieldBuilder() - .addBuilder(com.google.cloud.texttospeech.v1beta1.Voice.getDefaultInstance()); + return getVoicesFieldBuilder().addBuilder( + com.google.cloud.texttospeech.v1beta1.Voice.getDefaultInstance()); } /** - * - * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - public com.google.cloud.texttospeech.v1beta1.Voice.Builder addVoicesBuilder(int index) { - return getVoicesFieldBuilder() - .addBuilder(index, com.google.cloud.texttospeech.v1beta1.Voice.getDefaultInstance()); + public com.google.cloud.texttospeech.v1beta1.Voice.Builder addVoicesBuilder( + int index) { + return getVoicesFieldBuilder().addBuilder( + index, com.google.cloud.texttospeech.v1beta1.Voice.getDefaultInstance()); } /** - * - * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - public java.util.List - getVoicesBuilderList() { + public java.util.List + getVoicesBuilderList() { return getVoicesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.Voice, - com.google.cloud.texttospeech.v1beta1.Voice.Builder, - com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder> + com.google.cloud.texttospeech.v1beta1.Voice, com.google.cloud.texttospeech.v1beta1.Voice.Builder, com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder> getVoicesFieldBuilder() { if (voicesBuilder_ == null) { - voicesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.Voice, - com.google.cloud.texttospeech.v1beta1.Voice.Builder, - com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder>( - voices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + voicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.Voice, com.google.cloud.texttospeech.v1beta1.Voice.Builder, com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder>( + voices_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); voices_ = null; } return voicesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -909,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.ListVoicesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.ListVoicesResponse) private static final com.google.cloud.texttospeech.v1beta1.ListVoicesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.ListVoicesResponse(); } @@ -923,16 +841,16 @@ public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVoicesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVoicesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVoicesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVoicesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,4 +865,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1beta1.ListVoicesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponseOrBuilder.java similarity index 61% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponseOrBuilder.java index 807694a7..82ffccc5 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; -public interface ListVoicesResponseOrBuilder - extends +public interface ListVoicesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.ListVoicesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of voices.
    * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - java.util.List getVoicesList(); + java.util.List + getVoicesList(); /** - * - * *
    * The list of voices.
    * 
@@ -44,8 +25,6 @@ public interface ListVoicesResponseOrBuilder */ com.google.cloud.texttospeech.v1beta1.Voice getVoices(int index); /** - * - * *
    * The list of voices.
    * 
@@ -54,24 +33,21 @@ public interface ListVoicesResponseOrBuilder */ int getVoicesCount(); /** - * - * *
    * The list of voices.
    * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - java.util.List + java.util.List getVoicesOrBuilderList(); /** - * - * *
    * The list of voices.
    * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder getVoicesOrBuilder(int index); + com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder getVoicesOrBuilder( + int index); } diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SsmlVoiceGender.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SsmlVoiceGender.java similarity index 70% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SsmlVoiceGender.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SsmlVoiceGender.java index 925a1456..12408479 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SsmlVoiceGender.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SsmlVoiceGender.java @@ -1,26 +1,9 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** - * - * *
  * Gender of the voice as described in
  * [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.texttospeech.v1beta1.SsmlVoiceGender}
  */
-public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum {
+public enum SsmlVoiceGender
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * An unspecified gender.
    * In VoiceSelectionParams, this means that the client doesn't care which
@@ -44,8 +26,6 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum {
    */
   SSML_VOICE_GENDER_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * A male voice.
    * 
@@ -54,8 +34,6 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum { */ MALE(1), /** - * - * *
    * A female voice.
    * 
@@ -64,8 +42,6 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum { */ FEMALE(2), /** - * - * *
    * A gender-neutral voice. This voice is not yet supported.
    * 
@@ -77,8 +53,6 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * An unspecified gender.
    * In VoiceSelectionParams, this means that the client doesn't care which
@@ -91,8 +65,6 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int SSML_VOICE_GENDER_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * A male voice.
    * 
@@ -101,8 +73,6 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MALE_VALUE = 1; /** - * - * *
    * A female voice.
    * 
@@ -111,8 +81,6 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FEMALE_VALUE = 2; /** - * - * *
    * A gender-neutral voice. This voice is not yet supported.
    * 
@@ -121,6 +89,7 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NEUTRAL_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -145,53 +114,50 @@ public static SsmlVoiceGender valueOf(int value) { */ public static SsmlVoiceGender forNumber(int value) { switch (value) { - case 0: - return SSML_VOICE_GENDER_UNSPECIFIED; - case 1: - return MALE; - case 2: - return FEMALE; - case 3: - return NEUTRAL; - default: - return null; + case 0: return SSML_VOICE_GENDER_UNSPECIFIED; + case 1: return MALE; + case 2: return FEMALE; + case 3: return NEUTRAL; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SsmlVoiceGender findValueByNumber(int number) { - return SsmlVoiceGender.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + SsmlVoiceGender> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SsmlVoiceGender findValueByNumber(int number) { + return SsmlVoiceGender.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.texttospeech.v1beta1.TextToSpeechProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.getDescriptor().getEnumTypes().get(0); } private static final SsmlVoiceGender[] VALUES = values(); - public static SsmlVoiceGender valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SsmlVoiceGender 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; @@ -207,3 +173,4 @@ private SsmlVoiceGender(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.texttospeech.v1beta1.SsmlVoiceGender) } + diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java similarity index 73% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java index 2af78ba5..fbf4da01 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java @@ -1,26 +1,9 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** - * - * *
  * Contains text input to be synthesized. Either `text` or `ssml` must be
  * supplied. Supplying both or neither returns
@@ -30,29 +13,30 @@
  *
  * Protobuf type {@code google.cloud.texttospeech.v1beta1.SynthesisInput}
  */
-public final class SynthesisInput extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SynthesisInput extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.SynthesisInput)
     SynthesisInputOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SynthesisInput.newBuilder() to construct.
   private SynthesisInput(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private SynthesisInput() {}
+  private SynthesisInput() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SynthesisInput();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SynthesisInput(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,66 +55,59 @@ private SynthesisInput(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              inputSourceCase_ = 1;
-              inputSource_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              inputSourceCase_ = 2;
-              inputSource_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+            inputSourceCase_ = 1;
+            inputSource_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+            inputSourceCase_ = 2;
+            inputSource_ = s;
+            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.texttospeech.v1beta1.TextToSpeechProto
-        .internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
-        .internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_fieldAccessorTable
+    return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.texttospeech.v1beta1.SynthesisInput.class,
-            com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder.class);
+            com.google.cloud.texttospeech.v1beta1.SynthesisInput.class, com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder.class);
   }
 
   private int inputSourceCase_ = 0;
   private java.lang.Object inputSource_;
-
   public enum InputSourceCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     TEXT(1),
     SSML(2),
     INPUTSOURCE_NOT_SET(0);
     private final int value;
-
     private InputSourceCase(int value) {
       this.value = value;
     }
@@ -146,50 +123,41 @@ public static InputSourceCase valueOf(int value) {
 
     public static InputSourceCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return TEXT;
-        case 2:
-          return SSML;
-        case 0:
-          return INPUTSOURCE_NOT_SET;
-        default:
-          return null;
+        case 1: return TEXT;
+        case 2: return SSML;
+        case 0: return INPUTSOURCE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public InputSourceCase getInputSourceCase() {
-    return InputSourceCase.forNumber(inputSourceCase_);
+  public InputSourceCase
+  getInputSourceCase() {
+    return InputSourceCase.forNumber(
+        inputSourceCase_);
   }
 
   public static final int TEXT_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * The raw text to be synthesized.
    * 
* * string text = 1; - * * @return Whether the text field is set. */ public boolean hasText() { return inputSourceCase_ == 1; } /** - * - * *
    * The raw text to be synthesized.
    * 
* * string text = 1; - * * @return The text. */ public java.lang.String getText() { @@ -200,7 +168,8 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (inputSourceCase_ == 1) { inputSource_ = s; @@ -209,24 +178,23 @@ public java.lang.String getText() { } } /** - * - * *
    * The raw text to be synthesized.
    * 
* * string text = 1; - * * @return The bytes for text. */ - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = ""; if (inputSourceCase_ == 1) { ref = inputSource_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (inputSourceCase_ == 1) { inputSource_ = b; } @@ -238,8 +206,6 @@ public com.google.protobuf.ByteString getTextBytes() { public static final int SSML_FIELD_NUMBER = 2; /** - * - * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -248,15 +214,12 @@ public com.google.protobuf.ByteString getTextBytes() {
    * 
* * string ssml = 2; - * * @return Whether the ssml field is set. */ public boolean hasSsml() { return inputSourceCase_ == 2; } /** - * - * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -265,7 +228,6 @@ public boolean hasSsml() {
    * 
* * string ssml = 2; - * * @return The ssml. */ public java.lang.String getSsml() { @@ -276,7 +238,8 @@ public java.lang.String getSsml() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (inputSourceCase_ == 2) { inputSource_ = s; @@ -285,8 +248,6 @@ public java.lang.String getSsml() { } } /** - * - * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -295,17 +256,18 @@ public java.lang.String getSsml() {
    * 
* * string ssml = 2; - * * @return The bytes for ssml. */ - public com.google.protobuf.ByteString getSsmlBytes() { + public com.google.protobuf.ByteString + getSsmlBytes() { java.lang.Object ref = ""; if (inputSourceCase_ == 2) { ref = inputSource_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (inputSourceCase_ == 2) { inputSource_ = b; } @@ -316,7 +278,6 @@ public com.google.protobuf.ByteString getSsmlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (inputSourceCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputSource_); } @@ -358,21 +320,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.texttospeech.v1beta1.SynthesisInput)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.SynthesisInput other = - (com.google.cloud.texttospeech.v1beta1.SynthesisInput) obj; + com.google.cloud.texttospeech.v1beta1.SynthesisInput other = (com.google.cloud.texttospeech.v1beta1.SynthesisInput) obj; if (!getInputSourceCase().equals(other.getInputSourceCase())) return false; switch (inputSourceCase_) { case 1: - if (!getText().equals(other.getText())) return false; + if (!getText() + .equals(other.getText())) return false; break; case 2: - if (!getSsml().equals(other.getSsml())) return false; + if (!getSsml() + .equals(other.getSsml())) return false; break; case 0: default: @@ -406,103 +369,96 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.SynthesisInput prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains text input to be synthesized. Either `text` or `ssml` must be
    * supplied. Supplying both or neither returns
@@ -512,23 +468,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.texttospeech.v1beta1.SynthesisInput}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.SynthesisInput)
       com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
-          .internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
-          .internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_fieldAccessorTable
+      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.texttospeech.v1beta1.SynthesisInput.class,
-              com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder.class);
+              com.google.cloud.texttospeech.v1beta1.SynthesisInput.class, com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder.class);
     }
 
     // Construct using com.google.cloud.texttospeech.v1beta1.SynthesisInput.newBuilder()
@@ -536,15 +490,16 @@ 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();
@@ -554,9 +509,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
-          .internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor;
     }
 
     @java.lang.Override
@@ -575,8 +530,7 @@ public com.google.cloud.texttospeech.v1beta1.SynthesisInput build() {
 
     @java.lang.Override
     public com.google.cloud.texttospeech.v1beta1.SynthesisInput buildPartial() {
-      com.google.cloud.texttospeech.v1beta1.SynthesisInput result =
-          new com.google.cloud.texttospeech.v1beta1.SynthesisInput(this);
+      com.google.cloud.texttospeech.v1beta1.SynthesisInput result = new com.google.cloud.texttospeech.v1beta1.SynthesisInput(this);
       if (inputSourceCase_ == 1) {
         result.inputSource_ = inputSource_;
       }
@@ -592,39 +546,38 @@ public com.google.cloud.texttospeech.v1beta1.SynthesisInput 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.texttospeech.v1beta1.SynthesisInput) {
-        return mergeFrom((com.google.cloud.texttospeech.v1beta1.SynthesisInput) other);
+        return mergeFrom((com.google.cloud.texttospeech.v1beta1.SynthesisInput)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -632,27 +585,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.SynthesisInput other) {
-      if (other == com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance()) return this;
       switch (other.getInputSourceCase()) {
-        case TEXT:
-          {
-            inputSourceCase_ = 1;
-            inputSource_ = other.inputSource_;
-            onChanged();
-            break;
-          }
-        case SSML:
-          {
-            inputSourceCase_ = 2;
-            inputSource_ = other.inputSource_;
-            onChanged();
-            break;
-          }
-        case INPUTSOURCE_NOT_SET:
-          {
-            break;
-          }
+        case TEXT: {
+          inputSourceCase_ = 1;
+          inputSource_ = other.inputSource_;
+          onChanged();
+          break;
+        }
+        case SSML: {
+          inputSourceCase_ = 2;
+          inputSource_ = other.inputSource_;
+          onChanged();
+          break;
+        }
+        case INPUTSOURCE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -673,8 +622,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.texttospeech.v1beta1.SynthesisInput) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.texttospeech.v1beta1.SynthesisInput) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -683,12 +631,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int inputSourceCase_ = 0;
     private java.lang.Object inputSource_;
-
-    public InputSourceCase getInputSourceCase() {
-      return InputSourceCase.forNumber(inputSourceCase_);
+    public InputSourceCase
+        getInputSourceCase() {
+      return InputSourceCase.forNumber(
+          inputSourceCase_);
     }
 
     public Builder clearInputSource() {
@@ -698,15 +646,13 @@ public Builder clearInputSource() {
       return this;
     }
 
+
     /**
-     *
-     *
      * 
      * The raw text to be synthesized.
      * 
* * string text = 1; - * * @return Whether the text field is set. */ @java.lang.Override @@ -714,14 +660,11 @@ public boolean hasText() { return inputSourceCase_ == 1; } /** - * - * *
      * The raw text to be synthesized.
      * 
* * string text = 1; - * * @return The text. */ @java.lang.Override @@ -731,7 +674,8 @@ public java.lang.String getText() { ref = inputSource_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (inputSourceCase_ == 1) { inputSource_ = s; @@ -742,25 +686,24 @@ public java.lang.String getText() { } } /** - * - * *
      * The raw text to be synthesized.
      * 
* * string text = 1; - * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { + public com.google.protobuf.ByteString + getTextBytes() { java.lang.Object ref = ""; if (inputSourceCase_ == 1) { ref = inputSource_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (inputSourceCase_ == 1) { inputSource_ = b; } @@ -770,35 +713,30 @@ public com.google.protobuf.ByteString getTextBytes() { } } /** - * - * *
      * The raw text to be synthesized.
      * 
* * string text = 1; - * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText(java.lang.String value) { + public Builder setText( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - inputSourceCase_ = 1; + throw new NullPointerException(); + } + inputSourceCase_ = 1; inputSource_ = value; onChanged(); return this; } /** - * - * *
      * The raw text to be synthesized.
      * 
* * string text = 1; - * * @return This builder for chaining. */ public Builder clearText() { @@ -810,22 +748,20 @@ public Builder clearText() { return this; } /** - * - * *
      * The raw text to be synthesized.
      * 
* * string text = 1; - * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + public Builder setTextBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); inputSourceCase_ = 1; inputSource_ = value; onChanged(); @@ -833,8 +769,6 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -843,7 +777,6 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) {
      * 
* * string ssml = 2; - * * @return Whether the ssml field is set. */ @java.lang.Override @@ -851,8 +784,6 @@ public boolean hasSsml() { return inputSourceCase_ == 2; } /** - * - * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -861,7 +792,6 @@ public boolean hasSsml() {
      * 
* * string ssml = 2; - * * @return The ssml. */ @java.lang.Override @@ -871,7 +801,8 @@ public java.lang.String getSsml() { ref = inputSource_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (inputSourceCase_ == 2) { inputSource_ = s; @@ -882,8 +813,6 @@ public java.lang.String getSsml() { } } /** - * - * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -892,18 +821,19 @@ public java.lang.String getSsml() {
      * 
* * string ssml = 2; - * * @return The bytes for ssml. */ @java.lang.Override - public com.google.protobuf.ByteString getSsmlBytes() { + public com.google.protobuf.ByteString + getSsmlBytes() { java.lang.Object ref = ""; if (inputSourceCase_ == 2) { ref = inputSource_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (inputSourceCase_ == 2) { inputSource_ = b; } @@ -913,8 +843,6 @@ public com.google.protobuf.ByteString getSsmlBytes() { } } /** - * - * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -923,22 +851,20 @@ public com.google.protobuf.ByteString getSsmlBytes() {
      * 
* * string ssml = 2; - * * @param value The ssml to set. * @return This builder for chaining. */ - public Builder setSsml(java.lang.String value) { + public Builder setSsml( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - inputSourceCase_ = 2; + throw new NullPointerException(); + } + inputSourceCase_ = 2; inputSource_ = value; onChanged(); return this; } /** - * - * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -947,7 +873,6 @@ public Builder setSsml(java.lang.String value) {
      * 
* * string ssml = 2; - * * @return This builder for chaining. */ public Builder clearSsml() { @@ -959,8 +884,6 @@ public Builder clearSsml() { return this; } /** - * - * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -969,23 +892,23 @@ public Builder clearSsml() {
      * 
* * string ssml = 2; - * * @param value The bytes for ssml to set. * @return This builder for chaining. */ - public Builder setSsmlBytes(com.google.protobuf.ByteString value) { + public Builder setSsmlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); inputSourceCase_ = 2; inputSource_ = 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); } @@ -995,12 +918,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.SynthesisInput) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.SynthesisInput) private static final com.google.cloud.texttospeech.v1beta1.SynthesisInput DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.SynthesisInput(); } @@ -1009,16 +932,16 @@ public static com.google.cloud.texttospeech.v1beta1.SynthesisInput getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SynthesisInput parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SynthesisInput(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SynthesisInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SynthesisInput(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,4 +956,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1beta1.SynthesisInput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java similarity index 71% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java index b8c202e5..cb497693 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java @@ -1,68 +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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; -public interface SynthesisInputOrBuilder - extends +public interface SynthesisInputOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.SynthesisInput) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The raw text to be synthesized.
    * 
* * string text = 1; - * * @return Whether the text field is set. */ boolean hasText(); /** - * - * *
    * The raw text to be synthesized.
    * 
* * string text = 1; - * * @return The text. */ java.lang.String getText(); /** - * - * *
    * The raw text to be synthesized.
    * 
* * string text = 1; - * * @return The bytes for text. */ - com.google.protobuf.ByteString getTextBytes(); + com.google.protobuf.ByteString + getTextBytes(); /** - * - * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -71,13 +45,10 @@ public interface SynthesisInputOrBuilder
    * 
* * string ssml = 2; - * * @return Whether the ssml field is set. */ boolean hasSsml(); /** - * - * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -86,13 +57,10 @@ public interface SynthesisInputOrBuilder
    * 
* * string ssml = 2; - * * @return The ssml. */ java.lang.String getSsml(); /** - * - * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -101,10 +69,10 @@ public interface SynthesisInputOrBuilder
    * 
* * string ssml = 2; - * * @return The bytes for ssml. */ - com.google.protobuf.ByteString getSsmlBytes(); + com.google.protobuf.ByteString + getSsmlBytes(); public com.google.cloud.texttospeech.v1beta1.SynthesisInput.InputSourceCase getInputSourceCase(); } diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java similarity index 61% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java index 47163cec..62668458 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java @@ -1,57 +1,40 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** - * - * *
  * The top-level message sent by the client for the `SynthesizeSpeech` method.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest} */ -public final class SynthesizeSpeechRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SynthesizeSpeechRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) SynthesizeSpeechRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SynthesizeSpeechRequest.newBuilder() to construct. private SynthesizeSpeechRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SynthesizeSpeechRequest() { enableTimePointing_ = 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 SynthesizeSpeechRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SynthesizeSpeechRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,95 +54,82 @@ private SynthesizeSpeechRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder subBuilder = null; - if (input_ != null) { - subBuilder = input_.toBuilder(); - } - input_ = - input.readMessage( - com.google.cloud.texttospeech.v1beta1.SynthesisInput.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(input_); - input_ = subBuilder.buildPartial(); - } + case 10: { + com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder subBuilder = null; + if (input_ != null) { + subBuilder = input_.toBuilder(); + } + input_ = input.readMessage(com.google.cloud.texttospeech.v1beta1.SynthesisInput.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(input_); + input_ = subBuilder.buildPartial(); + } - break; + break; + } + case 18: { + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder subBuilder = null; + if (voice_ != null) { + subBuilder = voice_.toBuilder(); + } + voice_ = input.readMessage(com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(voice_); + voice_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder subBuilder = null; - if (voice_ != null) { - subBuilder = voice_.toBuilder(); - } - voice_ = - input.readMessage( - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(voice_); - voice_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder subBuilder = null; + if (audioConfig_ != null) { + subBuilder = audioConfig_.toBuilder(); + } + audioConfig_ = input.readMessage(com.google.cloud.texttospeech.v1beta1.AudioConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audioConfig_); + audioConfig_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder subBuilder = null; - if (audioConfig_ != null) { - subBuilder = audioConfig_.toBuilder(); - } - audioConfig_ = - input.readMessage( - com.google.cloud.texttospeech.v1beta1.AudioConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(audioConfig_); - audioConfig_ = subBuilder.buildPartial(); - } - break; + break; + } + case 32: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + enableTimePointing_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 32: - { + enableTimePointing_.add(rawValue); + break; + } + case 34: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { enableTimePointing_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } enableTimePointing_.add(rawValue); - break; - } - case 34: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - enableTimePointing_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - enableTimePointing_.add(rawValue); - } - input.popLimit(oldLimit); - break; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + input.popLimit(oldLimit); + 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { enableTimePointing_ = java.util.Collections.unmodifiableList(enableTimePointing_); @@ -168,35 +138,29 @@ private SynthesizeSpeechRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.class, - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.Builder.class); + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.class, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.Builder.class); } /** - * - * *
    * The type of timepoint information that is returned in the response.
    * 
* * Protobuf enum {@code google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType} */ - public enum TimepointType implements com.google.protobuf.ProtocolMessageEnum { + public enum TimepointType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not specified. No timepoint information will be returned.
      * 
@@ -205,8 +169,6 @@ public enum TimepointType implements com.google.protobuf.ProtocolMessageEnum { */ TIMEPOINT_TYPE_UNSPECIFIED(0), /** - * - * *
      * Timepoint information of `<mark>` tags in SSML input will be returned.
      * 
@@ -218,8 +180,6 @@ public enum TimepointType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Not specified. No timepoint information will be returned.
      * 
@@ -228,8 +188,6 @@ public enum TimepointType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIMEPOINT_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Timepoint information of `<mark>` tags in SSML input will be returned.
      * 
@@ -238,6 +196,7 @@ public enum TimepointType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SSML_MARK_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -262,49 +221,48 @@ public static TimepointType valueOf(int value) { */ public static TimepointType forNumber(int value) { switch (value) { - case 0: - return TIMEPOINT_TYPE_UNSPECIFIED; - case 1: - return SSML_MARK; - default: - return null; + case 0: return TIMEPOINT_TYPE_UNSPECIFIED; + case 1: return SSML_MARK; + 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< + TimepointType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TimepointType findValueByNumber(int number) { + return TimepointType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TimepointType findValueByNumber(int number) { - return TimepointType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.getDescriptor().getEnumTypes().get(0); } private static final TimepointType[] VALUES = values(); - public static TimepointType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TimepointType 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; @@ -324,16 +282,11 @@ private TimepointType(int value) { public static final int INPUT_FIELD_NUMBER = 1; private com.google.cloud.texttospeech.v1beta1.SynthesisInput input_; /** - * - * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the input field is set. */ @java.lang.Override @@ -341,34 +294,23 @@ public boolean hasInput() { return input_ != null; } /** - * - * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The input. */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.SynthesisInput getInput() { - return input_ == null - ? com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance() - : input_; + return input_ == null ? com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance() : input_; } /** - * - * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder getInputOrBuilder() { @@ -378,16 +320,11 @@ public com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder getInputOrB public static final int VOICE_FIELD_NUMBER = 2; private com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice_; /** - * - * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the voice field is set. */ @java.lang.Override @@ -395,34 +332,23 @@ public boolean hasVoice() { return voice_ != null; } /** - * - * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The voice. */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams getVoice() { - return voice_ == null - ? com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.getDefaultInstance() - : voice_; + return voice_ == null ? com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.getDefaultInstance() : voice_; } /** - * - * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { @@ -432,16 +358,11 @@ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder getVo public static final int AUDIO_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.texttospeech.v1beta1.AudioConfig audioConfig_; /** - * - * *
    * Required. The configuration of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audioConfig field is set. */ @java.lang.Override @@ -449,34 +370,23 @@ public boolean hasAudioConfig() { return audioConfig_ != null; } /** - * - * *
    * Required. The configuration of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The audioConfig. */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.AudioConfig getAudioConfig() { - return audioConfig_ == null - ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() - : audioConfig_; + return audioConfig_ == null ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() : audioConfig_; } /** - * - * *
    * Required. The configuration of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfigOrBuilder() { @@ -486,56 +396,34 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfig public static final int ENABLE_TIME_POINTING_FIELD_NUMBER = 4; private java.util.List enableTimePointing_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType> - enableTimePointing_converter_ = + java.lang.Integer, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType> enableTimePointing_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType>() { - public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType - convert(java.lang.Integer from) { + java.lang.Integer, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType>() { + public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType result = - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType - .valueOf(from); - return result == null - ? com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType - .UNRECOGNIZED - : result; + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType result = com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType.valueOf(from); + return result == null ? com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType.UNRECOGNIZED : result; } }; /** - * - * *
    * Whether and what timepoints are returned in the response.
    * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @return A list containing the enableTimePointing. */ @java.lang.Override - public java.util.List - getEnableTimePointingList() { + public java.util.List getEnableTimePointingList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType>( - enableTimePointing_, enableTimePointing_converter_); + java.lang.Integer, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType>(enableTimePointing_, enableTimePointing_converter_); } /** - * - * *
    * Whether and what timepoints are returned in the response.
    * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @return The count of enableTimePointing. */ @java.lang.Override @@ -543,52 +431,37 @@ public int getEnableTimePointingCount() { return enableTimePointing_.size(); } /** - * - * *
    * Whether and what timepoints are returned in the response.
    * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @param index The index of the element to return. * @return The enableTimePointing at the given index. */ @java.lang.Override - public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType - getEnableTimePointing(int index) { + public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType getEnableTimePointing(int index) { return enableTimePointing_converter_.convert(enableTimePointing_.get(index)); } /** - * - * *
    * Whether and what timepoints are returned in the response.
    * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @return A list containing the enum numeric values on the wire for enableTimePointing. */ @java.lang.Override - public java.util.List getEnableTimePointingValueList() { + public java.util.List + getEnableTimePointingValueList() { return enableTimePointing_; } /** - * - * *
    * Whether and what timepoints are returned in the response.
    * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @param index The index of the value to return. * @return The enum numeric value on the wire of enableTimePointing at the given index. */ @@ -596,11 +469,9 @@ public java.util.List getEnableTimePointingValueList() { public int getEnableTimePointingValue(int index) { return enableTimePointing_.get(index); } - private int enableTimePointingMemoizedSerializedSize; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -612,7 +483,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (input_ != null) { output.writeMessage(1, getInput()); @@ -640,26 +512,28 @@ public int getSerializedSize() { size = 0; if (input_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInput()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInput()); } if (voice_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVoice()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getVoice()); } if (audioConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAudioConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAudioConfig()); } { int dataSize = 0; for (int i = 0; i < enableTimePointing_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(enableTimePointing_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(enableTimePointing_.get(i)); } size += dataSize; - if (!getEnableTimePointingList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - enableTimePointingMemoizedSerializedSize = dataSize; + if (!getEnableTimePointingList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }enableTimePointingMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -669,25 +543,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.texttospeech.v1beta1.SynthesizeSpeechRequest)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest other = - (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) obj; + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest other = (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) obj; if (hasInput() != other.hasInput()) return false; if (hasInput()) { - if (!getInput().equals(other.getInput())) return false; + if (!getInput() + .equals(other.getInput())) return false; } if (hasVoice() != other.hasVoice()) return false; if (hasVoice()) { - if (!getVoice().equals(other.getVoice())) return false; + if (!getVoice() + .equals(other.getVoice())) return false; } if (hasAudioConfig() != other.hasAudioConfig()) return false; if (hasAudioConfig()) { - if (!getAudioConfig().equals(other.getAudioConfig())) return false; + if (!getAudioConfig() + .equals(other.getAudioConfig())) return false; } if (!enableTimePointing_.equals(other.enableTimePointing_)) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -723,127 +599,117 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest prototype) { + public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 top-level message sent by the client for the `SynthesizeSpeech` method.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.class, - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.Builder.class); + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.class, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.Builder.class); } // Construct using com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.newBuilder() @@ -851,15 +717,16 @@ 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(); @@ -887,14 +754,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor; } @java.lang.Override - public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest - getDefaultInstanceForType() { + public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest getDefaultInstanceForType() { return com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.getDefaultInstance(); } @@ -909,8 +775,7 @@ public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest build() { @java.lang.Override public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest buildPartial() { - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest result = - new com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest(this); + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest result = new com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest(this); int from_bitField0_ = bitField0_; if (inputBuilder_ == null) { result.input_ = input_; @@ -940,39 +805,38 @@ public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) { - return mergeFrom((com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) other); + return mergeFrom((com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest)other); } else { super.mergeFrom(other); return this; @@ -980,9 +844,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest other) { - if (other - == com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.getDefaultInstance()) return this; if (other.hasInput()) { mergeInput(other.getInput()); } @@ -1021,9 +883,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1032,63 +892,43 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.texttospeech.v1beta1.SynthesisInput input_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.SynthesisInput, - com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder, - com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder> - inputBuilder_; + com.google.cloud.texttospeech.v1beta1.SynthesisInput, com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder, com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder> inputBuilder_; /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the input field is set. */ public boolean hasInput() { return inputBuilder_ != null || input_ != null; } /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The input. */ public com.google.cloud.texttospeech.v1beta1.SynthesisInput getInput() { if (inputBuilder_ == null) { - return input_ == null - ? com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance() - : input_; + return input_ == null ? com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance() : input_; } else { return inputBuilder_.getMessage(); } } /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInput(com.google.cloud.texttospeech.v1beta1.SynthesisInput value) { if (inputBuilder_ == null) { @@ -1104,15 +944,11 @@ public Builder setInput(com.google.cloud.texttospeech.v1beta1.SynthesisInput val return this; } /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInput( com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder builderForValue) { @@ -1126,23 +962,17 @@ public Builder setInput( return this; } /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInput(com.google.cloud.texttospeech.v1beta1.SynthesisInput value) { if (inputBuilder_ == null) { if (input_ != null) { input_ = - com.google.cloud.texttospeech.v1beta1.SynthesisInput.newBuilder(input_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.texttospeech.v1beta1.SynthesisInput.newBuilder(input_).mergeFrom(value).buildPartial(); } else { input_ = value; } @@ -1154,15 +984,11 @@ public Builder mergeInput(com.google.cloud.texttospeech.v1beta1.SynthesisInput v return this; } /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInput() { if (inputBuilder_ == null) { @@ -1176,64 +1002,48 @@ public Builder clearInput() { return this; } /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder getInputBuilder() { - + onChanged(); return getInputFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { return inputBuilder_.getMessageOrBuilder(); } else { - return input_ == null - ? com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance() - : input_; + return input_ == null ? + com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance() : input_; } } /** - * - * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.SynthesisInput, - com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder, - com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder> + com.google.cloud.texttospeech.v1beta1.SynthesisInput, com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder, com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder> getInputFieldBuilder() { if (inputBuilder_ == null) { - inputBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.SynthesisInput, - com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder, - com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder>( - getInput(), getParentForChildren(), isClean()); + inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.SynthesisInput, com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder, com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder>( + getInput(), + getParentForChildren(), + isClean()); input_ = null; } return inputBuilder_; @@ -1241,58 +1051,39 @@ public com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder getInputOrB private com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams, - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder, - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder> - voiceBuilder_; + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams, com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder, com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder> voiceBuilder_; /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the voice field is set. */ public boolean hasVoice() { return voiceBuilder_ != null || voice_ != null; } /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The voice. */ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams getVoice() { if (voiceBuilder_ == null) { - return voice_ == null - ? com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.getDefaultInstance() - : voice_; + return voice_ == null ? com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.getDefaultInstance() : voice_; } else { return voiceBuilder_.getMessage(); } } /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setVoice(com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams value) { if (voiceBuilder_ == null) { @@ -1308,15 +1099,11 @@ public Builder setVoice(com.google.cloud.texttospeech.v1beta1.VoiceSelectionPara return this; } /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setVoice( com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder builderForValue) { @@ -1330,23 +1117,17 @@ public Builder setVoice( return this; } /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeVoice(com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams value) { if (voiceBuilder_ == null) { if (voice_ != null) { voice_ = - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.newBuilder(voice_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.newBuilder(voice_).mergeFrom(value).buildPartial(); } else { voice_ = value; } @@ -1358,15 +1139,11 @@ public Builder mergeVoice(com.google.cloud.texttospeech.v1beta1.VoiceSelectionPa return this; } /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearVoice() { if (voiceBuilder_ == null) { @@ -1380,64 +1157,48 @@ public Builder clearVoice() { return this; } /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder getVoiceBuilder() { - + onChanged(); return getVoiceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { if (voiceBuilder_ != null) { return voiceBuilder_.getMessageOrBuilder(); } else { - return voice_ == null - ? com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.getDefaultInstance() - : voice_; + return voice_ == null ? + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.getDefaultInstance() : voice_; } } /** - * - * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams, - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder, - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder> + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams, com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder, com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder> getVoiceFieldBuilder() { if (voiceBuilder_ == null) { - voiceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams, - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder, - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder>( - getVoice(), getParentForChildren(), isClean()); + voiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams, com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder, com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder>( + getVoice(), + getParentForChildren(), + isClean()); voice_ = null; } return voiceBuilder_; @@ -1445,58 +1206,39 @@ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder getVo private com.google.cloud.texttospeech.v1beta1.AudioConfig audioConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.AudioConfig, - com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, - com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder> - audioConfigBuilder_; + com.google.cloud.texttospeech.v1beta1.AudioConfig, com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder> audioConfigBuilder_; /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audioConfig field is set. */ public boolean hasAudioConfig() { return audioConfigBuilder_ != null || audioConfig_ != null; } /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The audioConfig. */ public com.google.cloud.texttospeech.v1beta1.AudioConfig getAudioConfig() { if (audioConfigBuilder_ == null) { - return audioConfig_ == null - ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() - : audioConfig_; + return audioConfig_ == null ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() : audioConfig_; } else { return audioConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAudioConfig(com.google.cloud.texttospeech.v1beta1.AudioConfig value) { if (audioConfigBuilder_ == null) { @@ -1512,15 +1254,11 @@ public Builder setAudioConfig(com.google.cloud.texttospeech.v1beta1.AudioConfig return this; } /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAudioConfig( com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder builderForValue) { @@ -1534,23 +1272,17 @@ public Builder setAudioConfig( return this; } /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAudioConfig(com.google.cloud.texttospeech.v1beta1.AudioConfig value) { if (audioConfigBuilder_ == null) { if (audioConfig_ != null) { audioConfig_ = - com.google.cloud.texttospeech.v1beta1.AudioConfig.newBuilder(audioConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.texttospeech.v1beta1.AudioConfig.newBuilder(audioConfig_).mergeFrom(value).buildPartial(); } else { audioConfig_ = value; } @@ -1562,15 +1294,11 @@ public Builder mergeAudioConfig(com.google.cloud.texttospeech.v1beta1.AudioConfi return this; } /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAudioConfig() { if (audioConfigBuilder_ == null) { @@ -1584,72 +1312,55 @@ public Builder clearAudioConfig() { return this; } /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder getAudioConfigBuilder() { - + onChanged(); return getAudioConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfigOrBuilder() { if (audioConfigBuilder_ != null) { return audioConfigBuilder_.getMessageOrBuilder(); } else { - return audioConfig_ == null - ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() - : audioConfig_; + return audioConfig_ == null ? + com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() : audioConfig_; } } /** - * - * *
      * Required. The configuration of the synthesized audio.
      * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.AudioConfig, - com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, - com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder> + com.google.cloud.texttospeech.v1beta1.AudioConfig, com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder> getAudioConfigFieldBuilder() { if (audioConfigBuilder_ == null) { - audioConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.AudioConfig, - com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, - com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder>( - getAudioConfig(), getParentForChildren(), isClean()); + audioConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.AudioConfig, com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder>( + getAudioConfig(), + getParentForChildren(), + isClean()); audioConfig_ = null; } return audioConfigBuilder_; } private java.util.List enableTimePointing_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEnableTimePointingIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { enableTimePointing_ = new java.util.ArrayList(enableTimePointing_); @@ -1657,78 +1368,52 @@ private void ensureEnableTimePointingIsMutable() { } } /** - * - * *
      * Whether and what timepoints are returned in the response.
      * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @return A list containing the enableTimePointing. */ - public java.util.List< - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType> - getEnableTimePointingList() { + public java.util.List getEnableTimePointingList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType>( - enableTimePointing_, enableTimePointing_converter_); + java.lang.Integer, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType>(enableTimePointing_, enableTimePointing_converter_); } /** - * - * *
      * Whether and what timepoints are returned in the response.
      * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @return The count of enableTimePointing. */ public int getEnableTimePointingCount() { return enableTimePointing_.size(); } /** - * - * *
      * Whether and what timepoints are returned in the response.
      * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @param index The index of the element to return. * @return The enableTimePointing at the given index. */ - public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType - getEnableTimePointing(int index) { + public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType getEnableTimePointing(int index) { return enableTimePointing_converter_.convert(enableTimePointing_.get(index)); } /** - * - * *
      * Whether and what timepoints are returned in the response.
      * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @param index The index to set the value at. * @param value The enableTimePointing to set. * @return This builder for chaining. */ public Builder setEnableTimePointing( - int index, - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType value) { + int index, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType value) { if (value == null) { throw new NullPointerException(); } @@ -1738,21 +1423,15 @@ public Builder setEnableTimePointing( return this; } /** - * - * *
      * Whether and what timepoints are returned in the response.
      * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @param value The enableTimePointing to add. * @return This builder for chaining. */ - public Builder addEnableTimePointing( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType value) { + public Builder addEnableTimePointing(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType value) { if (value == null) { throw new NullPointerException(); } @@ -1762,43 +1441,29 @@ public Builder addEnableTimePointing( return this; } /** - * - * *
      * Whether and what timepoints are returned in the response.
      * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @param values The enableTimePointing to add. * @return This builder for chaining. */ public Builder addAllEnableTimePointing( - java.lang.Iterable< - ? extends - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType> - values) { + java.lang.Iterable values) { ensureEnableTimePointingIsMutable(); - for (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType value : - values) { + for (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType value : values) { enableTimePointing_.add(value.getNumber()); } onChanged(); return this; } /** - * - * *
      * Whether and what timepoints are returned in the response.
      * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @return This builder for chaining. */ public Builder clearEnableTimePointing() { @@ -1808,32 +1473,23 @@ public Builder clearEnableTimePointing() { return this; } /** - * - * *
      * Whether and what timepoints are returned in the response.
      * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @return A list containing the enum numeric values on the wire for enableTimePointing. */ - public java.util.List getEnableTimePointingValueList() { + public java.util.List + getEnableTimePointingValueList() { return java.util.Collections.unmodifiableList(enableTimePointing_); } /** - * - * *
      * Whether and what timepoints are returned in the response.
      * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @param index The index of the value to return. * @return The enum numeric value on the wire of enableTimePointing at the given index. */ @@ -1841,37 +1497,28 @@ public int getEnableTimePointingValue(int index) { return enableTimePointing_.get(index); } /** - * - * *
      * Whether and what timepoints are returned in the response.
      * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @param index The index of the value to return. * @return The enum numeric value on the wire of enableTimePointing at the given index. * @return This builder for chaining. */ - public Builder setEnableTimePointingValue(int index, int value) { + public Builder setEnableTimePointingValue( + int index, int value) { ensureEnableTimePointingIsMutable(); enableTimePointing_.set(index, value); onChanged(); return this; } /** - * - * *
      * Whether and what timepoints are returned in the response.
      * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @param value The enum numeric value on the wire for enableTimePointing to add. * @return This builder for chaining. */ @@ -1882,20 +1529,16 @@ public Builder addEnableTimePointingValue(int value) { return this; } /** - * - * *
      * Whether and what timepoints are returned in the response.
      * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @param values The enum numeric values on the wire for enableTimePointing to add. * @return This builder for chaining. */ - public Builder addAllEnableTimePointingValue(java.lang.Iterable values) { + public Builder addAllEnableTimePointingValue( + java.lang.Iterable values) { ensureEnableTimePointingIsMutable(); for (int value : values) { enableTimePointing_.add(value); @@ -1903,9 +1546,9 @@ public Builder addAllEnableTimePointingValue(java.lang.Iterable PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SynthesizeSpeechRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SynthesizeSpeechRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SynthesizeSpeechRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SynthesizeSpeechRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1954,4 +1596,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java similarity index 51% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java index 0b7fd937..3715c74d 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java @@ -1,221 +1,137 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; -public interface SynthesizeSpeechRequestOrBuilder - extends +public interface SynthesizeSpeechRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the input field is set. */ boolean hasInput(); /** - * - * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The input. */ com.google.cloud.texttospeech.v1beta1.SynthesisInput getInput(); /** - * - * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder getInputOrBuilder(); /** - * - * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the voice field is set. */ boolean hasVoice(); /** - * - * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The voice. */ com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams getVoice(); /** - * - * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder(); /** - * - * *
    * Required. The configuration of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audioConfig field is set. */ boolean hasAudioConfig(); /** - * - * *
    * Required. The configuration of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The audioConfig. */ com.google.cloud.texttospeech.v1beta1.AudioConfig getAudioConfig(); /** - * - * *
    * Required. The configuration of the synthesized audio.
    * 
* - * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfigOrBuilder(); /** - * - * *
    * Whether and what timepoints are returned in the response.
    * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @return A list containing the enableTimePointing. */ - java.util.List - getEnableTimePointingList(); + java.util.List getEnableTimePointingList(); /** - * - * *
    * Whether and what timepoints are returned in the response.
    * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @return The count of enableTimePointing. */ int getEnableTimePointingCount(); /** - * - * *
    * Whether and what timepoints are returned in the response.
    * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @param index The index of the element to return. * @return The enableTimePointing at the given index. */ - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType getEnableTimePointing( - int index); + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType getEnableTimePointing(int index); /** - * - * *
    * Whether and what timepoints are returned in the response.
    * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @return A list containing the enum numeric values on the wire for enableTimePointing. */ - java.util.List getEnableTimePointingValueList(); + java.util.List + getEnableTimePointingValueList(); /** - * - * *
    * Whether and what timepoints are returned in the response.
    * 
* - * - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; - * - * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; * @param index The index of the value to return. * @return The enum numeric value on the wire of enableTimePointing at the given index. */ diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java similarity index 75% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java index 53b971b9..4981c778 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java @@ -1,42 +1,24 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** - * - * *
  * The message returned to the client by the `SynthesizeSpeech` method.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse} */ -public final class SynthesizeSpeechResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SynthesizeSpeechResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) SynthesizeSpeechResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SynthesizeSpeechResponse.newBuilder() to construct. private SynthesizeSpeechResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SynthesizeSpeechResponse() { audioContent_ = com.google.protobuf.ByteString.EMPTY; timepoints_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private SynthesizeSpeechResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SynthesizeSpeechResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SynthesizeSpeechResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,53 +55,47 @@ private SynthesizeSpeechResponse( case 0: done = true; break; - case 10: - { - audioContent_ = input.readBytes(); - break; + case 10: { + + audioContent_ = input.readBytes(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + timepoints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + timepoints_.add( + input.readMessage(com.google.cloud.texttospeech.v1beta1.Timepoint.parser(), extensionRegistry)); + break; + } + case 34: { + com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder subBuilder = null; + if (audioConfig_ != null) { + subBuilder = audioConfig_.toBuilder(); } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - timepoints_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - timepoints_.add( - input.readMessage( - com.google.cloud.texttospeech.v1beta1.Timepoint.parser(), extensionRegistry)); - break; + audioConfig_ = input.readMessage(com.google.cloud.texttospeech.v1beta1.AudioConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audioConfig_); + audioConfig_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder subBuilder = null; - if (audioConfig_ != null) { - subBuilder = audioConfig_.toBuilder(); - } - audioConfig_ = - input.readMessage( - com.google.cloud.texttospeech.v1beta1.AudioConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(audioConfig_); - audioConfig_ = subBuilder.buildPartial(); - } - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { timepoints_ = java.util.Collections.unmodifiableList(timepoints_); @@ -127,27 +104,22 @@ private SynthesizeSpeechResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.class, - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.Builder.class); + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.class, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.Builder.class); } public static final int AUDIO_CONTENT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString audioContent_; /** - * - * *
    * The audio data bytes encoded as specified in the request, including the
    * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -157,7 +129,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bytes audio_content = 1; - * * @return The audioContent. */ @java.lang.Override @@ -168,8 +139,6 @@ public com.google.protobuf.ByteString getAudioContent() { public static final int TIMEPOINTS_FIELD_NUMBER = 2; private java.util.List timepoints_; /** - * - * *
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -182,8 +151,6 @@ public java.util.List getTimepo
     return timepoints_;
   }
   /**
-   *
-   *
    * 
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -192,13 +159,11 @@ public java.util.List getTimepo
    * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getTimepointsOrBuilderList() {
     return timepoints_;
   }
   /**
-   *
-   *
    * 
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -211,8 +176,6 @@ public int getTimepointsCount() {
     return timepoints_.size();
   }
   /**
-   *
-   *
    * 
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -225,8 +188,6 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint getTimepoints(int index)
     return timepoints_.get(index);
   }
   /**
-   *
-   *
    * 
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -243,14 +204,11 @@ public com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder getTimepointsOrB
   public static final int AUDIO_CONFIG_FIELD_NUMBER = 4;
   private com.google.cloud.texttospeech.v1beta1.AudioConfig audioConfig_;
   /**
-   *
-   *
    * 
    * The audio metadata of `audio_content`.
    * 
* * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; - * * @return Whether the audioConfig field is set. */ @java.lang.Override @@ -258,25 +216,18 @@ public boolean hasAudioConfig() { return audioConfig_ != null; } /** - * - * *
    * The audio metadata of `audio_content`.
    * 
* * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; - * * @return The audioConfig. */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.AudioConfig getAudioConfig() { - return audioConfig_ == null - ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() - : audioConfig_; + return audioConfig_ == null ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() : audioConfig_; } /** - * - * *
    * The audio metadata of `audio_content`.
    * 
@@ -289,7 +240,6 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfig } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -301,7 +251,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!audioContent_.isEmpty()) { output.writeBytes(1, audioContent_); } @@ -321,13 +272,16 @@ public int getSerializedSize() { size = 0; if (!audioContent_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, audioContent_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, audioContent_); } for (int i = 0; i < timepoints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, timepoints_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, timepoints_.get(i)); } if (audioConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAudioConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAudioConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -337,19 +291,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.texttospeech.v1beta1.SynthesizeSpeechResponse)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse other = - (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) obj; + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse other = (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) obj; - if (!getAudioContent().equals(other.getAudioContent())) return false; - if (!getTimepointsList().equals(other.getTimepointsList())) return false; + if (!getAudioContent() + .equals(other.getAudioContent())) return false; + if (!getTimepointsList() + .equals(other.getTimepointsList())) return false; if (hasAudioConfig() != other.hasAudioConfig()) return false; if (hasAudioConfig()) { - if (!getAudioConfig().equals(other.getAudioConfig())) return false; + if (!getAudioConfig() + .equals(other.getAudioConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -378,127 +334,117 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse prototype) { + public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message returned to the client by the `SynthesizeSpeech` method.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.class, - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.Builder.class); + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.class, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.Builder.class); } // Construct using com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.newBuilder() @@ -506,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) { getTimepointsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -538,14 +484,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor; } @java.lang.Override - public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse - getDefaultInstanceForType() { + public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse getDefaultInstanceForType() { return com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.getDefaultInstance(); } @@ -560,8 +505,7 @@ public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse build() { @java.lang.Override public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse buildPartial() { - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse result = - new com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse(this); + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse result = new com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse(this); int from_bitField0_ = bitField0_; result.audioContent_ = audioContent_; if (timepointsBuilder_ == null) { @@ -586,39 +530,38 @@ public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse 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.texttospeech.v1beta1.SynthesizeSpeechResponse) { - return mergeFrom((com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) other); + return mergeFrom((com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse)other); } else { super.mergeFrom(other); return this; @@ -626,9 +569,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse other) { - if (other - == com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.getDefaultInstance()) return this; if (other.getAudioContent() != com.google.protobuf.ByteString.EMPTY) { setAudioContent(other.getAudioContent()); } @@ -650,10 +591,9 @@ public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechR timepointsBuilder_ = null; timepoints_ = other.timepoints_; bitField0_ = (bitField0_ & ~0x00000001); - timepointsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTimepointsFieldBuilder() - : null; + timepointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTimepointsFieldBuilder() : null; } else { timepointsBuilder_.addAllMessages(other.timepoints_); } @@ -681,9 +621,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -692,13 +630,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.ByteString audioContent_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The audio data bytes encoded as specified in the request, including the
      * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -708,7 +643,6 @@ public Builder mergeFrom(
      * 
* * bytes audio_content = 1; - * * @return The audioContent. */ @java.lang.Override @@ -716,8 +650,6 @@ public com.google.protobuf.ByteString getAudioContent() { return audioContent_; } /** - * - * *
      * The audio data bytes encoded as specified in the request, including the
      * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -727,22 +659,19 @@ public com.google.protobuf.ByteString getAudioContent() {
      * 
* * bytes audio_content = 1; - * * @param value The audioContent to set. * @return This builder for chaining. */ public Builder setAudioContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audioContent_ = value; onChanged(); return this; } /** - * - * *
      * The audio data bytes encoded as specified in the request, including the
      * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -752,36 +681,28 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 1; - * * @return This builder for chaining. */ public Builder clearAudioContent() { - + audioContent_ = getDefaultInstance().getAudioContent(); onChanged(); return this; } private java.util.List timepoints_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTimepointsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - timepoints_ = - new java.util.ArrayList(timepoints_); + timepoints_ = new java.util.ArrayList(timepoints_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.Timepoint, - com.google.cloud.texttospeech.v1beta1.Timepoint.Builder, - com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder> - timepointsBuilder_; + com.google.cloud.texttospeech.v1beta1.Timepoint, com.google.cloud.texttospeech.v1beta1.Timepoint.Builder, com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder> timepointsBuilder_; /** - * - * *
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -797,8 +718,6 @@ public java.util.List getTimepo
       }
     }
     /**
-     *
-     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -814,8 +733,6 @@ public int getTimepointsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -831,8 +748,6 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint getTimepoints(int index)
       }
     }
     /**
-     *
-     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -840,7 +755,8 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint getTimepoints(int index)
      *
      * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      */
-    public Builder setTimepoints(int index, com.google.cloud.texttospeech.v1beta1.Timepoint value) {
+    public Builder setTimepoints(
+        int index, com.google.cloud.texttospeech.v1beta1.Timepoint value) {
       if (timepointsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -854,8 +770,6 @@ public Builder setTimepoints(int index, com.google.cloud.texttospeech.v1beta1.Ti
       return this;
     }
     /**
-     *
-     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -875,8 +789,6 @@ public Builder setTimepoints(
       return this;
     }
     /**
-     *
-     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -898,8 +810,6 @@ public Builder addTimepoints(com.google.cloud.texttospeech.v1beta1.Timepoint val
       return this;
     }
     /**
-     *
-     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -907,7 +817,8 @@ public Builder addTimepoints(com.google.cloud.texttospeech.v1beta1.Timepoint val
      *
      * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      */
-    public Builder addTimepoints(int index, com.google.cloud.texttospeech.v1beta1.Timepoint value) {
+    public Builder addTimepoints(
+        int index, com.google.cloud.texttospeech.v1beta1.Timepoint value) {
       if (timepointsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -921,8 +832,6 @@ public Builder addTimepoints(int index, com.google.cloud.texttospeech.v1beta1.Ti
       return this;
     }
     /**
-     *
-     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -942,8 +851,6 @@ public Builder addTimepoints(
       return this;
     }
     /**
-     *
-     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -963,8 +870,6 @@ public Builder addTimepoints(
       return this;
     }
     /**
-     *
-     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -976,7 +881,8 @@ public Builder addAllTimepoints(
         java.lang.Iterable values) {
       if (timepointsBuilder_ == null) {
         ensureTimepointsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timepoints_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, timepoints_);
         onChanged();
       } else {
         timepointsBuilder_.addAllMessages(values);
@@ -984,8 +890,6 @@ public Builder addAllTimepoints(
       return this;
     }
     /**
-     *
-     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -1004,8 +908,6 @@ public Builder clearTimepoints() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -1024,8 +926,6 @@ public Builder removeTimepoints(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -1033,12 +933,11 @@ public Builder removeTimepoints(int index) {
      *
      * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      */
-    public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder getTimepointsBuilder(int index) {
+    public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder getTimepointsBuilder(
+        int index) {
       return getTimepointsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -1049,14 +948,11 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder getTimepointsBuil
     public com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder getTimepointsOrBuilder(
         int index) {
       if (timepointsBuilder_ == null) {
-        return timepoints_.get(index);
-      } else {
+        return timepoints_.get(index);  } else {
         return timepointsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -1064,8 +960,8 @@ public com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder getTimepointsOrB
      *
      * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      */
-    public java.util.List
-        getTimepointsOrBuilderList() {
+    public java.util.List 
+         getTimepointsOrBuilderList() {
       if (timepointsBuilder_ != null) {
         return timepointsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1073,8 +969,6 @@ public com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder getTimepointsOrB
       }
     }
     /**
-     *
-     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -1083,12 +977,10 @@ public com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder getTimepointsOrB
      * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      */
     public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder addTimepointsBuilder() {
-      return getTimepointsFieldBuilder()
-          .addBuilder(com.google.cloud.texttospeech.v1beta1.Timepoint.getDefaultInstance());
+      return getTimepointsFieldBuilder().addBuilder(
+          com.google.cloud.texttospeech.v1beta1.Timepoint.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -1096,13 +988,12 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder addTimepointsBuil
      *
      * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      */
-    public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder addTimepointsBuilder(int index) {
-      return getTimepointsFieldBuilder()
-          .addBuilder(index, com.google.cloud.texttospeech.v1beta1.Timepoint.getDefaultInstance());
+    public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder addTimepointsBuilder(
+        int index) {
+      return getTimepointsFieldBuilder().addBuilder(
+          index, com.google.cloud.texttospeech.v1beta1.Timepoint.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -1110,23 +1001,20 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder addTimepointsBuil
      *
      * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      */
-    public java.util.List
-        getTimepointsBuilderList() {
+    public java.util.List 
+         getTimepointsBuilderList() {
       return getTimepointsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.texttospeech.v1beta1.Timepoint,
-            com.google.cloud.texttospeech.v1beta1.Timepoint.Builder,
-            com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder>
+        com.google.cloud.texttospeech.v1beta1.Timepoint, com.google.cloud.texttospeech.v1beta1.Timepoint.Builder, com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder> 
         getTimepointsFieldBuilder() {
       if (timepointsBuilder_ == null) {
-        timepointsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.texttospeech.v1beta1.Timepoint,
-                com.google.cloud.texttospeech.v1beta1.Timepoint.Builder,
-                com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder>(
-                timepoints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        timepointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.texttospeech.v1beta1.Timepoint, com.google.cloud.texttospeech.v1beta1.Timepoint.Builder, com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder>(
+                timepoints_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         timepoints_ = null;
       }
       return timepointsBuilder_;
@@ -1134,47 +1022,34 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder addTimepointsBuil
 
     private com.google.cloud.texttospeech.v1beta1.AudioConfig audioConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.texttospeech.v1beta1.AudioConfig,
-            com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder,
-            com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder>
-        audioConfigBuilder_;
+        com.google.cloud.texttospeech.v1beta1.AudioConfig, com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder> audioConfigBuilder_;
     /**
-     *
-     *
      * 
      * The audio metadata of `audio_content`.
      * 
* * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; - * * @return Whether the audioConfig field is set. */ public boolean hasAudioConfig() { return audioConfigBuilder_ != null || audioConfig_ != null; } /** - * - * *
      * The audio metadata of `audio_content`.
      * 
* * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; - * * @return The audioConfig. */ public com.google.cloud.texttospeech.v1beta1.AudioConfig getAudioConfig() { if (audioConfigBuilder_ == null) { - return audioConfig_ == null - ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() - : audioConfig_; + return audioConfig_ == null ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() : audioConfig_; } else { return audioConfigBuilder_.getMessage(); } } /** - * - * *
      * The audio metadata of `audio_content`.
      * 
@@ -1195,8 +1070,6 @@ public Builder setAudioConfig(com.google.cloud.texttospeech.v1beta1.AudioConfig return this; } /** - * - * *
      * The audio metadata of `audio_content`.
      * 
@@ -1215,8 +1088,6 @@ public Builder setAudioConfig( return this; } /** - * - * *
      * The audio metadata of `audio_content`.
      * 
@@ -1227,9 +1098,7 @@ public Builder mergeAudioConfig(com.google.cloud.texttospeech.v1beta1.AudioConfi if (audioConfigBuilder_ == null) { if (audioConfig_ != null) { audioConfig_ = - com.google.cloud.texttospeech.v1beta1.AudioConfig.newBuilder(audioConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.texttospeech.v1beta1.AudioConfig.newBuilder(audioConfig_).mergeFrom(value).buildPartial(); } else { audioConfig_ = value; } @@ -1241,8 +1110,6 @@ public Builder mergeAudioConfig(com.google.cloud.texttospeech.v1beta1.AudioConfi return this; } /** - * - * *
      * The audio metadata of `audio_content`.
      * 
@@ -1261,8 +1128,6 @@ public Builder clearAudioConfig() { return this; } /** - * - * *
      * The audio metadata of `audio_content`.
      * 
@@ -1270,13 +1135,11 @@ public Builder clearAudioConfig() { * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; */ public com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder getAudioConfigBuilder() { - + onChanged(); return getAudioConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The audio metadata of `audio_content`.
      * 
@@ -1287,14 +1150,11 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfig if (audioConfigBuilder_ != null) { return audioConfigBuilder_.getMessageOrBuilder(); } else { - return audioConfig_ == null - ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() - : audioConfig_; + return audioConfig_ == null ? + com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() : audioConfig_; } } /** - * - * *
      * The audio metadata of `audio_content`.
      * 
@@ -1302,24 +1162,21 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfig * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.AudioConfig, - com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, - com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder> + com.google.cloud.texttospeech.v1beta1.AudioConfig, com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder> getAudioConfigFieldBuilder() { if (audioConfigBuilder_ == null) { - audioConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.AudioConfig, - com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, - com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder>( - getAudioConfig(), getParentForChildren(), isClean()); + audioConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.AudioConfig, com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder>( + getAudioConfig(), + getParentForChildren(), + isClean()); audioConfig_ = null; } return audioConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1329,32 +1186,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) - private static final com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse(); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse - getDefaultInstance() { + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SynthesizeSpeechResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SynthesizeSpeechResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SynthesizeSpeechResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SynthesizeSpeechResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1366,8 +1221,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse - getDefaultInstanceForType() { + public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java similarity index 80% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java index 56e9988a..35482f50 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; -public interface SynthesizeSpeechResponseOrBuilder - extends +public interface SynthesizeSpeechResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The audio data bytes encoded as specified in the request, including the
    * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -35,14 +17,11 @@ public interface SynthesizeSpeechResponseOrBuilder
    * 
* * bytes audio_content = 1; - * * @return The audioContent. */ com.google.protobuf.ByteString getAudioContent(); /** - * - * *
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -50,10 +29,9 @@ public interface SynthesizeSpeechResponseOrBuilder
    *
    * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    */
-  java.util.List getTimepointsList();
+  java.util.List 
+      getTimepointsList();
   /**
-   *
-   *
    * 
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -63,8 +41,6 @@ public interface SynthesizeSpeechResponseOrBuilder
    */
   com.google.cloud.texttospeech.v1beta1.Timepoint getTimepoints(int index);
   /**
-   *
-   *
    * 
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -74,8 +50,6 @@ public interface SynthesizeSpeechResponseOrBuilder
    */
   int getTimepointsCount();
   /**
-   *
-   *
    * 
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -83,11 +57,9 @@ public interface SynthesizeSpeechResponseOrBuilder
    *
    * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    */
-  java.util.List
+  java.util.List 
       getTimepointsOrBuilderList();
   /**
-   *
-   *
    * 
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -95,35 +67,28 @@ public interface SynthesizeSpeechResponseOrBuilder
    *
    * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    */
-  com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder getTimepointsOrBuilder(int index);
+  com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder getTimepointsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The audio metadata of `audio_content`.
    * 
* * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; - * * @return Whether the audioConfig field is set. */ boolean hasAudioConfig(); /** - * - * *
    * The audio metadata of `audio_content`.
    * 
* * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; - * * @return The audioConfig. */ com.google.cloud.texttospeech.v1beta1.AudioConfig getAudioConfig(); /** - * - * *
    * The audio metadata of `audio_content`.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java new file mode 100644 index 00000000..bfa2fb2c --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java @@ -0,0 +1,237 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/texttospeech/v1beta1/cloud_tts.proto + +package com.google.cloud.texttospeech.v1beta1; + +public final class TextToSpeechProto { + private TextToSpeechProto() {} + 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_texttospeech_v1beta1_ListVoicesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_Voice_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_Timepoint_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/texttospeech/v1beta1/clou" + + "d_tts.proto\022!google.cloud.texttospeech.v" + + "1beta1\032\034google/api/annotations.proto\032\027go" + + "ogle/api/client.proto\032\037google/api/field_" + + "behavior.proto\032\031google/api/resource.prot" + + "o\"/\n\021ListVoicesRequest\022\032\n\rlanguage_code\030" + + "\001 \001(\tB\003\340A\001\"N\n\022ListVoicesResponse\0228\n\006voic" + + "es\030\001 \003(\0132(.google.cloud.texttospeech.v1b" + + "eta1.Voice\"\231\001\n\005Voice\022\026\n\016language_codes\030\001" + + " \003(\t\022\014\n\004name\030\002 \001(\t\022G\n\013ssml_gender\030\003 \001(\0162" + + "2.google.cloud.texttospeech.v1beta1.Ssml" + + "VoiceGender\022!\n\031natural_sample_rate_hertz" + + "\030\004 \001(\005\"\240\003\n\027SynthesizeSpeechRequest\022E\n\005in" + + "put\030\001 \001(\01321.google.cloud.texttospeech.v1" + + "beta1.SynthesisInputB\003\340A\002\022K\n\005voice\030\002 \001(\013" + + "27.google.cloud.texttospeech.v1beta1.Voi" + + "ceSelectionParamsB\003\340A\002\022I\n\014audio_config\030\003" + + " \001(\0132..google.cloud.texttospeech.v1beta1" + + ".AudioConfigB\003\340A\002\022f\n\024enable_time_pointin" + + "g\030\004 \003(\0162H.google.cloud.texttospeech.v1be" + + "ta1.SynthesizeSpeechRequest.TimepointTyp" + + "e\">\n\rTimepointType\022\036\n\032TIMEPOINT_TYPE_UNS" + + "PECIFIED\020\000\022\r\n\tSSML_MARK\020\001\"@\n\016SynthesisIn" + + "put\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000B\016\n\014i" + + "nput_source\"\325\001\n\024VoiceSelectionParams\022\032\n\r" + + "language_code\030\001 \001(\tB\003\340A\002\022\014\n\004name\030\002 \001(\t\022G" + + "\n\013ssml_gender\030\003 \001(\01622.google.cloud.textt" + + "ospeech.v1beta1.SsmlVoiceGender\022J\n\014custo" + + "m_voice\030\004 \001(\01324.google.cloud.texttospeec" + + "h.v1beta1.CustomVoiceParams\"\366\001\n\013AudioCon" + + "fig\022M\n\016audio_encoding\030\001 \001(\01620.google.clo" + + "ud.texttospeech.v1beta1.AudioEncodingB\003\340" + + "A\002\022\035\n\rspeaking_rate\030\002 \001(\001B\006\340A\004\340A\001\022\025\n\005pit" + + "ch\030\003 \001(\001B\006\340A\004\340A\001\022\036\n\016volume_gain_db\030\004 \001(\001" + + "B\006\340A\004\340A\001\022\036\n\021sample_rate_hertz\030\005 \001(\005B\003\340A\001" + + "\022\"\n\022effects_profile_id\030\006 \003(\tB\006\340A\004\340A\001\"\364\001\n" + + "\021CustomVoiceParams\0222\n\005model\030\001 \001(\tB#\340A\002\372A" + + "\035\n\033automl.googleapis.com/Model\022_\n\016report" + + "ed_usage\030\003 \001(\0162B.google.cloud.texttospee" + + "ch.v1beta1.CustomVoiceParams.ReportedUsa" + + "geB\003\340A\001\"J\n\rReportedUsage\022\036\n\032REPORTED_USA" + + "GE_UNSPECIFIED\020\000\022\014\n\010REALTIME\020\001\022\013\n\007OFFLIN" + + "E\020\002\"\271\001\n\030SynthesizeSpeechResponse\022\025\n\raudi" + + "o_content\030\001 \001(\014\022@\n\ntimepoints\030\002 \003(\0132,.go" + + "ogle.cloud.texttospeech.v1beta1.Timepoin" + + "t\022D\n\014audio_config\030\004 \001(\0132..google.cloud.t" + + "exttospeech.v1beta1.AudioConfig\"4\n\tTimep" + + "oint\022\021\n\tmark_name\030\004 \001(\t\022\024\n\014time_seconds\030" + + "\003 \001(\001*W\n\017SsmlVoiceGender\022!\n\035SSML_VOICE_G" + + "ENDER_UNSPECIFIED\020\000\022\010\n\004MALE\020\001\022\n\n\006FEMALE\020" + + "\002\022\013\n\007NEUTRAL\020\003*z\n\rAudioEncoding\022\036\n\032AUDIO" + + "_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\007\n" + + "\003MP3\020\002\022\017\n\013MP3_64_KBPS\020\004\022\014\n\010OGG_OPUS\020\003\022\t\n" + + "\005MULAW\020\005\022\010\n\004ALAW\020\0062\322\003\n\014TextToSpeech\022\242\001\n\n" + + "ListVoices\0224.google.cloud.texttospeech.v" + + "1beta1.ListVoicesRequest\0325.google.cloud." + + "texttospeech.v1beta1.ListVoicesResponse\"" + + "\'\202\323\344\223\002\021\022\017/v1beta1/voices\332A\rlanguage_code" + + "\022\313\001\n\020SynthesizeSpeech\022:.google.cloud.tex" + + "ttospeech.v1beta1.SynthesizeSpeechReques" + + "t\032;.google.cloud.texttospeech.v1beta1.Sy" + + "nthesizeSpeechResponse\">\202\323\344\223\002\035\"\030/v1beta1" + + "/text:synthesize:\001*\332A\030input,voice,audio_" + + "config\032O\312A\033texttospeech.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-p" + + "latformB\325\002\n%com.google.cloud.texttospeec" + + "h.v1beta1B\021TextToSpeechProtoP\001ZMgoogle.g" + + "olang.org/genproto/googleapis/cloud/text" + + "tospeech/v1beta1;texttospeech\370\001\001\252\002!Googl" + + "e.Cloud.TextToSpeech.V1Beta1\312\002!Google\\Cl" + + "oud\\TextToSpeech\\V1beta1\352\002$Google::Cloud" + + "::TextToSpeech::V1beta1\352AU\n\033automl.googl" + + "eapis.com/Model\0226projects/{project}/loca" + + "tions/{location}/models/{model}b\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(), + }); + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor, + new java.lang.String[] { "LanguageCode", }); + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor, + new java.lang.String[] { "Voices", }); + internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_texttospeech_v1beta1_Voice_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor, + new java.lang.String[] { "LanguageCodes", "Name", "SsmlGender", "NaturalSampleRateHertz", }); + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor, + new java.lang.String[] { "Input", "Voice", "AudioConfig", "EnableTimePointing", }); + internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor, + new java.lang.String[] { "Text", "Ssml", "InputSource", }); + internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor, + new java.lang.String[] { "LanguageCode", "Name", "SsmlGender", "CustomVoice", }); + internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor, + new java.lang.String[] { "AudioEncoding", "SpeakingRate", "Pitch", "VolumeGainDb", "SampleRateHertz", "EffectsProfileId", }); + internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor, + new java.lang.String[] { "Model", "ReportedUsage", }); + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor, + new java.lang.String[] { "AudioContent", "Timepoints", "AudioConfig", }); + internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_texttospeech_v1beta1_Timepoint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor, + new java.lang.String[] { "MarkName", "TimeSeconds", }); + 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.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + 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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Timepoint.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Timepoint.java similarity index 70% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Timepoint.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Timepoint.java index 1868275e..fb266292 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Timepoint.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Timepoint.java @@ -1,26 +1,9 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** - * - * *
  * This contains a mapping between a certain point in the input text and a
  * corresponding time in the output audio.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.texttospeech.v1beta1.Timepoint}
  */
-public final class Timepoint extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Timepoint extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.Timepoint)
     TimepointOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Timepoint.newBuilder() to construct.
   private Timepoint(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Timepoint() {
     markName_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Timepoint();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Timepoint(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,63 +54,57 @@ private Timepoint(
           case 0:
             done = true;
             break;
-          case 25:
-            {
-              timeSeconds_ = input.readDouble();
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 25: {
 
-              markName_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            timeSeconds_ = input.readDouble();
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            markName_ = s;
+            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.texttospeech.v1beta1.TextToSpeechProto
-        .internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
-        .internal_static_google_cloud_texttospeech_v1beta1_Timepoint_fieldAccessorTable
+    return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Timepoint_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.texttospeech.v1beta1.Timepoint.class,
-            com.google.cloud.texttospeech.v1beta1.Timepoint.Builder.class);
+            com.google.cloud.texttospeech.v1beta1.Timepoint.class, com.google.cloud.texttospeech.v1beta1.Timepoint.Builder.class);
   }
 
   public static final int MARK_NAME_FIELD_NUMBER = 4;
   private volatile java.lang.Object markName_;
   /**
-   *
-   *
    * 
    * Timepoint name as received from the client within `<mark>` tag.
    * 
* * string mark_name = 4; - * * @return The markName. */ @java.lang.Override @@ -136,29 +113,29 @@ public java.lang.String getMarkName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); markName_ = s; return s; } } /** - * - * *
    * Timepoint name as received from the client within `<mark>` tag.
    * 
* * string mark_name = 4; - * * @return The bytes for markName. */ @java.lang.Override - public com.google.protobuf.ByteString getMarkNameBytes() { + public com.google.protobuf.ByteString + getMarkNameBytes() { java.lang.Object ref = markName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); markName_ = b; return b; } else { @@ -169,14 +146,11 @@ public com.google.protobuf.ByteString getMarkNameBytes() { public static final int TIME_SECONDS_FIELD_NUMBER = 3; private double timeSeconds_; /** - * - * *
    * Time offset in seconds from the start of the synthesized audio.
    * 
* * double time_seconds = 3; - * * @return The timeSeconds. */ @java.lang.Override @@ -185,7 +159,6 @@ public double getTimeSeconds() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -197,7 +170,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (timeSeconds_ != 0D) { output.writeDouble(3, timeSeconds_); } @@ -214,7 +188,8 @@ public int getSerializedSize() { size = 0; if (timeSeconds_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, timeSeconds_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, timeSeconds_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(markName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, markName_); @@ -227,17 +202,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.texttospeech.v1beta1.Timepoint)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.Timepoint other = - (com.google.cloud.texttospeech.v1beta1.Timepoint) obj; + com.google.cloud.texttospeech.v1beta1.Timepoint other = (com.google.cloud.texttospeech.v1beta1.Timepoint) obj; - if (!getMarkName().equals(other.getMarkName())) return false; + if (!getMarkName() + .equals(other.getMarkName())) return false; if (java.lang.Double.doubleToLongBits(getTimeSeconds()) - != java.lang.Double.doubleToLongBits(other.getTimeSeconds())) return false; + != java.lang.Double.doubleToLongBits( + other.getTimeSeconds())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -252,113 +228,104 @@ public int hashCode() { hash = (37 * hash) + MARK_NAME_FIELD_NUMBER; hash = (53 * hash) + getMarkName().hashCode(); hash = (37 * hash) + TIME_SECONDS_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getTimeSeconds())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTimeSeconds())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.Timepoint 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.texttospeech.v1beta1.Timepoint parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1beta1.Timepoint parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1beta1.Timepoint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.Timepoint parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.Timepoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * This contains a mapping between a certain point in the input text and a
    * corresponding time in the output audio.
@@ -366,23 +333,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.texttospeech.v1beta1.Timepoint}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.Timepoint)
       com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
-          .internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
-          .internal_static_google_cloud_texttospeech_v1beta1_Timepoint_fieldAccessorTable
+      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Timepoint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.texttospeech.v1beta1.Timepoint.class,
-              com.google.cloud.texttospeech.v1beta1.Timepoint.Builder.class);
+              com.google.cloud.texttospeech.v1beta1.Timepoint.class, com.google.cloud.texttospeech.v1beta1.Timepoint.Builder.class);
     }
 
     // Construct using com.google.cloud.texttospeech.v1beta1.Timepoint.newBuilder()
@@ -390,15 +355,16 @@ 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();
@@ -410,9 +376,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
-          .internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor;
     }
 
     @java.lang.Override
@@ -431,8 +397,7 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint build() {
 
     @java.lang.Override
     public com.google.cloud.texttospeech.v1beta1.Timepoint buildPartial() {
-      com.google.cloud.texttospeech.v1beta1.Timepoint result =
-          new com.google.cloud.texttospeech.v1beta1.Timepoint(this);
+      com.google.cloud.texttospeech.v1beta1.Timepoint result = new com.google.cloud.texttospeech.v1beta1.Timepoint(this);
       result.markName_ = markName_;
       result.timeSeconds_ = timeSeconds_;
       onBuilt();
@@ -443,39 +408,38 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint 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.texttospeech.v1beta1.Timepoint) {
-        return mergeFrom((com.google.cloud.texttospeech.v1beta1.Timepoint) other);
+        return mergeFrom((com.google.cloud.texttospeech.v1beta1.Timepoint)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -483,8 +447,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.Timepoint other) {
-      if (other == com.google.cloud.texttospeech.v1beta1.Timepoint.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.texttospeech.v1beta1.Timepoint.getDefaultInstance()) return this;
       if (!other.getMarkName().isEmpty()) {
         markName_ = other.markName_;
         onChanged();
@@ -523,20 +486,18 @@ public Builder mergeFrom(
 
     private java.lang.Object markName_ = "";
     /**
-     *
-     *
      * 
      * Timepoint name as received from the client within `<mark>` tag.
      * 
* * string mark_name = 4; - * * @return The markName. */ public java.lang.String getMarkName() { java.lang.Object ref = markName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); markName_ = s; return s; @@ -545,21 +506,20 @@ public java.lang.String getMarkName() { } } /** - * - * *
      * Timepoint name as received from the client within `<mark>` tag.
      * 
* * string mark_name = 4; - * * @return The bytes for markName. */ - public com.google.protobuf.ByteString getMarkNameBytes() { + public com.google.protobuf.ByteString + getMarkNameBytes() { java.lang.Object ref = markName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); markName_ = b; return b; } else { @@ -567,76 +527,66 @@ public com.google.protobuf.ByteString getMarkNameBytes() { } } /** - * - * *
      * Timepoint name as received from the client within `<mark>` tag.
      * 
* * string mark_name = 4; - * * @param value The markName to set. * @return This builder for chaining. */ - public Builder setMarkName(java.lang.String value) { + public Builder setMarkName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + markName_ = value; onChanged(); return this; } /** - * - * *
      * Timepoint name as received from the client within `<mark>` tag.
      * 
* * string mark_name = 4; - * * @return This builder for chaining. */ public Builder clearMarkName() { - + markName_ = getDefaultInstance().getMarkName(); onChanged(); return this; } /** - * - * *
      * Timepoint name as received from the client within `<mark>` tag.
      * 
* * string mark_name = 4; - * * @param value The bytes for markName to set. * @return This builder for chaining. */ - public Builder setMarkNameBytes(com.google.protobuf.ByteString value) { + public Builder setMarkNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + markName_ = value; onChanged(); return this; } - private double timeSeconds_; + private double timeSeconds_ ; /** - * - * *
      * Time offset in seconds from the start of the synthesized audio.
      * 
* * double time_seconds = 3; - * * @return The timeSeconds. */ @java.lang.Override @@ -644,43 +594,37 @@ public double getTimeSeconds() { return timeSeconds_; } /** - * - * *
      * Time offset in seconds from the start of the synthesized audio.
      * 
* * double time_seconds = 3; - * * @param value The timeSeconds to set. * @return This builder for chaining. */ public Builder setTimeSeconds(double value) { - + timeSeconds_ = value; onChanged(); return this; } /** - * - * *
      * Time offset in seconds from the start of the synthesized audio.
      * 
* * double time_seconds = 3; - * * @return This builder for chaining. */ public Builder clearTimeSeconds() { - + timeSeconds_ = 0D; 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); } @@ -690,12 +634,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.Timepoint) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.Timepoint) private static final com.google.cloud.texttospeech.v1beta1.Timepoint DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.Timepoint(); } @@ -704,16 +648,16 @@ public static com.google.cloud.texttospeech.v1beta1.Timepoint getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Timepoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Timepoint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Timepoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Timepoint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -728,4 +672,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1beta1.Timepoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TimepointOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TimepointOrBuilder.java similarity index 55% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TimepointOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TimepointOrBuilder.java index cb356b5c..1e5953cd 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TimepointOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TimepointOrBuilder.java @@ -1,62 +1,38 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; -public interface TimepointOrBuilder - extends +public interface TimepointOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.Timepoint) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Timepoint name as received from the client within `<mark>` tag.
    * 
* * string mark_name = 4; - * * @return The markName. */ java.lang.String getMarkName(); /** - * - * *
    * Timepoint name as received from the client within `<mark>` tag.
    * 
* * string mark_name = 4; - * * @return The bytes for markName. */ - com.google.protobuf.ByteString getMarkNameBytes(); + com.google.protobuf.ByteString + getMarkNameBytes(); /** - * - * *
    * Time offset in seconds from the start of the synthesized audio.
    * 
* * double time_seconds = 3; - * * @return The timeSeconds. */ double getTimeSeconds(); diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Voice.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Voice.java similarity index 73% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Voice.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Voice.java index 4f56f5fa..f36db267 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Voice.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Voice.java @@ -1,42 +1,24 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** - * - * *
  * Description of a voice supported by the TTS service.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.Voice} */ -public final class Voice extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Voice extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.Voice) VoiceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Voice.newBuilder() to construct. private Voice(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Voice() { languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; name_ = ""; @@ -45,15 +27,16 @@ private Voice() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Voice(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Voice( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,48 +56,46 @@ private Voice( 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; - } - languageCodes_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + languageCodes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + languageCodes_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - ssmlGender_ = rawValue; - break; - } - case 32: - { - naturalSampleRateHertz_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + ssmlGender_ = rawValue; + break; + } + case 32: { + + naturalSampleRateHertz_ = input.readInt32(); + 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { languageCodes_ = languageCodes_.getUnmodifiableView(); @@ -123,27 +104,22 @@ private Voice( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_Voice_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Voice_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.Voice.class, - com.google.cloud.texttospeech.v1beta1.Voice.Builder.class); + com.google.cloud.texttospeech.v1beta1.Voice.class, com.google.cloud.texttospeech.v1beta1.Voice.Builder.class); } public static final int LANGUAGE_CODES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList languageCodes_; /** - * - * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -151,15 +127,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { return languageCodes_; } /** - * - * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -167,15 +141,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
    * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -183,7 +154,6 @@ public int getLanguageCodesCount() {
    * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -191,8 +161,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -200,25 +168,22 @@ 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); } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** - * - * *
    * The name of this voice.  Each distinct voice has a unique name.
    * 
* * string name = 2; - * * @return The name. */ @java.lang.Override @@ -227,29 +192,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 this voice.  Each distinct voice has a unique name.
    * 
* * string name = 2; - * * @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 { @@ -260,52 +225,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SSML_GENDER_FIELD_NUMBER = 3; private int ssmlGender_; /** - * - * *
    * The gender of this voice.
    * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @return The enum numeric value on the wire for ssmlGender. */ - @java.lang.Override - public int getSsmlGenderValue() { + @java.lang.Override public int getSsmlGenderValue() { return ssmlGender_; } /** - * - * *
    * The gender of this voice.
    * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @return The ssmlGender. */ - @java.lang.Override - public com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender() { + @java.lang.Override public com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender result = - com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.valueOf(ssmlGender_); - return result == null - ? com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.UNRECOGNIZED - : result; + com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender result = com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.valueOf(ssmlGender_); + return result == null ? com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.UNRECOGNIZED : result; } public static final int NATURAL_SAMPLE_RATE_HERTZ_FIELD_NUMBER = 4; private int naturalSampleRateHertz_; /** - * - * *
    * The natural sample rate (in hertz) for this voice.
    * 
* * int32 natural_sample_rate_hertz = 4; - * * @return The naturalSampleRateHertz. */ @java.lang.Override @@ -314,7 +265,6 @@ public int getNaturalSampleRateHertz() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,16 +276,15 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } - if (ssmlGender_ - != com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED - .getNumber()) { + if (ssmlGender_ != com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) { output.writeEnum(3, ssmlGender_); } if (naturalSampleRateHertz_ != 0) { @@ -361,13 +310,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } - if (ssmlGender_ - != com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, ssmlGender_); + if (ssmlGender_ != com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, ssmlGender_); } if (naturalSampleRateHertz_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, naturalSampleRateHertz_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, naturalSampleRateHertz_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -377,18 +326,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.texttospeech.v1beta1.Voice)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.Voice other = - (com.google.cloud.texttospeech.v1beta1.Voice) obj; + com.google.cloud.texttospeech.v1beta1.Voice other = (com.google.cloud.texttospeech.v1beta1.Voice) obj; - if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; - if (!getName().equals(other.getName())) return false; + if (!getLanguageCodesList() + .equals(other.getLanguageCodesList())) return false; + if (!getName() + .equals(other.getName())) return false; if (ssmlGender_ != other.ssmlGender_) return false; - if (getNaturalSampleRateHertz() != other.getNaturalSampleRateHertz()) return false; + if (getNaturalSampleRateHertz() + != other.getNaturalSampleRateHertz()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -415,127 +366,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.Voice 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.texttospeech.v1beta1.Voice parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.texttospeech.v1beta1.Voice parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.texttospeech.v1beta1.Voice parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.Voice parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.Voice prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Description of a voice supported by the TTS service.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.Voice} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.Voice) com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_Voice_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Voice_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.Voice.class, - com.google.cloud.texttospeech.v1beta1.Voice.Builder.class); + com.google.cloud.texttospeech.v1beta1.Voice.class, com.google.cloud.texttospeech.v1beta1.Voice.Builder.class); } // Construct using com.google.cloud.texttospeech.v1beta1.Voice.newBuilder() @@ -543,15 +485,16 @@ 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(); @@ -567,9 +510,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor; } @java.lang.Override @@ -588,8 +531,7 @@ public com.google.cloud.texttospeech.v1beta1.Voice build() { @java.lang.Override public com.google.cloud.texttospeech.v1beta1.Voice buildPartial() { - com.google.cloud.texttospeech.v1beta1.Voice result = - new com.google.cloud.texttospeech.v1beta1.Voice(this); + com.google.cloud.texttospeech.v1beta1.Voice result = new com.google.cloud.texttospeech.v1beta1.Voice(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { languageCodes_ = languageCodes_.getUnmodifiableView(); @@ -607,39 +549,38 @@ public com.google.cloud.texttospeech.v1beta1.Voice 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.texttospeech.v1beta1.Voice) { - return mergeFrom((com.google.cloud.texttospeech.v1beta1.Voice) other); + return mergeFrom((com.google.cloud.texttospeech.v1beta1.Voice)other); } else { super.mergeFrom(other); return this; @@ -696,21 +637,16 @@ 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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -718,15 +654,13 @@ 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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -734,15 +668,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
      * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
      * The languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -750,7 +681,6 @@ public int getLanguageCodesCount() {
      * 
* * repeated string language_codes = 1; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -758,8 +688,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
      * The languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -767,16 +695,14 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 1; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } /** - * - * *
      * The languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -784,23 +710,21 @@ public com.google.protobuf.ByteString getLanguageCodesBytes(int index) {
      * 
* * repeated string language_codes = 1; - * * @param index The index to set the value at. * @param value The languageCodes to set. * @return This builder for chaining. */ - public Builder setLanguageCodes(int index, java.lang.String value) { + 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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -808,22 +732,20 @@ public Builder setLanguageCodes(int index, java.lang.String value) {
      * 
* * repeated string language_codes = 1; - * * @param value The languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodes(java.lang.String value) { + 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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -831,19 +753,18 @@ public Builder addLanguageCodes(java.lang.String value) {
      * 
* * repeated string language_codes = 1; - * * @param values The languageCodes to add. * @return This builder for chaining. */ - public Builder addAllLanguageCodes(java.lang.Iterable values) { + public Builder addAllLanguageCodes( + java.lang.Iterable values) { ensureLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languageCodes_); onChanged(); return this; } /** - * - * *
      * The languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -851,7 +772,6 @@ public Builder addAllLanguageCodes(java.lang.Iterable values)
      * 
* * repeated string language_codes = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCodes() { @@ -861,8 +781,6 @@ public Builder clearLanguageCodes() { return this; } /** - * - * *
      * The languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -870,15 +788,15 @@ 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(); @@ -887,20 +805,18 @@ public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * The name of this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; - * * @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; @@ -909,21 +825,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; - * * @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 { @@ -931,61 +846,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; - * * @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 this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; - * * @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; @@ -993,67 +901,51 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int ssmlGender_ = 0; /** - * - * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @return The enum numeric value on the wire for ssmlGender. */ - @java.lang.Override - public int getSsmlGenderValue() { + @java.lang.Override public int getSsmlGenderValue() { return ssmlGender_; } /** - * - * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @param value The enum numeric value on the wire for ssmlGender to set. * @return This builder for chaining. */ public Builder setSsmlGenderValue(int value) { - + ssmlGender_ = value; onChanged(); return this; } /** - * - * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @return The ssmlGender. */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender result = - com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.valueOf(ssmlGender_); - return result == null - ? com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.UNRECOGNIZED - : result; + com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender result = com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.valueOf(ssmlGender_); + return result == null ? com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.UNRECOGNIZED : result; } /** - * - * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @param value The ssmlGender to set. * @return This builder for chaining. */ @@ -1061,39 +953,33 @@ public Builder setSsmlGender(com.google.cloud.texttospeech.v1beta1.SsmlVoiceGend if (value == null) { throw new NullPointerException(); } - + ssmlGender_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @return This builder for chaining. */ public Builder clearSsmlGender() { - + ssmlGender_ = 0; onChanged(); return this; } - private int naturalSampleRateHertz_; + private int naturalSampleRateHertz_ ; /** - * - * *
      * The natural sample rate (in hertz) for this voice.
      * 
* * int32 natural_sample_rate_hertz = 4; - * * @return The naturalSampleRateHertz. */ @java.lang.Override @@ -1101,43 +987,37 @@ public int getNaturalSampleRateHertz() { return naturalSampleRateHertz_; } /** - * - * *
      * The natural sample rate (in hertz) for this voice.
      * 
* * int32 natural_sample_rate_hertz = 4; - * * @param value The naturalSampleRateHertz to set. * @return This builder for chaining. */ public Builder setNaturalSampleRateHertz(int value) { - + naturalSampleRateHertz_ = value; onChanged(); return this; } /** - * - * *
      * The natural sample rate (in hertz) for this voice.
      * 
* * int32 natural_sample_rate_hertz = 4; - * * @return This builder for chaining. */ public Builder clearNaturalSampleRateHertz() { - + naturalSampleRateHertz_ = 0; 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); } @@ -1147,12 +1027,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.Voice) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.Voice) private static final com.google.cloud.texttospeech.v1beta1.Voice DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.Voice(); } @@ -1161,16 +1041,16 @@ public static com.google.cloud.texttospeech.v1beta1.Voice getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Voice parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Voice(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Voice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Voice(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1185,4 +1065,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1beta1.Voice getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceOrBuilder.java similarity index 75% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceOrBuilder.java index 019ef4e9..bff6a6c5 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; -public interface VoiceOrBuilder - extends +public interface VoiceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.Voice) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -33,13 +15,11 @@ public interface VoiceOrBuilder
    * 
* * repeated string language_codes = 1; - * * @return A list containing the languageCodes. */ - java.util.List getLanguageCodesList(); + java.util.List + getLanguageCodesList(); /** - * - * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -47,13 +27,10 @@ public interface VoiceOrBuilder
    * 
* * repeated string language_codes = 1; - * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** - * - * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -61,14 +38,11 @@ public interface VoiceOrBuilder
    * 
* * 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 languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -76,71 +50,57 @@ public interface VoiceOrBuilder
    * 
* * 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); /** - * - * *
    * The name of this voice.  Each distinct voice has a unique name.
    * 
* * string name = 2; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of this voice.  Each distinct voice has a unique name.
    * 
* * string name = 2; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The gender of this voice.
    * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @return The enum numeric value on the wire for ssmlGender. */ int getSsmlGenderValue(); /** - * - * *
    * The gender of this voice.
    * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @return The ssmlGender. */ com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender(); /** - * - * *
    * The natural sample rate (in hertz) for this voice.
    * 
* * int32 natural_sample_rate_hertz = 4; - * * @return The naturalSampleRateHertz. */ int getNaturalSampleRateHertz(); diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java similarity index 76% rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java index fd3483d0..2fdb67ee 100644 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java @@ -1,42 +1,24 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** - * - * *
  * Description of which voice to use for a synthesis request.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.VoiceSelectionParams} */ -public final class VoiceSelectionParams extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VoiceSelectionParams extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.VoiceSelectionParams) VoiceSelectionParamsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VoiceSelectionParams.newBuilder() to construct. private VoiceSelectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VoiceSelectionParams() { languageCode_ = ""; name_ = ""; @@ -45,15 +27,16 @@ private VoiceSelectionParams() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VoiceSelectionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VoiceSelectionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,83 +55,72 @@ private VoiceSelectionParams( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + languageCode_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - ssmlGender_ = rawValue; - break; + ssmlGender_ = rawValue; + break; + } + case 34: { + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder subBuilder = null; + if (customVoice_ != null) { + subBuilder = customVoice_.toBuilder(); } - case 34: - { - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder subBuilder = null; - if (customVoice_ != null) { - subBuilder = customVoice_.toBuilder(); - } - customVoice_ = - input.readMessage( - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customVoice_); - customVoice_ = subBuilder.buildPartial(); - } - - break; + customVoice_ = input.readMessage(com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customVoice_); + customVoice_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.class, - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder.class); + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.class, com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** - * - * *
    * Required. The language (and potentially also the region) of the voice expressed as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -164,7 +136,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ @java.lang.Override @@ -173,15 +144,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Required. The language (and potentially also the region) of the voice expressed as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -197,15 +167,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -216,15 +187,12 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** - * - * *
    * The name of the voice. If not set, the service will choose a
    * voice based on the other parameters such as language_code and gender.
    * 
* * string name = 2; - * * @return The name. */ @java.lang.Override @@ -233,30 +201,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; } } /** - * - * *
    * The name of the voice. If not set, the service will choose a
    * voice based on the other parameters such as language_code and gender.
    * 
* * string name = 2; - * * @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 { @@ -267,8 +235,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SSML_GENDER_FIELD_NUMBER = 3; private int ssmlGender_; /** - * - * *
    * The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
@@ -278,16 +244,12 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @return The enum numeric value on the wire for ssmlGender. */ - @java.lang.Override - public int getSsmlGenderValue() { + @java.lang.Override public int getSsmlGenderValue() { return ssmlGender_; } /** - * - * *
    * The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
@@ -297,24 +259,17 @@ public int getSsmlGenderValue() {
    * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @return The ssmlGender. */ - @java.lang.Override - public com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender() { + @java.lang.Override public com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender result = - com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.valueOf(ssmlGender_); - return result == null - ? com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.UNRECOGNIZED - : result; + com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender result = com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.valueOf(ssmlGender_); + return result == null ? com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.UNRECOGNIZED : result; } public static final int CUSTOM_VOICE_FIELD_NUMBER = 4; private com.google.cloud.texttospeech.v1beta1.CustomVoiceParams customVoice_; /** - * - * *
    * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
    * the service will choose the custom voice matching the specified
@@ -322,7 +277,6 @@ public com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender() {
    * 
* * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4; - * * @return Whether the customVoice field is set. */ @java.lang.Override @@ -330,8 +284,6 @@ public boolean hasCustomVoice() { return customVoice_ != null; } /** - * - * *
    * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
    * the service will choose the custom voice matching the specified
@@ -339,18 +291,13 @@ public boolean hasCustomVoice() {
    * 
* * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4; - * * @return The customVoice. */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams getCustomVoice() { - return customVoice_ == null - ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDefaultInstance() - : customVoice_; + return customVoice_ == null ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDefaultInstance() : customVoice_; } /** - * - * *
    * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
    * the service will choose the custom voice matching the specified
@@ -360,13 +307,11 @@ public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams getCustomVoice()
    * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4;
    */
   @java.lang.Override
-  public com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder
-      getCustomVoiceOrBuilder() {
+  public com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder getCustomVoiceOrBuilder() {
     return getCustomVoice();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -378,16 +323,15 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public 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_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
     }
-    if (ssmlGender_
-        != com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED
-            .getNumber()) {
+    if (ssmlGender_ != com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) {
       output.writeEnum(3, ssmlGender_);
     }
     if (customVoice_ != null) {
@@ -408,13 +352,13 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
     }
-    if (ssmlGender_
-        != com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED
-            .getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, ssmlGender_);
+    if (ssmlGender_ != com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(3, ssmlGender_);
     }
     if (customVoice_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCustomVoice());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getCustomVoice());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -424,20 +368,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.texttospeech.v1beta1.VoiceSelectionParams)) {
       return super.equals(obj);
     }
-    com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams other =
-        (com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams) obj;
+    com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams other = (com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams) obj;
 
-    if (!getLanguageCode().equals(other.getLanguageCode())) return false;
-    if (!getName().equals(other.getName())) return false;
+    if (!getLanguageCode()
+        .equals(other.getLanguageCode())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (ssmlGender_ != other.ssmlGender_) return false;
     if (hasCustomVoice() != other.hasCustomVoice()) return false;
     if (hasCustomVoice()) {
-      if (!getCustomVoice().equals(other.getCustomVoice())) return false;
+      if (!getCustomVoice()
+          .equals(other.getCustomVoice())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -466,127 +412,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams prototype) {
+  public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Description of which voice to use for a synthesis request.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.VoiceSelectionParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.VoiceSelectionParams) com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.class, - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder.class); + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.class, com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder.class); } // Construct using com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.newBuilder() @@ -594,15 +530,16 @@ 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(); @@ -622,9 +559,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto - .internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor; } @java.lang.Override @@ -643,8 +580,7 @@ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams build() { @java.lang.Override public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams buildPartial() { - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams result = - new com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams(this); + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams result = new com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams(this); result.languageCode_ = languageCode_; result.name_ = name_; result.ssmlGender_ = ssmlGender_; @@ -661,39 +597,38 @@ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams 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.texttospeech.v1beta1.VoiceSelectionParams) { - return mergeFrom((com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams) other); + return mergeFrom((com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams)other); } else { super.mergeFrom(other); return this; @@ -701,8 +636,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams other) { - if (other == com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.getDefaultInstance()) - return this; + if (other == com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -736,8 +670,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -749,8 +682,6 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** - * - * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -766,13 +697,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -781,8 +712,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -798,14 +727,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -813,8 +743,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -830,22 +758,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; } /** - * - * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -861,18 +787,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -888,16 +811,16 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -905,21 +828,19 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object name_ = ""; /** - * - * *
      * The name of the voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; - * * @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; @@ -928,22 +849,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; - * * @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 { @@ -951,64 +871,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; - * * @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 voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; - * * @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; @@ -1016,8 +929,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int ssmlGender_ = 0; /** - * - * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -1027,16 +938,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @return The enum numeric value on the wire for ssmlGender. */ - @java.lang.Override - public int getSsmlGenderValue() { + @java.lang.Override public int getSsmlGenderValue() { return ssmlGender_; } /** - * - * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -1046,19 +953,16 @@ public int getSsmlGenderValue() {
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @param value The enum numeric value on the wire for ssmlGender to set. * @return This builder for chaining. */ public Builder setSsmlGenderValue(int value) { - + ssmlGender_ = value; onChanged(); return this; } /** - * - * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -1068,21 +972,15 @@ public Builder setSsmlGenderValue(int value) {
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @return The ssmlGender. */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender result = - com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.valueOf(ssmlGender_); - return result == null - ? com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.UNRECOGNIZED - : result; + com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender result = com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.valueOf(ssmlGender_); + return result == null ? com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.UNRECOGNIZED : result; } /** - * - * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -1092,7 +990,6 @@ public com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender() {
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @param value The ssmlGender to set. * @return This builder for chaining. */ @@ -1100,14 +997,12 @@ public Builder setSsmlGender(com.google.cloud.texttospeech.v1beta1.SsmlVoiceGend if (value == null) { throw new NullPointerException(); } - + ssmlGender_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -1117,11 +1012,10 @@ public Builder setSsmlGender(com.google.cloud.texttospeech.v1beta1.SsmlVoiceGend
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @return This builder for chaining. */ public Builder clearSsmlGender() { - + ssmlGender_ = 0; onChanged(); return this; @@ -1129,13 +1023,8 @@ public Builder clearSsmlGender() { private com.google.cloud.texttospeech.v1beta1.CustomVoiceParams customVoice_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams, - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder, - com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder> - customVoiceBuilder_; + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams, com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder, com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder> customVoiceBuilder_; /** - * - * *
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1143,15 +1032,12 @@ public Builder clearSsmlGender() {
      * 
* * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4; - * * @return Whether the customVoice field is set. */ public boolean hasCustomVoice() { return customVoiceBuilder_ != null || customVoice_ != null; } /** - * - * *
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1159,21 +1045,16 @@ public boolean hasCustomVoice() {
      * 
* * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4; - * * @return The customVoice. */ public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams getCustomVoice() { if (customVoiceBuilder_ == null) { - return customVoice_ == null - ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDefaultInstance() - : customVoice_; + return customVoice_ == null ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDefaultInstance() : customVoice_; } else { return customVoiceBuilder_.getMessage(); } } /** - * - * *
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1196,8 +1077,6 @@ public Builder setCustomVoice(com.google.cloud.texttospeech.v1beta1.CustomVoiceP
       return this;
     }
     /**
-     *
-     *
      * 
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1218,8 +1097,6 @@ public Builder setCustomVoice(
       return this;
     }
     /**
-     *
-     *
      * 
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1232,9 +1109,7 @@ public Builder mergeCustomVoice(com.google.cloud.texttospeech.v1beta1.CustomVoic
       if (customVoiceBuilder_ == null) {
         if (customVoice_ != null) {
           customVoice_ =
-              com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.newBuilder(customVoice_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.newBuilder(customVoice_).mergeFrom(value).buildPartial();
         } else {
           customVoice_ = value;
         }
@@ -1246,8 +1121,6 @@ public Builder mergeCustomVoice(com.google.cloud.texttospeech.v1beta1.CustomVoic
       return this;
     }
     /**
-     *
-     *
      * 
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1268,8 +1141,6 @@ public Builder clearCustomVoice() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1279,13 +1150,11 @@ public Builder clearCustomVoice() {
      * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4;
      */
     public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder getCustomVoiceBuilder() {
-
+      
       onChanged();
       return getCustomVoiceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1294,19 +1163,15 @@ public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder getCustom
      *
      * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4;
      */
-    public com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder
-        getCustomVoiceOrBuilder() {
+    public com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder getCustomVoiceOrBuilder() {
       if (customVoiceBuilder_ != null) {
         return customVoiceBuilder_.getMessageOrBuilder();
       } else {
-        return customVoice_ == null
-            ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDefaultInstance()
-            : customVoice_;
+        return customVoice_ == null ?
+            com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDefaultInstance() : customVoice_;
       }
     }
     /**
-     *
-     *
      * 
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1316,24 +1181,21 @@ public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder getCustom
      * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.texttospeech.v1beta1.CustomVoiceParams,
-            com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder,
-            com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder>
+        com.google.cloud.texttospeech.v1beta1.CustomVoiceParams, com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder, com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder> 
         getCustomVoiceFieldBuilder() {
       if (customVoiceBuilder_ == null) {
-        customVoiceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.texttospeech.v1beta1.CustomVoiceParams,
-                com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder,
-                com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder>(
-                getCustomVoice(), getParentForChildren(), isClean());
+        customVoiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.texttospeech.v1beta1.CustomVoiceParams, com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder, com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder>(
+                getCustomVoice(),
+                getParentForChildren(),
+                isClean());
         customVoice_ = null;
       }
       return customVoiceBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1343,12 +1205,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.VoiceSelectionParams)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.VoiceSelectionParams)
   private static final com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams();
   }
@@ -1357,16 +1219,16 @@ public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public VoiceSelectionParams parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new VoiceSelectionParams(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public VoiceSelectionParams parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new VoiceSelectionParams(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1381,4 +1243,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java
similarity index 85%
rename from proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java
index d1c6eb1d..50303ab3 100644
--- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * 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/texttospeech/v1beta1/cloud_tts.proto
 
 package com.google.cloud.texttospeech.v1beta1;
 
-public interface VoiceSelectionParamsOrBuilder
-    extends
+public interface VoiceSelectionParamsOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.VoiceSelectionParams)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The language (and potentially also the region) of the voice expressed as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -41,13 +23,10 @@ public interface VoiceSelectionParamsOrBuilder
    * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Required. The language (and potentially also the region) of the voice expressed as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -63,41 +42,34 @@ public interface VoiceSelectionParamsOrBuilder
    * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * The name of the voice. If not set, the service will choose a
    * voice based on the other parameters such as language_code and gender.
    * 
* * string name = 2; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the voice. If not set, the service will choose a
    * voice based on the other parameters such as language_code and gender.
    * 
* * string name = 2; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
@@ -107,13 +79,10 @@ public interface VoiceSelectionParamsOrBuilder
    * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @return The enum numeric value on the wire for ssmlGender. */ int getSsmlGenderValue(); /** - * - * *
    * The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
@@ -123,14 +92,11 @@ public interface VoiceSelectionParamsOrBuilder
    * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; - * * @return The ssmlGender. */ com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender(); /** - * - * *
    * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
    * the service will choose the custom voice matching the specified
@@ -138,13 +104,10 @@ public interface VoiceSelectionParamsOrBuilder
    * 
* * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4; - * * @return Whether the customVoice field is set. */ boolean hasCustomVoice(); /** - * - * *
    * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
    * the service will choose the custom voice matching the specified
@@ -152,13 +115,10 @@ public interface VoiceSelectionParamsOrBuilder
    * 
* * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4; - * * @return The customVoice. */ com.google.cloud.texttospeech.v1beta1.CustomVoiceParams getCustomVoice(); /** - * - * *
    * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
    * the service will choose the custom voice matching the specified
diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto
similarity index 97%
rename from proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto
rename to owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto
index 55a62bf8..4fdd68b2 100644
--- a/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto
@@ -64,11 +64,10 @@ message ListVoicesRequest {
   // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
   // If not specified, the API will return all supported voices.
   // If specified, the ListVoices call will only return voices that can be used
-  // to synthesize this language_code. E.g. when specifying `"en-NZ"`, you will
-  // get supported `"en-NZ"` voices; when specifying `"no"`, you will get
-  // supported `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices;
-  // specifying `"zh"` will also get supported `"cmn-\*"` voices; specifying
-  // `"zh-hk"` will also get supported `"yue-hk"` voices.
+  // to synthesize this language_code. For example, if you specify `"en-NZ"`,
+  // all `"en-NZ"` voices will be returned. If you specify `"no"`, both
+  // `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices will be
+  // returned.
   string language_code = 1 [(google.api.field_behavior) = OPTIONAL];
 }
 
diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java
deleted file mode 100644
index a5507e30..00000000
--- a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java
+++ /dev/null
@@ -1,221 +0,0 @@
-/*
- * 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/texttospeech/v1/cloud_tts.proto
-
-package com.google.cloud.texttospeech.v1;
-
-public final class TextToSpeechProto {
-  private TextToSpeechProto() {}
-
-  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_texttospeech_v1_ListVoicesRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_texttospeech_v1_Voice_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_texttospeech_v1_Voice_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_texttospeech_v1_SynthesisInput_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_texttospeech_v1_AudioConfig_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_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/texttospeech/v1/cloud_tts"
-          + ".proto\022\034google.cloud.texttospeech.v1\032\034go"
-          + "ogle/api/annotations.proto\032\027google/api/c"
-          + "lient.proto\032\037google/api/field_behavior.p"
-          + "roto\032\031google/api/resource.proto\"/\n\021ListV"
-          + "oicesRequest\022\032\n\rlanguage_code\030\001 \001(\tB\003\340A\001"
-          + "\"I\n\022ListVoicesResponse\0223\n\006voices\030\001 \003(\0132#"
-          + ".google.cloud.texttospeech.v1.Voice\"\224\001\n\005"
-          + "Voice\022\026\n\016language_codes\030\001 \003(\t\022\014\n\004name\030\002 "
-          + "\001(\t\022B\n\013ssml_gender\030\003 \001(\0162-.google.cloud."
-          + "texttospeech.v1.SsmlVoiceGender\022!\n\031natur"
-          + "al_sample_rate_hertz\030\004 \001(\005\"\351\001\n\027Synthesiz"
-          + "eSpeechRequest\022@\n\005input\030\001 \001(\0132,.google.c"
-          + "loud.texttospeech.v1.SynthesisInputB\003\340A\002"
-          + "\022F\n\005voice\030\002 \001(\01322.google.cloud.texttospe"
-          + "ech.v1.VoiceSelectionParamsB\003\340A\002\022D\n\014audi"
-          + "o_config\030\003 \001(\0132).google.cloud.texttospee"
-          + "ch.v1.AudioConfigB\003\340A\002\"@\n\016SynthesisInput"
-          + "\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000B\016\n\014inpu"
-          + "t_source\"\204\001\n\024VoiceSelectionParams\022\032\n\rlan"
-          + "guage_code\030\001 \001(\tB\003\340A\002\022\014\n\004name\030\002 \001(\t\022B\n\013s"
-          + "sml_gender\030\003 \001(\0162-.google.cloud.texttosp"
-          + "eech.v1.SsmlVoiceGender\"\361\001\n\013AudioConfig\022"
-          + "H\n\016audio_encoding\030\001 \001(\0162+.google.cloud.t"
-          + "exttospeech.v1.AudioEncodingB\003\340A\002\022\035\n\rspe"
-          + "aking_rate\030\002 \001(\001B\006\340A\004\340A\001\022\025\n\005pitch\030\003 \001(\001B"
-          + "\006\340A\004\340A\001\022\036\n\016volume_gain_db\030\004 \001(\001B\006\340A\004\340A\001\022"
-          + "\036\n\021sample_rate_hertz\030\005 \001(\005B\003\340A\001\022\"\n\022effec"
-          + "ts_profile_id\030\006 \003(\tB\006\340A\004\340A\001\"1\n\030Synthesiz"
-          + "eSpeechResponse\022\025\n\raudio_content\030\001 \001(\014*W"
-          + "\n\017SsmlVoiceGender\022!\n\035SSML_VOICE_GENDER_U"
-          + "NSPECIFIED\020\000\022\010\n\004MALE\020\001\022\n\n\006FEMALE\020\002\022\013\n\007NE"
-          + "UTRAL\020\003*i\n\rAudioEncoding\022\036\n\032AUDIO_ENCODI"
-          + "NG_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\007\n\003MP3\020\002\022"
-          + "\014\n\010OGG_OPUS\020\003\022\t\n\005MULAW\020\005\022\010\n\004ALAW\020\0062\264\003\n\014T"
-          + "extToSpeech\022\223\001\n\nListVoices\022/.google.clou"
-          + "d.texttospeech.v1.ListVoicesRequest\0320.go"
-          + "ogle.cloud.texttospeech.v1.ListVoicesRes"
-          + "ponse\"\"\202\323\344\223\002\014\022\n/v1/voices\332A\rlanguage_cod"
-          + "e\022\274\001\n\020SynthesizeSpeech\0225.google.cloud.te"
-          + "xttospeech.v1.SynthesizeSpeechRequest\0326."
-          + "google.cloud.texttospeech.v1.SynthesizeS"
-          + "peechResponse\"9\202\323\344\223\002\030\"\023/v1/text:synthesi"
-          + "ze:\001*\332A\030input,voice,audio_config\032O\312A\033tex"
-          + "ttospeech.googleapis.com\322A.https://www.g"
-          + "oogleapis.com/auth/cloud-platformB\274\002\n co"
-          + "m.google.cloud.texttospeech.v1B\021TextToSp"
-          + "eechProtoP\001ZHgoogle.golang.org/genproto/"
-          + "googleapis/cloud/texttospeech/v1;texttos"
-          + "peech\370\001\001\252\002\034Google.Cloud.TextToSpeech.V1\312"
-          + "\002\034Google\\Cloud\\TextToSpeech\\V1\352\002\037Google:"
-          + ":Cloud::TextToSpeech::V1\352AU\n\033automl.goog"
-          + "leapis.com/Model\0226projects/{project}/loc"
-          + "ations/{location}/models/{model}b\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(),
-            });
-    internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor =
-        getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor,
-            new java.lang.String[] {
-              "LanguageCode",
-            });
-    internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor =
-        getDescriptor().getMessageTypes().get(1);
-    internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor,
-            new java.lang.String[] {
-              "Voices",
-            });
-    internal_static_google_cloud_texttospeech_v1_Voice_descriptor =
-        getDescriptor().getMessageTypes().get(2);
-    internal_static_google_cloud_texttospeech_v1_Voice_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_texttospeech_v1_Voice_descriptor,
-            new java.lang.String[] {
-              "LanguageCodes", "Name", "SsmlGender", "NaturalSampleRateHertz",
-            });
-    internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor =
-        getDescriptor().getMessageTypes().get(3);
-    internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor,
-            new java.lang.String[] {
-              "Input", "Voice", "AudioConfig",
-            });
-    internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor =
-        getDescriptor().getMessageTypes().get(4);
-    internal_static_google_cloud_texttospeech_v1_SynthesisInput_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor,
-            new java.lang.String[] {
-              "Text", "Ssml", "InputSource",
-            });
-    internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor =
-        getDescriptor().getMessageTypes().get(5);
-    internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor,
-            new java.lang.String[] {
-              "LanguageCode", "Name", "SsmlGender",
-            });
-    internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor =
-        getDescriptor().getMessageTypes().get(6);
-    internal_static_google_cloud_texttospeech_v1_AudioConfig_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor,
-            new java.lang.String[] {
-              "AudioEncoding",
-              "SpeakingRate",
-              "Pitch",
-              "VolumeGainDb",
-              "SampleRateHertz",
-              "EffectsProfileId",
-            });
-    internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor =
-        getDescriptor().getMessageTypes().get(7);
-    internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor,
-            new java.lang.String[] {
-              "AudioContent",
-            });
-    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.resourceDefinition);
-    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();
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java
deleted file mode 100644
index 7d9a5f16..00000000
--- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * 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/texttospeech/v1beta1/cloud_tts.proto
-
-package com.google.cloud.texttospeech.v1beta1;
-
-public interface CustomVoiceParamsOrBuilder
-    extends
-    // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.CustomVoiceParams)
-    com.google.protobuf.MessageOrBuilder {
-
-  /**
-   *
-   *
-   * 
-   * Required. The name of the AutoML model that synthesizes the custom voice.
-   * 
- * - * - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The model. - */ - java.lang.String getModel(); - /** - * - * - *
-   * Required. The name of the AutoML model that synthesizes the custom voice.
-   * 
- * - * - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for model. - */ - com.google.protobuf.ByteString getModelBytes(); - - /** - * - * - *
-   * Optional. The usage of the synthesized audio to be reported.
-   * 
- * - * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for reportedUsage. - */ - int getReportedUsageValue(); - /** - * - * - *
-   * Optional. The usage of the synthesized audio to be reported.
-   * 
- * - * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The reportedUsage. - */ - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage getReportedUsage(); -} diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java deleted file mode 100644 index 66177312..00000000 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto - -package com.google.cloud.texttospeech.v1beta1; - -public interface ListVoicesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.ListVoicesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Recommended.
-   * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
-   * If not specified, the API will return all supported voices.
-   * If specified, the ListVoices call will only return voices that can be used
-   * to synthesize this language_code. E.g. when specifying `"en-NZ"`, you will
-   * get supported `"en-NZ"` voices; when specifying `"no"`, you will get
-   * supported `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices;
-   * specifying `"zh"` will also get supported `"cmn-\*"` voices; specifying
-   * `"zh-hk"` will also get supported `"yue-hk"` voices.
-   * 
- * - * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The languageCode. - */ - java.lang.String getLanguageCode(); - /** - * - * - *
-   * Optional. Recommended.
-   * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
-   * If not specified, the API will return all supported voices.
-   * If specified, the ListVoices call will only return voices that can be used
-   * to synthesize this language_code. E.g. when specifying `"en-NZ"`, you will
-   * get supported `"en-NZ"` voices; when specifying `"no"`, you will get
-   * supported `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices;
-   * specifying `"zh"` will also get supported `"cmn-\*"` voices; specifying
-   * `"zh-hk"` will also get supported `"yue-hk"` voices.
-   * 
- * - * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for languageCode. - */ - com.google.protobuf.ByteString getLanguageCodeBytes(); -} diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java deleted file mode 100644 index 9acd6a6a..00000000 --- a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java +++ /dev/null @@ -1,266 +0,0 @@ -/* - * 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/texttospeech/v1beta1/cloud_tts.proto - -package com.google.cloud.texttospeech.v1beta1; - -public final class TextToSpeechProto { - private TextToSpeechProto() {} - - 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_texttospeech_v1beta1_ListVoicesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_Voice_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_Timepoint_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/texttospeech/v1beta1/clou" - + "d_tts.proto\022!google.cloud.texttospeech.v" - + "1beta1\032\034google/api/annotations.proto\032\027go" - + "ogle/api/client.proto\032\037google/api/field_" - + "behavior.proto\032\031google/api/resource.prot" - + "o\"/\n\021ListVoicesRequest\022\032\n\rlanguage_code\030" - + "\001 \001(\tB\003\340A\001\"N\n\022ListVoicesResponse\0228\n\006voic" - + "es\030\001 \003(\0132(.google.cloud.texttospeech.v1b" - + "eta1.Voice\"\231\001\n\005Voice\022\026\n\016language_codes\030\001" - + " \003(\t\022\014\n\004name\030\002 \001(\t\022G\n\013ssml_gender\030\003 \001(\0162" - + "2.google.cloud.texttospeech.v1beta1.Ssml" - + "VoiceGender\022!\n\031natural_sample_rate_hertz" - + "\030\004 \001(\005\"\240\003\n\027SynthesizeSpeechRequest\022E\n\005in" - + "put\030\001 \001(\01321.google.cloud.texttospeech.v1" - + "beta1.SynthesisInputB\003\340A\002\022K\n\005voice\030\002 \001(\013" - + "27.google.cloud.texttospeech.v1beta1.Voi" - + "ceSelectionParamsB\003\340A\002\022I\n\014audio_config\030\003" - + " \001(\0132..google.cloud.texttospeech.v1beta1" - + ".AudioConfigB\003\340A\002\022f\n\024enable_time_pointin" - + "g\030\004 \003(\0162H.google.cloud.texttospeech.v1be" - + "ta1.SynthesizeSpeechRequest.TimepointTyp" - + "e\">\n\rTimepointType\022\036\n\032TIMEPOINT_TYPE_UNS" - + "PECIFIED\020\000\022\r\n\tSSML_MARK\020\001\"@\n\016SynthesisIn" - + "put\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000B\016\n\014i" - + "nput_source\"\325\001\n\024VoiceSelectionParams\022\032\n\r" - + "language_code\030\001 \001(\tB\003\340A\002\022\014\n\004name\030\002 \001(\t\022G" - + "\n\013ssml_gender\030\003 \001(\01622.google.cloud.textt" - + "ospeech.v1beta1.SsmlVoiceGender\022J\n\014custo" - + "m_voice\030\004 \001(\01324.google.cloud.texttospeec" - + "h.v1beta1.CustomVoiceParams\"\366\001\n\013AudioCon" - + "fig\022M\n\016audio_encoding\030\001 \001(\01620.google.clo" - + "ud.texttospeech.v1beta1.AudioEncodingB\003\340" - + "A\002\022\035\n\rspeaking_rate\030\002 \001(\001B\006\340A\004\340A\001\022\025\n\005pit" - + "ch\030\003 \001(\001B\006\340A\004\340A\001\022\036\n\016volume_gain_db\030\004 \001(\001" - + "B\006\340A\004\340A\001\022\036\n\021sample_rate_hertz\030\005 \001(\005B\003\340A\001" - + "\022\"\n\022effects_profile_id\030\006 \003(\tB\006\340A\004\340A\001\"\364\001\n" - + "\021CustomVoiceParams\0222\n\005model\030\001 \001(\tB#\340A\002\372A" - + "\035\n\033automl.googleapis.com/Model\022_\n\016report" - + "ed_usage\030\003 \001(\0162B.google.cloud.texttospee" - + "ch.v1beta1.CustomVoiceParams.ReportedUsa" - + "geB\003\340A\001\"J\n\rReportedUsage\022\036\n\032REPORTED_USA" - + "GE_UNSPECIFIED\020\000\022\014\n\010REALTIME\020\001\022\013\n\007OFFLIN" - + "E\020\002\"\271\001\n\030SynthesizeSpeechResponse\022\025\n\raudi" - + "o_content\030\001 \001(\014\022@\n\ntimepoints\030\002 \003(\0132,.go" - + "ogle.cloud.texttospeech.v1beta1.Timepoin" - + "t\022D\n\014audio_config\030\004 \001(\0132..google.cloud.t" - + "exttospeech.v1beta1.AudioConfig\"4\n\tTimep" - + "oint\022\021\n\tmark_name\030\004 \001(\t\022\024\n\014time_seconds\030" - + "\003 \001(\001*W\n\017SsmlVoiceGender\022!\n\035SSML_VOICE_G" - + "ENDER_UNSPECIFIED\020\000\022\010\n\004MALE\020\001\022\n\n\006FEMALE\020" - + "\002\022\013\n\007NEUTRAL\020\003*z\n\rAudioEncoding\022\036\n\032AUDIO" - + "_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\007\n" - + "\003MP3\020\002\022\017\n\013MP3_64_KBPS\020\004\022\014\n\010OGG_OPUS\020\003\022\t\n" - + "\005MULAW\020\005\022\010\n\004ALAW\020\0062\322\003\n\014TextToSpeech\022\242\001\n\n" - + "ListVoices\0224.google.cloud.texttospeech.v" - + "1beta1.ListVoicesRequest\0325.google.cloud." - + "texttospeech.v1beta1.ListVoicesResponse\"" - + "\'\202\323\344\223\002\021\022\017/v1beta1/voices\332A\rlanguage_code" - + "\022\313\001\n\020SynthesizeSpeech\022:.google.cloud.tex" - + "ttospeech.v1beta1.SynthesizeSpeechReques" - + "t\032;.google.cloud.texttospeech.v1beta1.Sy" - + "nthesizeSpeechResponse\">\202\323\344\223\002\035\"\030/v1beta1" - + "/text:synthesize:\001*\332A\030input,voice,audio_" - + "config\032O\312A\033texttospeech.googleapis.com\322A" - + ".https://www.googleapis.com/auth/cloud-p" - + "latformB\325\002\n%com.google.cloud.texttospeec" - + "h.v1beta1B\021TextToSpeechProtoP\001ZMgoogle.g" - + "olang.org/genproto/googleapis/cloud/text" - + "tospeech/v1beta1;texttospeech\370\001\001\252\002!Googl" - + "e.Cloud.TextToSpeech.V1Beta1\312\002!Google\\Cl" - + "oud\\TextToSpeech\\V1beta1\352\002$Google::Cloud" - + "::TextToSpeech::V1beta1\352AU\n\033automl.googl" - + "eapis.com/Model\0226projects/{project}/loca" - + "tions/{location}/models/{model}b\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(), - }); - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor, - new java.lang.String[] { - "LanguageCode", - }); - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor, - new java.lang.String[] { - "Voices", - }); - internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_texttospeech_v1beta1_Voice_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor, - new java.lang.String[] { - "LanguageCodes", "Name", "SsmlGender", "NaturalSampleRateHertz", - }); - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor, - new java.lang.String[] { - "Input", "Voice", "AudioConfig", "EnableTimePointing", - }); - internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor, - new java.lang.String[] { - "Text", "Ssml", "InputSource", - }); - internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor, - new java.lang.String[] { - "LanguageCode", "Name", "SsmlGender", "CustomVoice", - }); - internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor, - new java.lang.String[] { - "AudioEncoding", - "SpeakingRate", - "Pitch", - "VolumeGainDb", - "SampleRateHertz", - "EffectsProfileId", - }); - internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor, - new java.lang.String[] { - "Model", "ReportedUsage", - }); - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor, - new java.lang.String[] { - "AudioContent", "Timepoints", "AudioConfig", - }); - internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_texttospeech_v1beta1_Timepoint_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor, - new java.lang.String[] { - "MarkName", "TimeSeconds", - }); - 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.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - 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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From 78464ffb782d87977d36e0e13d811e674c07372b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 22 Dec 2021 07:52:17 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../texttospeech/v1/TextToSpeechClient.java | 6 +- .../texttospeech/v1/TextToSpeechSettings.java | 7 +- .../cloud/texttospeech/v1/gapic_metadata.json | 0 .../cloud/texttospeech/v1/package-info.java | 0 .../stub/GrpcTextToSpeechCallableFactory.java | 0 .../v1/stub/GrpcTextToSpeechStub.java | 0 .../v1/stub/TextToSpeechStub.java | 0 .../v1/stub/TextToSpeechStubSettings.java | 6 +- .../v1beta1/TextToSpeechClient.java | 6 +- .../v1beta1/TextToSpeechSettings.java | 7 +- .../texttospeech/v1beta1/gapic_metadata.json | 0 .../texttospeech/v1beta1/package-info.java | 0 .../stub/GrpcTextToSpeechCallableFactory.java | 0 .../v1beta1/stub/GrpcTextToSpeechStub.java | 0 .../v1beta1/stub/TextToSpeechStub.java | 0 .../stub/TextToSpeechStubSettings.java | 6 +- .../texttospeech/v1/MockTextToSpeech.java | 0 .../texttospeech/v1/MockTextToSpeechImpl.java | 0 .../v1/TextToSpeechClientTest.java | 0 .../v1beta1/MockTextToSpeech.java | 0 .../v1beta1/MockTextToSpeechImpl.java | 0 .../v1beta1/TextToSpeechClientTest.java | 0 .../texttospeech/v1/TextToSpeechGrpc.java | 485 +++++++++ .../v1beta1/TextToSpeechGrpc.java | 486 +++++++++ .../texttospeech/v1/TextToSpeechGrpc.java | 393 ------- .../texttospeech/v1/TextToSpeechProto.java | 194 ---- .../v1beta1/TextToSpeechGrpc.java | 393 ------- .../v1beta1/CustomVoiceParamsOrBuilder.java | 48 - .../v1beta1/TextToSpeechProto.java | 237 ----- .../cloud/texttospeech/v1/AudioConfig.java | 676 +++++++----- .../texttospeech/v1/AudioConfigOrBuilder.java | 90 +- .../cloud/texttospeech/v1/AudioEncoding.java | 103 +- .../texttospeech/v1/ListVoicesRequest.java | 311 +++--- .../v1/ListVoicesRequestOrBuilder.java | 27 +- .../texttospeech/v1/ListVoicesResponse.java | 380 ++++--- .../v1/ListVoicesResponseOrBuilder.java | 36 +- .../texttospeech/v1/SsmlVoiceGender.java | 89 +- .../cloud/texttospeech/v1/SynthesisInput.java | 460 ++++---- .../v1/SynthesisInputOrBuilder.java | 42 +- .../v1/SynthesizeSpeechRequest.java | 679 ++++++++---- .../v1/SynthesizeSpeechRequestOrBuilder.java | 78 +- .../v1/SynthesizeSpeechResponse.java | 271 +++-- .../v1/SynthesizeSpeechResponseOrBuilder.java | 21 +- .../texttospeech/v1/TextToSpeechProto.java | 221 ++++ .../google/cloud/texttospeech/v1/Voice.java | 507 +++++---- .../cloud/texttospeech/v1/VoiceOrBuilder.java | 54 +- .../texttospeech/v1/VoiceSelectionParams.java | 461 ++++---- .../v1/VoiceSelectionParamsOrBuilder.java | 42 +- .../cloud/texttospeech/v1/cloud_tts.proto | 0 .../texttospeech/v1beta1/AudioConfig.java | 696 ++++++++----- .../v1beta1/AudioConfigOrBuilder.java | 90 +- .../texttospeech/v1beta1/AudioEncoding.java | 114 +- .../v1beta1/CustomVoiceParams.java | 520 ++++++---- .../v1beta1/CustomVoiceParamsOrBuilder.java | 83 ++ .../v1beta1/ListVoicesRequest.java | 314 +++--- .../v1beta1/ListVoicesRequestOrBuilder.java | 27 +- .../v1beta1/ListVoicesResponse.java | 384 ++++--- .../v1beta1/ListVoicesResponseOrBuilder.java | 36 +- .../texttospeech/v1beta1/SsmlVoiceGender.java | 93 +- .../texttospeech/v1beta1/SynthesisInput.java | 467 +++++---- .../v1beta1/SynthesisInputOrBuilder.java | 42 +- .../v1beta1/SynthesizeSpeechRequest.java | 982 ++++++++++++------ .../SynthesizeSpeechRequestOrBuilder.java | 122 ++- .../v1beta1/SynthesizeSpeechResponse.java | 532 ++++++---- .../SynthesizeSpeechResponseOrBuilder.java | 47 +- .../v1beta1/TextToSpeechProto.java | 266 +++++ .../cloud/texttospeech/v1beta1/Timepoint.java | 344 +++--- .../v1beta1/TimepointOrBuilder.java | 30 +- .../cloud/texttospeech/v1beta1/Voice.java | 518 +++++---- .../texttospeech/v1beta1/VoiceOrBuilder.java | 54 +- .../v1beta1/VoiceSelectionParams.java | 570 ++++++---- .../VoiceSelectionParamsOrBuilder.java | 50 +- .../texttospeech/v1beta1/cloud_tts.proto | 0 73 files changed, 8243 insertions(+), 4960 deletions(-) rename {owl-bot-staging/v1/google-cloud-texttospeech => google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java (97%) rename {owl-bot-staging/v1/google-cloud-texttospeech => google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java (95%) rename {owl-bot-staging/v1/google-cloud-texttospeech => google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-texttospeech => google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-texttospeech => google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-texttospeech => google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechStub.java (100%) rename {owl-bot-staging/v1/google-cloud-texttospeech => google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStub.java (100%) rename {owl-bot-staging/v1/google-cloud-texttospeech => google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java (97%) rename {owl-bot-staging/v1beta1/google-cloud-texttospeech => google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java (97%) rename {owl-bot-staging/v1beta1/google-cloud-texttospeech => google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java (95%) rename {owl-bot-staging/v1beta1/google-cloud-texttospeech => google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1beta1/google-cloud-texttospeech => google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-texttospeech => google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-texttospeech => google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-texttospeech => google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-texttospeech => google-cloud-texttospeech}/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-texttospeech => google-cloud-texttospeech}/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeech.java (100%) rename {owl-bot-staging/v1/google-cloud-texttospeech => google-cloud-texttospeech}/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeechImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-texttospeech => google-cloud-texttospeech}/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechClientTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-texttospeech => google-cloud-texttospeech}/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeech.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-texttospeech => google-cloud-texttospeech}/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeechImpl.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-texttospeech => google-cloud-texttospeech}/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClientTest.java (100%) create mode 100644 grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java create mode 100644 grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java delete mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponse.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponseOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/SsmlVoiceGender.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java (50%) rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java (54%) create mode 100644 proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/Voice.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/VoiceOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java (82%) rename {owl-bot-staging/v1/proto-google-cloud-texttospeech-v1 => proto-google-cloud-texttospeech-v1}/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java (64%) create mode 100644 proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponse.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponseOrBuilder.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/SsmlVoiceGender.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java (51%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java (80%) create mode 100644 proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/Timepoint.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/TimepointOrBuilder.java (55%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/Voice.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceOrBuilder.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java (76%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java (85%) rename {owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1 => proto-google-cloud-texttospeech-v1beta1}/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto (100%) diff --git a/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java rename to google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java index b77dc381..36aa5929 100644 --- a/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java +++ b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java @@ -46,13 +46,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. 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. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. 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. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. 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. *
* diff --git a/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java similarity index 95% rename from owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java rename to google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java index e1ad3a1f..d71f1419 100644 --- a/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java +++ b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java @@ -24,7 +24,6 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.texttospeech.v1.stub.TextToSpeechStubSettings; @@ -39,9 +38,9 @@ *

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

    - *
  • The default service address (texttospeech.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 default service address (texttospeech.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 diff --git a/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/gapic_metadata.json b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/gapic_metadata.json rename to google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/package-info.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/package-info.java rename to google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechCallableFactory.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechCallableFactory.java rename to google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechStub.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechStub.java rename to google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechStub.java diff --git a/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStub.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStub.java rename to google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStub.java diff --git a/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java rename to google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java index 00c9e97e..4f40b335 100644 --- a/owl-bot-staging/v1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java +++ b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java @@ -51,9 +51,9 @@ *

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

    - *
  • The default service address (texttospeech.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 default service address (texttospeech.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 diff --git a/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java rename to google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java index d9451d78..c000f2bc 100644 --- a/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java +++ b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java @@ -46,13 +46,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. 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. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. 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. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. 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. *
* diff --git a/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java similarity index 95% rename from owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java rename to google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java index 83f1a2b4..b5004b43 100644 --- a/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java +++ b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java @@ -24,7 +24,6 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.texttospeech.v1beta1.stub.TextToSpeechStubSettings; @@ -39,9 +38,9 @@ *

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

    - *
  • The default service address (texttospeech.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 default service address (texttospeech.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 diff --git a/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/gapic_metadata.json b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/gapic_metadata.json rename to google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java rename to google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java diff --git a/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechCallableFactory.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechCallableFactory.java rename to google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechStub.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechStub.java rename to google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStub.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStub.java rename to google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java rename to google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java index a20ba7b9..9ffb00c1 100644 --- a/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java +++ b/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java @@ -51,9 +51,9 @@ *

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

    - *
  • The default service address (texttospeech.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 default service address (texttospeech.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 diff --git a/owl-bot-staging/v1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeech.java b/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeech.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeech.java rename to google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeech.java diff --git a/owl-bot-staging/v1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeechImpl.java b/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeechImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeechImpl.java rename to google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeechImpl.java diff --git a/owl-bot-staging/v1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechClientTest.java b/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechClientTest.java rename to google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeech.java b/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeech.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeech.java rename to google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeech.java diff --git a/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeechImpl.java b/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeechImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeechImpl.java rename to google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeechImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClientTest.java b/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClientTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClientTest.java rename to google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClientTest.java diff --git a/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java b/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java new file mode 100644 index 00000000..cc5fdb26 --- /dev/null +++ b/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java @@ -0,0 +1,485 @@ +/* + * 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.texttospeech.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Service that implements Google Cloud Text-to-Speech API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/texttospeech/v1/cloud_tts.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TextToSpeechGrpc { + + private TextToSpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.texttospeech.v1.TextToSpeech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.texttospeech.v1.ListVoicesRequest, + com.google.cloud.texttospeech.v1.ListVoicesResponse> + getListVoicesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVoices", + requestType = com.google.cloud.texttospeech.v1.ListVoicesRequest.class, + responseType = com.google.cloud.texttospeech.v1.ListVoicesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.texttospeech.v1.ListVoicesRequest, + com.google.cloud.texttospeech.v1.ListVoicesResponse> + getListVoicesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.texttospeech.v1.ListVoicesRequest, + com.google.cloud.texttospeech.v1.ListVoicesResponse> + getListVoicesMethod; + if ((getListVoicesMethod = TextToSpeechGrpc.getListVoicesMethod) == null) { + synchronized (TextToSpeechGrpc.class) { + if ((getListVoicesMethod = TextToSpeechGrpc.getListVoicesMethod) == null) { + TextToSpeechGrpc.getListVoicesMethod = + getListVoicesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVoices")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.texttospeech.v1.ListVoicesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.texttospeech.v1.ListVoicesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new TextToSpeechMethodDescriptorSupplier("ListVoices")) + .build(); + } + } + } + return getListVoicesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest, + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse> + getSynthesizeSpeechMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SynthesizeSpeech", + requestType = com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.class, + responseType = com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest, + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse> + getSynthesizeSpeechMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest, + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse> + getSynthesizeSpeechMethod; + if ((getSynthesizeSpeechMethod = TextToSpeechGrpc.getSynthesizeSpeechMethod) == null) { + synchronized (TextToSpeechGrpc.class) { + if ((getSynthesizeSpeechMethod = TextToSpeechGrpc.getSynthesizeSpeechMethod) == null) { + TextToSpeechGrpc.getSynthesizeSpeechMethod = + getSynthesizeSpeechMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SynthesizeSpeech")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TextToSpeechMethodDescriptorSupplier("SynthesizeSpeech")) + .build(); + } + } + } + return getSynthesizeSpeechMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static TextToSpeechStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TextToSpeechStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechStub(channel, callOptions); + } + }; + return TextToSpeechStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TextToSpeechBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TextToSpeechBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechBlockingStub(channel, callOptions); + } + }; + return TextToSpeechBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static TextToSpeechFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TextToSpeechFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechFutureStub(channel, callOptions); + } + }; + return TextToSpeechFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service that implements Google Cloud Text-to-Speech API.
+   * 
+ */ + public abstract static class TextToSpeechImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Returns a list of Voice supported for synthesis.
+     * 
+ */ + public void listVoices( + com.google.cloud.texttospeech.v1.ListVoicesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVoicesMethod(), responseObserver); + } + + /** + * + * + *
+     * Synthesizes speech synchronously: receive results after all text input
+     * has been processed.
+     * 
+ */ + public void synthesizeSpeech( + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSynthesizeSpeechMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListVoicesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.texttospeech.v1.ListVoicesRequest, + com.google.cloud.texttospeech.v1.ListVoicesResponse>( + this, METHODID_LIST_VOICES))) + .addMethod( + getSynthesizeSpeechMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest, + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse>( + this, METHODID_SYNTHESIZE_SPEECH))) + .build(); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Text-to-Speech API.
+   * 
+ */ + public static final class TextToSpeechStub + extends io.grpc.stub.AbstractAsyncStub { + private TextToSpeechStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TextToSpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a list of Voice supported for synthesis.
+     * 
+ */ + public void listVoices( + com.google.cloud.texttospeech.v1.ListVoicesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVoicesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Synthesizes speech synchronously: receive results after all text input
+     * has been processed.
+     * 
+ */ + public void synthesizeSpeech( + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSynthesizeSpeechMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Text-to-Speech API.
+   * 
+ */ + public static final class TextToSpeechBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TextToSpeechBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TextToSpeechBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a list of Voice supported for synthesis.
+     * 
+ */ + public com.google.cloud.texttospeech.v1.ListVoicesResponse listVoices( + com.google.cloud.texttospeech.v1.ListVoicesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVoicesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Synthesizes speech synchronously: receive results after all text input
+     * has been processed.
+     * 
+ */ + public com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse synthesizeSpeech( + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSynthesizeSpeechMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Text-to-Speech API.
+   * 
+ */ + public static final class TextToSpeechFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TextToSpeechFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TextToSpeechFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a list of Voice supported for synthesis.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.texttospeech.v1.ListVoicesResponse> + listVoices(com.google.cloud.texttospeech.v1.ListVoicesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVoicesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Synthesizes speech synchronously: receive results after all text input
+     * has been processed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse> + synthesizeSpeech(com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSynthesizeSpeechMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_VOICES = 0; + private static final int METHODID_SYNTHESIZE_SPEECH = 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 TextToSpeechImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TextToSpeechImplBase 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_VOICES: + serviceImpl.listVoices( + (com.google.cloud.texttospeech.v1.ListVoicesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SYNTHESIZE_SPEECH: + serviceImpl.synthesizeSpeech( + (com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse>) + 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 TextToSpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TextToSpeechBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TextToSpeech"); + } + } + + private static final class TextToSpeechFileDescriptorSupplier + extends TextToSpeechBaseDescriptorSupplier { + TextToSpeechFileDescriptorSupplier() {} + } + + private static final class TextToSpeechMethodDescriptorSupplier + extends TextToSpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TextToSpeechMethodDescriptorSupplier(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 (TextToSpeechGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TextToSpeechFileDescriptorSupplier()) + .addMethod(getListVoicesMethod()) + .addMethod(getSynthesizeSpeechMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java b/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java new file mode 100644 index 00000000..3a211b42 --- /dev/null +++ b/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java @@ -0,0 +1,486 @@ +/* + * 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.texttospeech.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service that implements Google Cloud Text-to-Speech API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/texttospeech/v1beta1/cloud_tts.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TextToSpeechGrpc { + + private TextToSpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.texttospeech.v1beta1.TextToSpeech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest, + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse> + getListVoicesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVoices", + requestType = com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.class, + responseType = com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest, + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse> + getListVoicesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest, + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse> + getListVoicesMethod; + if ((getListVoicesMethod = TextToSpeechGrpc.getListVoicesMethod) == null) { + synchronized (TextToSpeechGrpc.class) { + if ((getListVoicesMethod = TextToSpeechGrpc.getListVoicesMethod) == null) { + TextToSpeechGrpc.getListVoicesMethod = + getListVoicesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVoices")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new TextToSpeechMethodDescriptorSupplier("ListVoices")) + .build(); + } + } + } + return getListVoicesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest, + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse> + getSynthesizeSpeechMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SynthesizeSpeech", + requestType = com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.class, + responseType = com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest, + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse> + getSynthesizeSpeechMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest, + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse> + getSynthesizeSpeechMethod; + if ((getSynthesizeSpeechMethod = TextToSpeechGrpc.getSynthesizeSpeechMethod) == null) { + synchronized (TextToSpeechGrpc.class) { + if ((getSynthesizeSpeechMethod = TextToSpeechGrpc.getSynthesizeSpeechMethod) == null) { + TextToSpeechGrpc.getSynthesizeSpeechMethod = + getSynthesizeSpeechMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SynthesizeSpeech")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new TextToSpeechMethodDescriptorSupplier("SynthesizeSpeech")) + .build(); + } + } + } + return getSynthesizeSpeechMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static TextToSpeechStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TextToSpeechStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechStub(channel, callOptions); + } + }; + return TextToSpeechStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TextToSpeechBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TextToSpeechBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechBlockingStub(channel, callOptions); + } + }; + return TextToSpeechBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static TextToSpeechFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TextToSpeechFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechFutureStub(channel, callOptions); + } + }; + return TextToSpeechFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service that implements Google Cloud Text-to-Speech API.
+   * 
+ */ + public abstract static class TextToSpeechImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Returns a list of Voice supported for synthesis.
+     * 
+ */ + public void listVoices( + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVoicesMethod(), responseObserver); + } + + /** + * + * + *
+     * Synthesizes speech synchronously: receive results after all text input
+     * has been processed.
+     * 
+ */ + public void synthesizeSpeech( + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSynthesizeSpeechMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListVoicesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest, + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse>( + this, METHODID_LIST_VOICES))) + .addMethod( + getSynthesizeSpeechMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest, + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse>( + this, METHODID_SYNTHESIZE_SPEECH))) + .build(); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Text-to-Speech API.
+   * 
+ */ + public static final class TextToSpeechStub + extends io.grpc.stub.AbstractAsyncStub { + private TextToSpeechStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TextToSpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a list of Voice supported for synthesis.
+     * 
+ */ + public void listVoices( + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVoicesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Synthesizes speech synchronously: receive results after all text input
+     * has been processed.
+     * 
+ */ + public void synthesizeSpeech( + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSynthesizeSpeechMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Text-to-Speech API.
+   * 
+ */ + public static final class TextToSpeechBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TextToSpeechBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TextToSpeechBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a list of Voice supported for synthesis.
+     * 
+ */ + public com.google.cloud.texttospeech.v1beta1.ListVoicesResponse listVoices( + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVoicesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Synthesizes speech synchronously: receive results after all text input
+     * has been processed.
+     * 
+ */ + public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse synthesizeSpeech( + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSynthesizeSpeechMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Text-to-Speech API.
+   * 
+ */ + public static final class TextToSpeechFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TextToSpeechFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TextToSpeechFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TextToSpeechFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a list of Voice supported for synthesis.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse> + listVoices(com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVoicesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Synthesizes speech synchronously: receive results after all text input
+     * has been processed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse> + synthesizeSpeech(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSynthesizeSpeechMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_VOICES = 0; + private static final int METHODID_SYNTHESIZE_SPEECH = 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 TextToSpeechImplBase serviceImpl; + private final int methodId; + + MethodHandlers(TextToSpeechImplBase 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_VOICES: + serviceImpl.listVoices( + (com.google.cloud.texttospeech.v1beta1.ListVoicesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse>) + responseObserver); + break; + case METHODID_SYNTHESIZE_SPEECH: + serviceImpl.synthesizeSpeech( + (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse>) + 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 TextToSpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TextToSpeechBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TextToSpeech"); + } + } + + private static final class TextToSpeechFileDescriptorSupplier + extends TextToSpeechBaseDescriptorSupplier { + TextToSpeechFileDescriptorSupplier() {} + } + + private static final class TextToSpeechMethodDescriptorSupplier + extends TextToSpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + TextToSpeechMethodDescriptorSupplier(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 (TextToSpeechGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TextToSpeechFileDescriptorSupplier()) + .addMethod(getListVoicesMethod()) + .addMethod(getSynthesizeSpeechMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java deleted file mode 100644 index 8f670ff8..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java +++ /dev/null @@ -1,393 +0,0 @@ -package com.google.cloud.texttospeech.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service that implements Google Cloud Text-to-Speech API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/texttospeech/v1/cloud_tts.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TextToSpeechGrpc { - - private TextToSpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.texttospeech.v1.TextToSpeech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListVoicesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVoices", - requestType = com.google.cloud.texttospeech.v1.ListVoicesRequest.class, - responseType = com.google.cloud.texttospeech.v1.ListVoicesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListVoicesMethod() { - io.grpc.MethodDescriptor getListVoicesMethod; - if ((getListVoicesMethod = TextToSpeechGrpc.getListVoicesMethod) == null) { - synchronized (TextToSpeechGrpc.class) { - if ((getListVoicesMethod = TextToSpeechGrpc.getListVoicesMethod) == null) { - TextToSpeechGrpc.getListVoicesMethod = getListVoicesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVoices")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.texttospeech.v1.ListVoicesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.texttospeech.v1.ListVoicesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TextToSpeechMethodDescriptorSupplier("ListVoices")) - .build(); - } - } - } - return getListVoicesMethod; - } - - private static volatile io.grpc.MethodDescriptor getSynthesizeSpeechMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SynthesizeSpeech", - requestType = com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.class, - responseType = com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSynthesizeSpeechMethod() { - io.grpc.MethodDescriptor getSynthesizeSpeechMethod; - if ((getSynthesizeSpeechMethod = TextToSpeechGrpc.getSynthesizeSpeechMethod) == null) { - synchronized (TextToSpeechGrpc.class) { - if ((getSynthesizeSpeechMethod = TextToSpeechGrpc.getSynthesizeSpeechMethod) == null) { - TextToSpeechGrpc.getSynthesizeSpeechMethod = getSynthesizeSpeechMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SynthesizeSpeech")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.getDefaultInstance())) - .setSchemaDescriptor(new TextToSpeechMethodDescriptorSupplier("SynthesizeSpeech")) - .build(); - } - } - } - return getSynthesizeSpeechMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static TextToSpeechStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TextToSpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechStub(channel, callOptions); - } - }; - return TextToSpeechStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TextToSpeechBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TextToSpeechBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechBlockingStub(channel, callOptions); - } - }; - return TextToSpeechBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static TextToSpeechFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TextToSpeechFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechFutureStub(channel, callOptions); - } - }; - return TextToSpeechFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service that implements Google Cloud Text-to-Speech API.
-   * 
- */ - public static abstract class TextToSpeechImplBase implements io.grpc.BindableService { - - /** - *
-     * Returns a list of Voice supported for synthesis.
-     * 
- */ - public void listVoices(com.google.cloud.texttospeech.v1.ListVoicesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVoicesMethod(), responseObserver); - } - - /** - *
-     * Synthesizes speech synchronously: receive results after all text input
-     * has been processed.
-     * 
- */ - public void synthesizeSpeech(com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSynthesizeSpeechMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListVoicesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.texttospeech.v1.ListVoicesRequest, - com.google.cloud.texttospeech.v1.ListVoicesResponse>( - this, METHODID_LIST_VOICES))) - .addMethod( - getSynthesizeSpeechMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest, - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse>( - this, METHODID_SYNTHESIZE_SPEECH))) - .build(); - } - } - - /** - *
-   * Service that implements Google Cloud Text-to-Speech API.
-   * 
- */ - public static final class TextToSpeechStub extends io.grpc.stub.AbstractAsyncStub { - private TextToSpeechStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TextToSpeechStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechStub(channel, callOptions); - } - - /** - *
-     * Returns a list of Voice supported for synthesis.
-     * 
- */ - public void listVoices(com.google.cloud.texttospeech.v1.ListVoicesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVoicesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Synthesizes speech synchronously: receive results after all text input
-     * has been processed.
-     * 
- */ - public void synthesizeSpeech(com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSynthesizeSpeechMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Service that implements Google Cloud Text-to-Speech API.
-   * 
- */ - public static final class TextToSpeechBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private TextToSpeechBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TextToSpeechBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechBlockingStub(channel, callOptions); - } - - /** - *
-     * Returns a list of Voice supported for synthesis.
-     * 
- */ - public com.google.cloud.texttospeech.v1.ListVoicesResponse listVoices(com.google.cloud.texttospeech.v1.ListVoicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVoicesMethod(), getCallOptions(), request); - } - - /** - *
-     * Synthesizes speech synchronously: receive results after all text input
-     * has been processed.
-     * 
- */ - public com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse synthesizeSpeech(com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSynthesizeSpeechMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service that implements Google Cloud Text-to-Speech API.
-   * 
- */ - public static final class TextToSpeechFutureStub extends io.grpc.stub.AbstractFutureStub { - private TextToSpeechFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TextToSpeechFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechFutureStub(channel, callOptions); - } - - /** - *
-     * Returns a list of Voice supported for synthesis.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listVoices( - com.google.cloud.texttospeech.v1.ListVoicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListVoicesMethod(), getCallOptions()), request); - } - - /** - *
-     * Synthesizes speech synchronously: receive results after all text input
-     * has been processed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture synthesizeSpeech( - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSynthesizeSpeechMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_VOICES = 0; - private static final int METHODID_SYNTHESIZE_SPEECH = 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 TextToSpeechImplBase serviceImpl; - private final int methodId; - - MethodHandlers(TextToSpeechImplBase 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_VOICES: - serviceImpl.listVoices((com.google.cloud.texttospeech.v1.ListVoicesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SYNTHESIZE_SPEECH: - serviceImpl.synthesizeSpeech((com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest) 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 TextToSpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TextToSpeechBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TextToSpeech"); - } - } - - private static final class TextToSpeechFileDescriptorSupplier - extends TextToSpeechBaseDescriptorSupplier { - TextToSpeechFileDescriptorSupplier() {} - } - - private static final class TextToSpeechMethodDescriptorSupplier - extends TextToSpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TextToSpeechMethodDescriptorSupplier(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 (TextToSpeechGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TextToSpeechFileDescriptorSupplier()) - .addMethod(getListVoicesMethod()) - .addMethod(getSynthesizeSpeechMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java b/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java deleted file mode 100644 index 8a283bb4..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java +++ /dev/null @@ -1,194 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/texttospeech/v1/cloud_tts.proto - -package com.google.cloud.texttospeech.v1; - -public final class TextToSpeechProto { - private TextToSpeechProto() {} - 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_texttospeech_v1_ListVoicesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1_Voice_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1_Voice_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1_SynthesisInput_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1_AudioConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_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/texttospeech/v1/cloud_tts" + - ".proto\022\034google.cloud.texttospeech.v1\032\034go" + - "ogle/api/annotations.proto\032\027google/api/c" + - "lient.proto\032\037google/api/field_behavior.p" + - "roto\032\031google/api/resource.proto\"/\n\021ListV" + - "oicesRequest\022\032\n\rlanguage_code\030\001 \001(\tB\003\340A\001" + - "\"I\n\022ListVoicesResponse\0223\n\006voices\030\001 \003(\0132#" + - ".google.cloud.texttospeech.v1.Voice\"\224\001\n\005" + - "Voice\022\026\n\016language_codes\030\001 \003(\t\022\014\n\004name\030\002 " + - "\001(\t\022B\n\013ssml_gender\030\003 \001(\0162-.google.cloud." + - "texttospeech.v1.SsmlVoiceGender\022!\n\031natur" + - "al_sample_rate_hertz\030\004 \001(\005\"\351\001\n\027Synthesiz" + - "eSpeechRequest\022@\n\005input\030\001 \001(\0132,.google.c" + - "loud.texttospeech.v1.SynthesisInputB\003\340A\002" + - "\022F\n\005voice\030\002 \001(\01322.google.cloud.texttospe" + - "ech.v1.VoiceSelectionParamsB\003\340A\002\022D\n\014audi" + - "o_config\030\003 \001(\0132).google.cloud.texttospee" + - "ch.v1.AudioConfigB\003\340A\002\"@\n\016SynthesisInput" + - "\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000B\016\n\014inpu" + - "t_source\"\204\001\n\024VoiceSelectionParams\022\032\n\rlan" + - "guage_code\030\001 \001(\tB\003\340A\002\022\014\n\004name\030\002 \001(\t\022B\n\013s" + - "sml_gender\030\003 \001(\0162-.google.cloud.texttosp" + - "eech.v1.SsmlVoiceGender\"\361\001\n\013AudioConfig\022" + - "H\n\016audio_encoding\030\001 \001(\0162+.google.cloud.t" + - "exttospeech.v1.AudioEncodingB\003\340A\002\022\035\n\rspe" + - "aking_rate\030\002 \001(\001B\006\340A\004\340A\001\022\025\n\005pitch\030\003 \001(\001B" + - "\006\340A\004\340A\001\022\036\n\016volume_gain_db\030\004 \001(\001B\006\340A\004\340A\001\022" + - "\036\n\021sample_rate_hertz\030\005 \001(\005B\003\340A\001\022\"\n\022effec" + - "ts_profile_id\030\006 \003(\tB\006\340A\004\340A\001\"1\n\030Synthesiz" + - "eSpeechResponse\022\025\n\raudio_content\030\001 \001(\014*W" + - "\n\017SsmlVoiceGender\022!\n\035SSML_VOICE_GENDER_U" + - "NSPECIFIED\020\000\022\010\n\004MALE\020\001\022\n\n\006FEMALE\020\002\022\013\n\007NE" + - "UTRAL\020\003*i\n\rAudioEncoding\022\036\n\032AUDIO_ENCODI" + - "NG_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\007\n\003MP3\020\002\022" + - "\014\n\010OGG_OPUS\020\003\022\t\n\005MULAW\020\005\022\010\n\004ALAW\020\0062\264\003\n\014T" + - "extToSpeech\022\223\001\n\nListVoices\022/.google.clou" + - "d.texttospeech.v1.ListVoicesRequest\0320.go" + - "ogle.cloud.texttospeech.v1.ListVoicesRes" + - "ponse\"\"\202\323\344\223\002\014\022\n/v1/voices\332A\rlanguage_cod" + - "e\022\274\001\n\020SynthesizeSpeech\0225.google.cloud.te" + - "xttospeech.v1.SynthesizeSpeechRequest\0326." + - "google.cloud.texttospeech.v1.SynthesizeS" + - "peechResponse\"9\202\323\344\223\002\030\"\023/v1/text:synthesi" + - "ze:\001*\332A\030input,voice,audio_config\032O\312A\033tex" + - "ttospeech.googleapis.com\322A.https://www.g" + - "oogleapis.com/auth/cloud-platformB\274\002\n co" + - "m.google.cloud.texttospeech.v1B\021TextToSp" + - "eechProtoP\001ZHgoogle.golang.org/genproto/" + - "googleapis/cloud/texttospeech/v1;texttos" + - "peech\370\001\001\252\002\034Google.Cloud.TextToSpeech.V1\312" + - "\002\034Google\\Cloud\\TextToSpeech\\V1\352\002\037Google:" + - ":Cloud::TextToSpeech::V1\352AU\n\033automl.goog" + - "leapis.com/Model\0226projects/{project}/loc" + - "ations/{location}/models/{model}b\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(), - }); - internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor, - new java.lang.String[] { "LanguageCode", }); - internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor, - new java.lang.String[] { "Voices", }); - internal_static_google_cloud_texttospeech_v1_Voice_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_texttospeech_v1_Voice_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1_Voice_descriptor, - new java.lang.String[] { "LanguageCodes", "Name", "SsmlGender", "NaturalSampleRateHertz", }); - internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor, - new java.lang.String[] { "Input", "Voice", "AudioConfig", }); - internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_texttospeech_v1_SynthesisInput_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor, - new java.lang.String[] { "Text", "Ssml", "InputSource", }); - internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor, - new java.lang.String[] { "LanguageCode", "Name", "SsmlGender", }); - internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_texttospeech_v1_AudioConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor, - new java.lang.String[] { "AudioEncoding", "SpeakingRate", "Pitch", "VolumeGainDb", "SampleRateHertz", "EffectsProfileId", }); - internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor, - new java.lang.String[] { "AudioContent", }); - 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.resourceDefinition); - 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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java deleted file mode 100644 index 67551a85..00000000 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java +++ /dev/null @@ -1,393 +0,0 @@ -package com.google.cloud.texttospeech.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service that implements Google Cloud Text-to-Speech API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/texttospeech/v1beta1/cloud_tts.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TextToSpeechGrpc { - - private TextToSpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.texttospeech.v1beta1.TextToSpeech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListVoicesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListVoices", - requestType = com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.class, - responseType = com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListVoicesMethod() { - io.grpc.MethodDescriptor getListVoicesMethod; - if ((getListVoicesMethod = TextToSpeechGrpc.getListVoicesMethod) == null) { - synchronized (TextToSpeechGrpc.class) { - if ((getListVoicesMethod = TextToSpeechGrpc.getListVoicesMethod) == null) { - TextToSpeechGrpc.getListVoicesMethod = getListVoicesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVoices")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.getDefaultInstance())) - .setSchemaDescriptor(new TextToSpeechMethodDescriptorSupplier("ListVoices")) - .build(); - } - } - } - return getListVoicesMethod; - } - - private static volatile io.grpc.MethodDescriptor getSynthesizeSpeechMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SynthesizeSpeech", - requestType = com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.class, - responseType = com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSynthesizeSpeechMethod() { - io.grpc.MethodDescriptor getSynthesizeSpeechMethod; - if ((getSynthesizeSpeechMethod = TextToSpeechGrpc.getSynthesizeSpeechMethod) == null) { - synchronized (TextToSpeechGrpc.class) { - if ((getSynthesizeSpeechMethod = TextToSpeechGrpc.getSynthesizeSpeechMethod) == null) { - TextToSpeechGrpc.getSynthesizeSpeechMethod = getSynthesizeSpeechMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SynthesizeSpeech")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.getDefaultInstance())) - .setSchemaDescriptor(new TextToSpeechMethodDescriptorSupplier("SynthesizeSpeech")) - .build(); - } - } - } - return getSynthesizeSpeechMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static TextToSpeechStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TextToSpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechStub(channel, callOptions); - } - }; - return TextToSpeechStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TextToSpeechBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TextToSpeechBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechBlockingStub(channel, callOptions); - } - }; - return TextToSpeechBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static TextToSpeechFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TextToSpeechFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechFutureStub(channel, callOptions); - } - }; - return TextToSpeechFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service that implements Google Cloud Text-to-Speech API.
-   * 
- */ - public static abstract class TextToSpeechImplBase implements io.grpc.BindableService { - - /** - *
-     * Returns a list of Voice supported for synthesis.
-     * 
- */ - public void listVoices(com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVoicesMethod(), responseObserver); - } - - /** - *
-     * Synthesizes speech synchronously: receive results after all text input
-     * has been processed.
-     * 
- */ - public void synthesizeSpeech(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSynthesizeSpeechMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListVoicesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest, - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse>( - this, METHODID_LIST_VOICES))) - .addMethod( - getSynthesizeSpeechMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest, - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse>( - this, METHODID_SYNTHESIZE_SPEECH))) - .build(); - } - } - - /** - *
-   * Service that implements Google Cloud Text-to-Speech API.
-   * 
- */ - public static final class TextToSpeechStub extends io.grpc.stub.AbstractAsyncStub { - private TextToSpeechStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TextToSpeechStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechStub(channel, callOptions); - } - - /** - *
-     * Returns a list of Voice supported for synthesis.
-     * 
- */ - public void listVoices(com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListVoicesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Synthesizes speech synchronously: receive results after all text input
-     * has been processed.
-     * 
- */ - public void synthesizeSpeech(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSynthesizeSpeechMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Service that implements Google Cloud Text-to-Speech API.
-   * 
- */ - public static final class TextToSpeechBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private TextToSpeechBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TextToSpeechBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechBlockingStub(channel, callOptions); - } - - /** - *
-     * Returns a list of Voice supported for synthesis.
-     * 
- */ - public com.google.cloud.texttospeech.v1beta1.ListVoicesResponse listVoices(com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListVoicesMethod(), getCallOptions(), request); - } - - /** - *
-     * Synthesizes speech synchronously: receive results after all text input
-     * has been processed.
-     * 
- */ - public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse synthesizeSpeech(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSynthesizeSpeechMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service that implements Google Cloud Text-to-Speech API.
-   * 
- */ - public static final class TextToSpeechFutureStub extends io.grpc.stub.AbstractFutureStub { - private TextToSpeechFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TextToSpeechFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TextToSpeechFutureStub(channel, callOptions); - } - - /** - *
-     * Returns a list of Voice supported for synthesis.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listVoices( - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListVoicesMethod(), getCallOptions()), request); - } - - /** - *
-     * Synthesizes speech synchronously: receive results after all text input
-     * has been processed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture synthesizeSpeech( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSynthesizeSpeechMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_VOICES = 0; - private static final int METHODID_SYNTHESIZE_SPEECH = 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 TextToSpeechImplBase serviceImpl; - private final int methodId; - - MethodHandlers(TextToSpeechImplBase 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_VOICES: - serviceImpl.listVoices((com.google.cloud.texttospeech.v1beta1.ListVoicesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SYNTHESIZE_SPEECH: - serviceImpl.synthesizeSpeech((com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) 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 TextToSpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TextToSpeechBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TextToSpeech"); - } - } - - private static final class TextToSpeechFileDescriptorSupplier - extends TextToSpeechBaseDescriptorSupplier { - TextToSpeechFileDescriptorSupplier() {} - } - - private static final class TextToSpeechMethodDescriptorSupplier - extends TextToSpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - TextToSpeechMethodDescriptorSupplier(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 (TextToSpeechGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TextToSpeechFileDescriptorSupplier()) - .addMethod(getListVoicesMethod()) - .addMethod(getSynthesizeSpeechMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java deleted file mode 100644 index 8adc813c..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/texttospeech/v1beta1/cloud_tts.proto - -package com.google.cloud.texttospeech.v1beta1; - -public interface CustomVoiceParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.CustomVoiceParams) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the AutoML model that synthesizes the custom voice.
-   * 
- * - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The model. - */ - java.lang.String getModel(); - /** - *
-   * Required. The name of the AutoML model that synthesizes the custom voice.
-   * 
- * - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for model. - */ - com.google.protobuf.ByteString - getModelBytes(); - - /** - *
-   * Optional. The usage of the synthesized audio to be reported.
-   * 
- * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The enum numeric value on the wire for reportedUsage. - */ - int getReportedUsageValue(); - /** - *
-   * Optional. The usage of the synthesized audio to be reported.
-   * 
- * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The reportedUsage. - */ - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage getReportedUsage(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java deleted file mode 100644 index bfa2fb2c..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java +++ /dev/null @@ -1,237 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/texttospeech/v1beta1/cloud_tts.proto - -package com.google.cloud.texttospeech.v1beta1; - -public final class TextToSpeechProto { - private TextToSpeechProto() {} - 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_texttospeech_v1beta1_ListVoicesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_Voice_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_texttospeech_v1beta1_Timepoint_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/texttospeech/v1beta1/clou" + - "d_tts.proto\022!google.cloud.texttospeech.v" + - "1beta1\032\034google/api/annotations.proto\032\027go" + - "ogle/api/client.proto\032\037google/api/field_" + - "behavior.proto\032\031google/api/resource.prot" + - "o\"/\n\021ListVoicesRequest\022\032\n\rlanguage_code\030" + - "\001 \001(\tB\003\340A\001\"N\n\022ListVoicesResponse\0228\n\006voic" + - "es\030\001 \003(\0132(.google.cloud.texttospeech.v1b" + - "eta1.Voice\"\231\001\n\005Voice\022\026\n\016language_codes\030\001" + - " \003(\t\022\014\n\004name\030\002 \001(\t\022G\n\013ssml_gender\030\003 \001(\0162" + - "2.google.cloud.texttospeech.v1beta1.Ssml" + - "VoiceGender\022!\n\031natural_sample_rate_hertz" + - "\030\004 \001(\005\"\240\003\n\027SynthesizeSpeechRequest\022E\n\005in" + - "put\030\001 \001(\01321.google.cloud.texttospeech.v1" + - "beta1.SynthesisInputB\003\340A\002\022K\n\005voice\030\002 \001(\013" + - "27.google.cloud.texttospeech.v1beta1.Voi" + - "ceSelectionParamsB\003\340A\002\022I\n\014audio_config\030\003" + - " \001(\0132..google.cloud.texttospeech.v1beta1" + - ".AudioConfigB\003\340A\002\022f\n\024enable_time_pointin" + - "g\030\004 \003(\0162H.google.cloud.texttospeech.v1be" + - "ta1.SynthesizeSpeechRequest.TimepointTyp" + - "e\">\n\rTimepointType\022\036\n\032TIMEPOINT_TYPE_UNS" + - "PECIFIED\020\000\022\r\n\tSSML_MARK\020\001\"@\n\016SynthesisIn" + - "put\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000B\016\n\014i" + - "nput_source\"\325\001\n\024VoiceSelectionParams\022\032\n\r" + - "language_code\030\001 \001(\tB\003\340A\002\022\014\n\004name\030\002 \001(\t\022G" + - "\n\013ssml_gender\030\003 \001(\01622.google.cloud.textt" + - "ospeech.v1beta1.SsmlVoiceGender\022J\n\014custo" + - "m_voice\030\004 \001(\01324.google.cloud.texttospeec" + - "h.v1beta1.CustomVoiceParams\"\366\001\n\013AudioCon" + - "fig\022M\n\016audio_encoding\030\001 \001(\01620.google.clo" + - "ud.texttospeech.v1beta1.AudioEncodingB\003\340" + - "A\002\022\035\n\rspeaking_rate\030\002 \001(\001B\006\340A\004\340A\001\022\025\n\005pit" + - "ch\030\003 \001(\001B\006\340A\004\340A\001\022\036\n\016volume_gain_db\030\004 \001(\001" + - "B\006\340A\004\340A\001\022\036\n\021sample_rate_hertz\030\005 \001(\005B\003\340A\001" + - "\022\"\n\022effects_profile_id\030\006 \003(\tB\006\340A\004\340A\001\"\364\001\n" + - "\021CustomVoiceParams\0222\n\005model\030\001 \001(\tB#\340A\002\372A" + - "\035\n\033automl.googleapis.com/Model\022_\n\016report" + - "ed_usage\030\003 \001(\0162B.google.cloud.texttospee" + - "ch.v1beta1.CustomVoiceParams.ReportedUsa" + - "geB\003\340A\001\"J\n\rReportedUsage\022\036\n\032REPORTED_USA" + - "GE_UNSPECIFIED\020\000\022\014\n\010REALTIME\020\001\022\013\n\007OFFLIN" + - "E\020\002\"\271\001\n\030SynthesizeSpeechResponse\022\025\n\raudi" + - "o_content\030\001 \001(\014\022@\n\ntimepoints\030\002 \003(\0132,.go" + - "ogle.cloud.texttospeech.v1beta1.Timepoin" + - "t\022D\n\014audio_config\030\004 \001(\0132..google.cloud.t" + - "exttospeech.v1beta1.AudioConfig\"4\n\tTimep" + - "oint\022\021\n\tmark_name\030\004 \001(\t\022\024\n\014time_seconds\030" + - "\003 \001(\001*W\n\017SsmlVoiceGender\022!\n\035SSML_VOICE_G" + - "ENDER_UNSPECIFIED\020\000\022\010\n\004MALE\020\001\022\n\n\006FEMALE\020" + - "\002\022\013\n\007NEUTRAL\020\003*z\n\rAudioEncoding\022\036\n\032AUDIO" + - "_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\007\n" + - "\003MP3\020\002\022\017\n\013MP3_64_KBPS\020\004\022\014\n\010OGG_OPUS\020\003\022\t\n" + - "\005MULAW\020\005\022\010\n\004ALAW\020\0062\322\003\n\014TextToSpeech\022\242\001\n\n" + - "ListVoices\0224.google.cloud.texttospeech.v" + - "1beta1.ListVoicesRequest\0325.google.cloud." + - "texttospeech.v1beta1.ListVoicesResponse\"" + - "\'\202\323\344\223\002\021\022\017/v1beta1/voices\332A\rlanguage_code" + - "\022\313\001\n\020SynthesizeSpeech\022:.google.cloud.tex" + - "ttospeech.v1beta1.SynthesizeSpeechReques" + - "t\032;.google.cloud.texttospeech.v1beta1.Sy" + - "nthesizeSpeechResponse\">\202\323\344\223\002\035\"\030/v1beta1" + - "/text:synthesize:\001*\332A\030input,voice,audio_" + - "config\032O\312A\033texttospeech.googleapis.com\322A" + - ".https://www.googleapis.com/auth/cloud-p" + - "latformB\325\002\n%com.google.cloud.texttospeec" + - "h.v1beta1B\021TextToSpeechProtoP\001ZMgoogle.g" + - "olang.org/genproto/googleapis/cloud/text" + - "tospeech/v1beta1;texttospeech\370\001\001\252\002!Googl" + - "e.Cloud.TextToSpeech.V1Beta1\312\002!Google\\Cl" + - "oud\\TextToSpeech\\V1beta1\352\002$Google::Cloud" + - "::TextToSpeech::V1beta1\352AU\n\033automl.googl" + - "eapis.com/Model\0226projects/{project}/loca" + - "tions/{location}/models/{model}b\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(), - }); - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor, - new java.lang.String[] { "LanguageCode", }); - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor, - new java.lang.String[] { "Voices", }); - internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_texttospeech_v1beta1_Voice_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor, - new java.lang.String[] { "LanguageCodes", "Name", "SsmlGender", "NaturalSampleRateHertz", }); - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor, - new java.lang.String[] { "Input", "Voice", "AudioConfig", "EnableTimePointing", }); - internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor, - new java.lang.String[] { "Text", "Ssml", "InputSource", }); - internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor, - new java.lang.String[] { "LanguageCode", "Name", "SsmlGender", "CustomVoice", }); - internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor, - new java.lang.String[] { "AudioEncoding", "SpeakingRate", "Pitch", "VolumeGainDb", "SampleRateHertz", "EffectsProfileId", }); - internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor, - new java.lang.String[] { "Model", "ReportedUsage", }); - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor, - new java.lang.String[] { "AudioContent", "Timepoints", "AudioConfig", }); - internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_texttospeech_v1beta1_Timepoint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor, - new java.lang.String[] { "MarkName", "TimeSeconds", }); - 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.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - 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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java index e4960108..3d06458c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** + * + * *
  * Description of audio data to be synthesized.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1.AudioConfig} */ -public final class AudioConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AudioConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.AudioConfig) AudioConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AudioConfig.newBuilder() to construct. private AudioConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AudioConfig() { audioEncoding_ = 0; effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,16 +44,15 @@ private AudioConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AudioConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AudioConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,55 +72,56 @@ private AudioConfig( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - audioEncoding_ = rawValue; - break; - } - case 17: { - - speakingRate_ = input.readDouble(); - break; - } - case 25: { - - pitch_ = input.readDouble(); - break; - } - case 33: { - - volumeGainDb_ = input.readDouble(); - break; - } - case 40: { + case 8: + { + int rawValue = input.readEnum(); - sampleRateHertz_ = input.readInt32(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + audioEncoding_ = rawValue; + break; } - effectsProfileId_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 17: + { + speakingRate_ = input.readDouble(); + break; + } + case 25: + { + pitch_ = input.readDouble(); + break; + } + case 33: + { + volumeGainDb_ = input.readDouble(); + break; + } + case 40: + { + sampleRateHertz_ = input.readInt32(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + effectsProfileId_.add(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)) { effectsProfileId_ = effectsProfileId_.getUnmodifiableView(); @@ -112,49 +130,67 @@ private AudioConfig( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_AudioConfig_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_AudioConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.AudioConfig.class, com.google.cloud.texttospeech.v1.AudioConfig.Builder.class); + com.google.cloud.texttospeech.v1.AudioConfig.class, + com.google.cloud.texttospeech.v1.AudioConfig.Builder.class); } public static final int AUDIO_ENCODING_FIELD_NUMBER = 1; private int audioEncoding_; /** + * + * *
    * Required. The format of the audio byte stream.
    * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for audioEncoding. */ - @java.lang.Override public int getAudioEncodingValue() { + @java.lang.Override + public int getAudioEncodingValue() { return audioEncoding_; } /** + * + * *
    * Required. The format of the audio byte stream.
    * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audioEncoding. */ - @java.lang.Override public com.google.cloud.texttospeech.v1.AudioEncoding getAudioEncoding() { + @java.lang.Override + public com.google.cloud.texttospeech.v1.AudioEncoding getAudioEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1.AudioEncoding result = com.google.cloud.texttospeech.v1.AudioEncoding.valueOf(audioEncoding_); + com.google.cloud.texttospeech.v1.AudioEncoding result = + com.google.cloud.texttospeech.v1.AudioEncoding.valueOf(audioEncoding_); return result == null ? com.google.cloud.texttospeech.v1.AudioEncoding.UNRECOGNIZED : result; } public static final int SPEAKING_RATE_FIELD_NUMBER = 2; private double speakingRate_; /** + * + * *
    * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
    * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -162,7 +198,10 @@ private AudioConfig(
    * speed. Any other values < 0.25 or > 4.0 will return an error.
    * 
* - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The speakingRate. */ @java.lang.Override @@ -173,13 +212,18 @@ public double getSpeakingRate() { public static final int PITCH_FIELD_NUMBER = 3; private double pitch_; /** + * + * *
    * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
    * increase 20 semitones from the original pitch. -20 means decrease 20
    * semitones from the original pitch.
    * 
* - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pitch. */ @java.lang.Override @@ -190,6 +234,8 @@ public double getPitch() { public static final int VOLUME_GAIN_DB_FIELD_NUMBER = 4; private double volumeGainDb_; /** + * + * *
    * Optional. Input only. Volume gain (in dB) of the normal native volume
    * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -201,7 +247,10 @@ public double getPitch() {
    * increase in loudness for any value greater than that.
    * 
* - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The volumeGainDb. */ @java.lang.Override @@ -212,6 +261,8 @@ public double getVolumeGainDb() { public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 5; private int sampleRateHertz_; /** + * + * *
    * Optional. The synthesis sample rate (in hertz) for this audio. When this is
    * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -223,6 +274,7 @@ public double getVolumeGainDb() {
    * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -233,6 +285,8 @@ public int getSampleRateHertz() { public static final int EFFECTS_PROFILE_ID_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList effectsProfileId_; /** + * + * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -242,14 +296,18 @@ public int getSampleRateHertz() {
    * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the effectsProfileId. */ - public com.google.protobuf.ProtocolStringList - getEffectsProfileIdList() { + public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { return effectsProfileId_; } /** + * + * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -259,13 +317,18 @@ public int getSampleRateHertz() {
    * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of effectsProfileId. */ public int getEffectsProfileIdCount() { return effectsProfileId_.size(); } /** + * + * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -275,7 +338,10 @@ public int getEffectsProfileIdCount() {
    * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The effectsProfileId at the given index. */ @@ -283,6 +349,8 @@ public java.lang.String getEffectsProfileId(int index) { return effectsProfileId_.get(index); } /** + * + * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -292,16 +360,19 @@ public java.lang.String getEffectsProfileId(int index) {
    * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. */ - public com.google.protobuf.ByteString - getEffectsProfileIdBytes(int index) { + public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { return effectsProfileId_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,9 +384,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (audioEncoding_ != com.google.cloud.texttospeech.v1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (audioEncoding_ + != com.google.cloud.texttospeech.v1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { output.writeEnum(1, audioEncoding_); } if (speakingRate_ != 0D) { @@ -342,25 +413,21 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (audioEncoding_ != com.google.cloud.texttospeech.v1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, audioEncoding_); + if (audioEncoding_ + != com.google.cloud.texttospeech.v1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, audioEncoding_); } if (speakingRate_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, speakingRate_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, speakingRate_); } if (pitch_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, pitch_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, pitch_); } if (volumeGainDb_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, volumeGainDb_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, volumeGainDb_); } if (sampleRateHertz_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, sampleRateHertz_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, sampleRateHertz_); } { int dataSize = 0; @@ -378,27 +445,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.texttospeech.v1.AudioConfig)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1.AudioConfig other = (com.google.cloud.texttospeech.v1.AudioConfig) obj; + com.google.cloud.texttospeech.v1.AudioConfig other = + (com.google.cloud.texttospeech.v1.AudioConfig) obj; if (audioEncoding_ != other.audioEncoding_) return false; if (java.lang.Double.doubleToLongBits(getSpeakingRate()) - != java.lang.Double.doubleToLongBits( - other.getSpeakingRate())) return false; + != java.lang.Double.doubleToLongBits(other.getSpeakingRate())) return false; if (java.lang.Double.doubleToLongBits(getPitch()) - != java.lang.Double.doubleToLongBits( - other.getPitch())) return false; + != java.lang.Double.doubleToLongBits(other.getPitch())) return false; if (java.lang.Double.doubleToLongBits(getVolumeGainDb()) - != java.lang.Double.doubleToLongBits( - other.getVolumeGainDb())) return false; - if (getSampleRateHertz() - != other.getSampleRateHertz()) return false; - if (!getEffectsProfileIdList() - .equals(other.getEffectsProfileIdList())) return false; + != java.lang.Double.doubleToLongBits(other.getVolumeGainDb())) return false; + if (getSampleRateHertz() != other.getSampleRateHertz()) return false; + if (!getEffectsProfileIdList().equals(other.getEffectsProfileIdList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -413,14 +476,19 @@ public int hashCode() { hash = (37 * hash) + AUDIO_ENCODING_FIELD_NUMBER; hash = (53 * hash) + audioEncoding_; hash = (37 * hash) + SPEAKING_RATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getSpeakingRate())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSpeakingRate())); hash = (37 * hash) + PITCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getPitch())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getPitch())); hash = (37 * hash) + VOLUME_GAIN_DB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVolumeGainDb())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVolumeGainDb())); hash = (37 * hash) + SAMPLE_RATE_HERTZ_FIELD_NUMBER; hash = (53 * hash) + getSampleRateHertz(); if (getEffectsProfileIdCount() > 0) { @@ -432,118 +500,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.AudioConfig 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.texttospeech.v1.AudioConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.AudioConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1.AudioConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.AudioConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.AudioConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.texttospeech.v1.AudioConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Description of audio data to be synthesized.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1.AudioConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.AudioConfig) com.google.cloud.texttospeech.v1.AudioConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_AudioConfig_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_AudioConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.AudioConfig.class, com.google.cloud.texttospeech.v1.AudioConfig.Builder.class); + com.google.cloud.texttospeech.v1.AudioConfig.class, + com.google.cloud.texttospeech.v1.AudioConfig.Builder.class); } // Construct using com.google.cloud.texttospeech.v1.AudioConfig.newBuilder() @@ -551,16 +628,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(); @@ -580,9 +656,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor; } @java.lang.Override @@ -601,7 +677,8 @@ public com.google.cloud.texttospeech.v1.AudioConfig build() { @java.lang.Override public com.google.cloud.texttospeech.v1.AudioConfig buildPartial() { - com.google.cloud.texttospeech.v1.AudioConfig result = new com.google.cloud.texttospeech.v1.AudioConfig(this); + com.google.cloud.texttospeech.v1.AudioConfig result = + new com.google.cloud.texttospeech.v1.AudioConfig(this); int from_bitField0_ = bitField0_; result.audioEncoding_ = audioEncoding_; result.speakingRate_ = speakingRate_; @@ -621,38 +698,39 @@ public com.google.cloud.texttospeech.v1.AudioConfig 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.texttospeech.v1.AudioConfig) { - return mergeFrom((com.google.cloud.texttospeech.v1.AudioConfig)other); + return mergeFrom((com.google.cloud.texttospeech.v1.AudioConfig) other); } else { super.mergeFrom(other); return this; @@ -714,55 +792,78 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private int audioEncoding_ = 0; /** + * + * *
      * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for audioEncoding. */ - @java.lang.Override public int getAudioEncodingValue() { + @java.lang.Override + public int getAudioEncodingValue() { return audioEncoding_; } /** + * + * *
      * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for audioEncoding to set. * @return This builder for chaining. */ public Builder setAudioEncodingValue(int value) { - + audioEncoding_ = value; onChanged(); return this; } /** + * + * *
      * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audioEncoding. */ @java.lang.Override public com.google.cloud.texttospeech.v1.AudioEncoding getAudioEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1.AudioEncoding result = com.google.cloud.texttospeech.v1.AudioEncoding.valueOf(audioEncoding_); + com.google.cloud.texttospeech.v1.AudioEncoding result = + com.google.cloud.texttospeech.v1.AudioEncoding.valueOf(audioEncoding_); return result == null ? com.google.cloud.texttospeech.v1.AudioEncoding.UNRECOGNIZED : result; } /** + * + * *
      * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The audioEncoding to set. * @return This builder for chaining. */ @@ -770,28 +871,35 @@ public Builder setAudioEncoding(com.google.cloud.texttospeech.v1.AudioEncoding v if (value == null) { throw new NullPointerException(); } - + audioEncoding_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearAudioEncoding() { - + audioEncoding_ = 0; onChanged(); return this; } - private double speakingRate_ ; + private double speakingRate_; /** + * + * *
      * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
      * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -799,7 +907,10 @@ public Builder clearAudioEncoding() {
      * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The speakingRate. */ @java.lang.Override @@ -807,6 +918,8 @@ public double getSpeakingRate() { return speakingRate_; } /** + * + * *
      * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
      * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -814,17 +927,22 @@ public double getSpeakingRate() {
      * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The speakingRate to set. * @return This builder for chaining. */ public Builder setSpeakingRate(double value) { - + speakingRate_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
      * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -832,25 +950,33 @@ public Builder setSpeakingRate(double value) {
      * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearSpeakingRate() { - + speakingRate_ = 0D; onChanged(); return this; } - private double pitch_ ; + private double pitch_; /** + * + * *
      * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
      * increase 20 semitones from the original pitch. -20 means decrease 20
      * semitones from the original pitch.
      * 
* - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pitch. */ @java.lang.Override @@ -858,41 +984,53 @@ public double getPitch() { return pitch_; } /** + * + * *
      * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
      * increase 20 semitones from the original pitch. -20 means decrease 20
      * semitones from the original pitch.
      * 
* - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The pitch to set. * @return This builder for chaining. */ public Builder setPitch(double value) { - + pitch_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
      * increase 20 semitones from the original pitch. -20 means decrease 20
      * semitones from the original pitch.
      * 
* - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearPitch() { - + pitch_ = 0D; onChanged(); return this; } - private double volumeGainDb_ ; + private double volumeGainDb_; /** + * + * *
      * Optional. Input only. Volume gain (in dB) of the normal native volume
      * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -904,7 +1042,10 @@ public Builder clearPitch() {
      * increase in loudness for any value greater than that.
      * 
* - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The volumeGainDb. */ @java.lang.Override @@ -912,6 +1053,8 @@ public double getVolumeGainDb() { return volumeGainDb_; } /** + * + * *
      * Optional. Input only. Volume gain (in dB) of the normal native volume
      * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -923,17 +1066,22 @@ public double getVolumeGainDb() {
      * increase in loudness for any value greater than that.
      * 
* - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The volumeGainDb to set. * @return This builder for chaining. */ public Builder setVolumeGainDb(double value) { - + volumeGainDb_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Input only. Volume gain (in dB) of the normal native volume
      * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -945,18 +1093,23 @@ public Builder setVolumeGainDb(double value) {
      * increase in loudness for any value greater than that.
      * 
* - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearVolumeGainDb() { - + volumeGainDb_ = 0D; onChanged(); return this; } - private int sampleRateHertz_ ; + private int sampleRateHertz_; /** + * + * *
      * Optional. The synthesis sample rate (in hertz) for this audio. When this is
      * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -968,6 +1121,7 @@ public Builder clearVolumeGainDb() {
      * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -975,6 +1129,8 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** + * + * *
      * Optional. The synthesis sample rate (in hertz) for this audio. When this is
      * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -986,16 +1142,19 @@ public int getSampleRateHertz() {
      * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The sampleRateHertz to set. * @return This builder for chaining. */ public Builder setSampleRateHertz(int value) { - + sampleRateHertz_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The synthesis sample rate (in hertz) for this audio. When this is
      * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -1007,23 +1166,28 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + sampleRateHertz_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList effectsProfileId_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureEffectsProfileIdIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(effectsProfileId_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1033,14 +1197,18 @@ private void ensureEffectsProfileIdIsMutable() {
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the effectsProfileId. */ - public com.google.protobuf.ProtocolStringList - getEffectsProfileIdList() { + public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { return effectsProfileId_.getUnmodifiableView(); } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1050,13 +1218,18 @@ private void ensureEffectsProfileIdIsMutable() {
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of effectsProfileId. */ public int getEffectsProfileIdCount() { return effectsProfileId_.size(); } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1066,7 +1239,10 @@ public int getEffectsProfileIdCount() {
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The effectsProfileId at the given index. */ @@ -1074,6 +1250,8 @@ public java.lang.String getEffectsProfileId(int index) { return effectsProfileId_.get(index); } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1083,15 +1261,19 @@ public java.lang.String getEffectsProfileId(int index) {
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. */ - public com.google.protobuf.ByteString - getEffectsProfileIdBytes(int index) { + public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { return effectsProfileId_.getByteString(index); } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1101,22 +1283,26 @@ public java.lang.String getEffectsProfileId(int index) {
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The effectsProfileId to set. * @return This builder for chaining. */ - public Builder setEffectsProfileId( - int index, java.lang.String value) { + public Builder setEffectsProfileId(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEffectsProfileIdIsMutable(); + throw new NullPointerException(); + } + ensureEffectsProfileIdIsMutable(); effectsProfileId_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1126,21 +1312,25 @@ public Builder setEffectsProfileId(
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The effectsProfileId to add. * @return This builder for chaining. */ - public Builder addEffectsProfileId( - java.lang.String value) { + public Builder addEffectsProfileId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEffectsProfileIdIsMutable(); + throw new NullPointerException(); + } + ensureEffectsProfileIdIsMutable(); effectsProfileId_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1150,19 +1340,22 @@ public Builder addEffectsProfileId(
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The effectsProfileId to add. * @return This builder for chaining. */ - public Builder addAllEffectsProfileId( - java.lang.Iterable values) { + public Builder addAllEffectsProfileId(java.lang.Iterable values) { ensureEffectsProfileIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, effectsProfileId_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, effectsProfileId_); onChanged(); return this; } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1172,7 +1365,10 @@ public Builder addAllEffectsProfileId(
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEffectsProfileId() { @@ -1182,6 +1378,8 @@ public Builder clearEffectsProfileId() { return this; } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1191,24 +1389,26 @@ public Builder clearEffectsProfileId() {
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the effectsProfileId to add. * @return This builder for chaining. */ - public Builder addEffectsProfileIdBytes( - com.google.protobuf.ByteString value) { + public Builder addEffectsProfileIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureEffectsProfileIdIsMutable(); effectsProfileId_.add(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); } @@ -1218,12 +1418,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.AudioConfig) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.AudioConfig) private static final com.google.cloud.texttospeech.v1.AudioConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.AudioConfig(); } @@ -1232,16 +1432,16 @@ public static com.google.cloud.texttospeech.v1.AudioConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AudioConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AudioConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudioConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AudioConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1256,6 +1456,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1.AudioConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java index 7d68240c..66496ef0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java @@ -1,32 +1,60 @@ +/* + * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; -public interface AudioConfigOrBuilder extends +public interface AudioConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.AudioConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The format of the audio byte stream.
    * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for audioEncoding. */ int getAudioEncodingValue(); /** + * + * *
    * Required. The format of the audio byte stream.
    * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audioEncoding. */ com.google.cloud.texttospeech.v1.AudioEncoding getAudioEncoding(); /** + * + * *
    * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
    * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -34,24 +62,34 @@ public interface AudioConfigOrBuilder extends
    * speed. Any other values < 0.25 or > 4.0 will return an error.
    * 
* - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The speakingRate. */ double getSpeakingRate(); /** + * + * *
    * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
    * increase 20 semitones from the original pitch. -20 means decrease 20
    * semitones from the original pitch.
    * 
* - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pitch. */ double getPitch(); /** + * + * *
    * Optional. Input only. Volume gain (in dB) of the normal native volume
    * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -63,12 +101,17 @@ public interface AudioConfigOrBuilder extends
    * increase in loudness for any value greater than that.
    * 
* - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The volumeGainDb. */ double getVolumeGainDb(); /** + * + * *
    * Optional. The synthesis sample rate (in hertz) for this audio. When this is
    * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -80,11 +123,14 @@ public interface AudioConfigOrBuilder extends
    * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** + * + * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -94,12 +140,16 @@ public interface AudioConfigOrBuilder extends
    * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the effectsProfileId. */ - java.util.List - getEffectsProfileIdList(); + java.util.List getEffectsProfileIdList(); /** + * + * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -109,11 +159,16 @@ public interface AudioConfigOrBuilder extends
    * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of effectsProfileId. */ int getEffectsProfileIdCount(); /** + * + * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -123,12 +178,17 @@ public interface AudioConfigOrBuilder extends
    * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The effectsProfileId at the given index. */ java.lang.String getEffectsProfileId(int index); /** + * + * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -138,10 +198,12 @@ public interface AudioConfigOrBuilder extends
    * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. */ - com.google.protobuf.ByteString - getEffectsProfileIdBytes(int index); + com.google.protobuf.ByteString getEffectsProfileIdBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java index 7f1b5ddf..7ce191e9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** + * + * *
  * Configuration to set up audio encoder. The encoding determines the output
  * audio format that we'd like.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.texttospeech.v1.AudioEncoding}
  */
-public enum AudioEncoding
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
    * 
@@ -22,6 +40,8 @@ public enum AudioEncoding */ AUDIO_ENCODING_UNSPECIFIED(0), /** + * + * *
    * Uncompressed 16-bit signed little-endian samples (Linear PCM).
    * Audio content returned as LINEAR16 also contains a WAV header.
@@ -31,6 +51,8 @@ public enum AudioEncoding
    */
   LINEAR16(1),
   /**
+   *
+   *
    * 
    * MP3 audio at 32kbps.
    * 
@@ -39,6 +61,8 @@ public enum AudioEncoding */ MP3(2), /** + * + * *
    * Opus encoded audio wrapped in an ogg container. The result will be a
    * file which can be played natively on Android, and in browsers (at least
@@ -50,6 +74,8 @@ public enum AudioEncoding
    */
   OGG_OPUS(3),
   /**
+   *
+   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
    * Audio content returned as MULAW also contains a WAV header.
@@ -59,6 +85,8 @@ public enum AudioEncoding
    */
   MULAW(5),
   /**
+   *
+   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law.
    * Audio content returned as ALAW also contains a WAV header.
@@ -71,6 +99,8 @@ public enum AudioEncoding
   ;
 
   /**
+   *
+   *
    * 
    * Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
    * 
@@ -79,6 +109,8 @@ public enum AudioEncoding */ public static final int AUDIO_ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Uncompressed 16-bit signed little-endian samples (Linear PCM).
    * Audio content returned as LINEAR16 also contains a WAV header.
@@ -88,6 +120,8 @@ public enum AudioEncoding
    */
   public static final int LINEAR16_VALUE = 1;
   /**
+   *
+   *
    * 
    * MP3 audio at 32kbps.
    * 
@@ -96,6 +130,8 @@ public enum AudioEncoding */ public static final int MP3_VALUE = 2; /** + * + * *
    * Opus encoded audio wrapped in an ogg container. The result will be a
    * file which can be played natively on Android, and in browsers (at least
@@ -107,6 +143,8 @@ public enum AudioEncoding
    */
   public static final int OGG_OPUS_VALUE = 3;
   /**
+   *
+   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
    * Audio content returned as MULAW also contains a WAV header.
@@ -116,6 +154,8 @@ public enum AudioEncoding
    */
   public static final int MULAW_VALUE = 5;
   /**
+   *
+   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law.
    * Audio content returned as ALAW also contains a WAV header.
@@ -125,7 +165,6 @@ public enum AudioEncoding
    */
   public static final int ALAW_VALUE = 6;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -150,52 +189,55 @@ public static AudioEncoding valueOf(int value) {
    */
   public static AudioEncoding forNumber(int value) {
     switch (value) {
-      case 0: return AUDIO_ENCODING_UNSPECIFIED;
-      case 1: return LINEAR16;
-      case 2: return MP3;
-      case 3: return OGG_OPUS;
-      case 5: return MULAW;
-      case 6: return ALAW;
-      default: return null;
+      case 0:
+        return AUDIO_ENCODING_UNSPECIFIED;
+      case 1:
+        return LINEAR16;
+      case 2:
+        return MP3;
+      case 3:
+        return OGG_OPUS;
+      case 5:
+        return MULAW;
+      case 6:
+        return ALAW;
+      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<
-      AudioEncoding> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public AudioEncoding findValueByNumber(int number) {
-            return AudioEncoding.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 AudioEncoding findValueByNumber(int number) {
+          return AudioEncoding.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() {
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
     return com.google.cloud.texttospeech.v1.TextToSpeechProto.getDescriptor().getEnumTypes().get(1);
   }
 
   private static final AudioEncoding[] VALUES = values();
 
-  public static AudioEncoding valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static AudioEncoding 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;
@@ -211,4 +253,3 @@ private AudioEncoding(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.texttospeech.v1.AudioEncoding)
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java
similarity index 73%
rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java
rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java
index 44bb8e0a..19967c29 100644
--- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java
+++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.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/texttospeech/v1/cloud_tts.proto
 
 package com.google.cloud.texttospeech.v1;
 
 /**
+ *
+ *
  * 
  * The top-level message sent by the client for the `ListVoices` method.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1.ListVoicesRequest} */ -public final class ListVoicesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListVoicesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.ListVoicesRequest) ListVoicesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListVoicesRequest.newBuilder() to construct. private ListVoicesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListVoicesRequest() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListVoicesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListVoicesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private ListVoicesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = 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.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.ListVoicesRequest.class, com.google.cloud.texttospeech.v1.ListVoicesRequest.Builder.class); + com.google.cloud.texttospeech.v1.ListVoicesRequest.class, + com.google.cloud.texttospeech.v1.ListVoicesRequest.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** + * + * *
    * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -106,6 +128,7 @@ private ListVoicesRequest(
    * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ @java.lang.Override @@ -114,14 +137,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; } } /** + * + * *
    * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -134,16 +158,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -152,6 +175,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,8 +187,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_); } @@ -188,15 +211,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.texttospeech.v1.ListVoicesRequest)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1.ListVoicesRequest other = (com.google.cloud.texttospeech.v1.ListVoicesRequest) obj; + com.google.cloud.texttospeech.v1.ListVoicesRequest other = + (com.google.cloud.texttospeech.v1.ListVoicesRequest) obj; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -216,117 +239,126 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.ListVoicesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.texttospeech.v1.ListVoicesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 top-level message sent by the client for the `ListVoices` method.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1.ListVoicesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.ListVoicesRequest) com.google.cloud.texttospeech.v1.ListVoicesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.ListVoicesRequest.class, com.google.cloud.texttospeech.v1.ListVoicesRequest.Builder.class); + com.google.cloud.texttospeech.v1.ListVoicesRequest.class, + com.google.cloud.texttospeech.v1.ListVoicesRequest.Builder.class); } // Construct using com.google.cloud.texttospeech.v1.ListVoicesRequest.newBuilder() @@ -334,16 +366,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(); @@ -353,9 +384,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor; } @java.lang.Override @@ -374,7 +405,8 @@ public com.google.cloud.texttospeech.v1.ListVoicesRequest build() { @java.lang.Override public com.google.cloud.texttospeech.v1.ListVoicesRequest buildPartial() { - com.google.cloud.texttospeech.v1.ListVoicesRequest result = new com.google.cloud.texttospeech.v1.ListVoicesRequest(this); + com.google.cloud.texttospeech.v1.ListVoicesRequest result = + new com.google.cloud.texttospeech.v1.ListVoicesRequest(this); result.languageCode_ = languageCode_; onBuilt(); return result; @@ -384,38 +416,39 @@ public com.google.cloud.texttospeech.v1.ListVoicesRequest 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.texttospeech.v1.ListVoicesRequest) { - return mergeFrom((com.google.cloud.texttospeech.v1.ListVoicesRequest)other); + return mergeFrom((com.google.cloud.texttospeech.v1.ListVoicesRequest) other); } else { super.mergeFrom(other); return this; @@ -423,7 +456,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1.ListVoicesRequest other) { - if (other == com.google.cloud.texttospeech.v1.ListVoicesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.texttospeech.v1.ListVoicesRequest.getDefaultInstance()) + return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -447,7 +481,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.texttospeech.v1.ListVoicesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.texttospeech.v1.ListVoicesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -459,6 +494,8 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** + * + * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -471,13 +508,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -486,6 +523,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -498,15 +537,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -514,6 +552,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -526,20 +566,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -552,15 +594,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -573,23 +618,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -599,12 +644,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.ListVoicesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.ListVoicesRequest) private static final com.google.cloud.texttospeech.v1.ListVoicesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.ListVoicesRequest(); } @@ -613,16 +658,16 @@ public static com.google.cloud.texttospeech.v1.ListVoicesRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVoicesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVoicesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVoicesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVoicesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -637,6 +682,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1.ListVoicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java index b7a0b03b..ce0b67b6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; -public interface ListVoicesRequestOrBuilder extends +public interface ListVoicesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.ListVoicesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -20,10 +38,13 @@ public interface ListVoicesRequestOrBuilder extends
    * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
@@ -36,8 +57,8 @@ public interface ListVoicesRequestOrBuilder extends
    * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponse.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponse.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponse.java rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponse.java index 86ce198d..17e86d99 100644 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponse.java +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponse.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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** + * + * *
  * The message returned to the client by the `ListVoices` method.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1.ListVoicesResponse} */ -public final class ListVoicesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListVoicesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.ListVoicesResponse) ListVoicesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListVoicesResponse.newBuilder() to construct. private ListVoicesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListVoicesResponse() { voices_ = 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 ListVoicesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListVoicesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,29 +71,30 @@ private ListVoicesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - voices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + voices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + voices_.add( + input.readMessage( + com.google.cloud.texttospeech.v1.Voice.parser(), extensionRegistry)); + break; } - voices_.add( - input.readMessage(com.google.cloud.texttospeech.v1.Voice.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)) { voices_ = java.util.Collections.unmodifiableList(voices_); @@ -85,22 +103,27 @@ private ListVoicesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.ListVoicesResponse.class, com.google.cloud.texttospeech.v1.ListVoicesResponse.Builder.class); + com.google.cloud.texttospeech.v1.ListVoicesResponse.class, + com.google.cloud.texttospeech.v1.ListVoicesResponse.Builder.class); } public static final int VOICES_FIELD_NUMBER = 1; private java.util.List voices_; /** + * + * *
    * The list of voices.
    * 
@@ -112,6 +135,8 @@ public java.util.List getVoicesList() { return voices_; } /** + * + * *
    * The list of voices.
    * 
@@ -119,11 +144,13 @@ public java.util.List getVoicesList() { * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVoicesOrBuilderList() { return voices_; } /** + * + * *
    * The list of voices.
    * 
@@ -135,6 +162,8 @@ public int getVoicesCount() { return voices_.size(); } /** + * + * *
    * The list of voices.
    * 
@@ -146,6 +175,8 @@ public com.google.cloud.texttospeech.v1.Voice getVoices(int index) { return voices_.get(index); } /** + * + * *
    * The list of voices.
    * 
@@ -153,12 +184,12 @@ public com.google.cloud.texttospeech.v1.Voice getVoices(int index) { * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ @java.lang.Override - public com.google.cloud.texttospeech.v1.VoiceOrBuilder getVoicesOrBuilder( - int index) { + public com.google.cloud.texttospeech.v1.VoiceOrBuilder getVoicesOrBuilder(int index) { return voices_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +201,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 < voices_.size(); i++) { output.writeMessage(1, voices_.get(i)); } @@ -185,8 +215,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < voices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, voices_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, voices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -196,15 +225,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.texttospeech.v1.ListVoicesResponse)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1.ListVoicesResponse other = (com.google.cloud.texttospeech.v1.ListVoicesResponse) obj; + com.google.cloud.texttospeech.v1.ListVoicesResponse other = + (com.google.cloud.texttospeech.v1.ListVoicesResponse) obj; - if (!getVoicesList() - .equals(other.getVoicesList())) return false; + if (!getVoicesList().equals(other.getVoicesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -226,117 +255,126 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.ListVoicesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.texttospeech.v1.ListVoicesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message returned to the client by the `ListVoices` method.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1.ListVoicesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.ListVoicesResponse) com.google.cloud.texttospeech.v1.ListVoicesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.ListVoicesResponse.class, com.google.cloud.texttospeech.v1.ListVoicesResponse.Builder.class); + com.google.cloud.texttospeech.v1.ListVoicesResponse.class, + com.google.cloud.texttospeech.v1.ListVoicesResponse.Builder.class); } // Construct using com.google.cloud.texttospeech.v1.ListVoicesResponse.newBuilder() @@ -344,17 +382,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) { getVoicesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -368,9 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor; } @java.lang.Override @@ -389,7 +427,8 @@ public com.google.cloud.texttospeech.v1.ListVoicesResponse build() { @java.lang.Override public com.google.cloud.texttospeech.v1.ListVoicesResponse buildPartial() { - com.google.cloud.texttospeech.v1.ListVoicesResponse result = new com.google.cloud.texttospeech.v1.ListVoicesResponse(this); + com.google.cloud.texttospeech.v1.ListVoicesResponse result = + new com.google.cloud.texttospeech.v1.ListVoicesResponse(this); int from_bitField0_ = bitField0_; if (voicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -408,38 +447,39 @@ public com.google.cloud.texttospeech.v1.ListVoicesResponse 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.texttospeech.v1.ListVoicesResponse) { - return mergeFrom((com.google.cloud.texttospeech.v1.ListVoicesResponse)other); + return mergeFrom((com.google.cloud.texttospeech.v1.ListVoicesResponse) other); } else { super.mergeFrom(other); return this; @@ -447,7 +487,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1.ListVoicesResponse other) { - if (other == com.google.cloud.texttospeech.v1.ListVoicesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.texttospeech.v1.ListVoicesResponse.getDefaultInstance()) + return this; if (voicesBuilder_ == null) { if (!other.voices_.isEmpty()) { if (voices_.isEmpty()) { @@ -466,9 +507,10 @@ public Builder mergeFrom(com.google.cloud.texttospeech.v1.ListVoicesResponse oth voicesBuilder_ = null; voices_ = other.voices_; bitField0_ = (bitField0_ & ~0x00000001); - voicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVoicesFieldBuilder() : null; + voicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVoicesFieldBuilder() + : null; } else { voicesBuilder_.addAllMessages(other.voices_); } @@ -493,7 +535,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.texttospeech.v1.ListVoicesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.texttospeech.v1.ListVoicesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -502,21 +545,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List voices_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVoicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { voices_ = new java.util.ArrayList(voices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.texttospeech.v1.Voice, com.google.cloud.texttospeech.v1.Voice.Builder, com.google.cloud.texttospeech.v1.VoiceOrBuilder> voicesBuilder_; + com.google.cloud.texttospeech.v1.Voice, + com.google.cloud.texttospeech.v1.Voice.Builder, + com.google.cloud.texttospeech.v1.VoiceOrBuilder> + voicesBuilder_; /** + * + * *
      * The list of voices.
      * 
@@ -531,6 +581,8 @@ public java.util.List getVoicesList() { } } /** + * + * *
      * The list of voices.
      * 
@@ -545,6 +597,8 @@ public int getVoicesCount() { } } /** + * + * *
      * The list of voices.
      * 
@@ -559,14 +613,15 @@ public com.google.cloud.texttospeech.v1.Voice getVoices(int index) { } } /** + * + * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - public Builder setVoices( - int index, com.google.cloud.texttospeech.v1.Voice value) { + public Builder setVoices(int index, com.google.cloud.texttospeech.v1.Voice value) { if (voicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -580,6 +635,8 @@ public Builder setVoices( return this; } /** + * + * *
      * The list of voices.
      * 
@@ -598,6 +655,8 @@ public Builder setVoices( return this; } /** + * + * *
      * The list of voices.
      * 
@@ -618,14 +677,15 @@ public Builder addVoices(com.google.cloud.texttospeech.v1.Voice value) { return this; } /** + * + * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - public Builder addVoices( - int index, com.google.cloud.texttospeech.v1.Voice value) { + public Builder addVoices(int index, com.google.cloud.texttospeech.v1.Voice value) { if (voicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -639,14 +699,15 @@ public Builder addVoices( return this; } /** + * + * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - public Builder addVoices( - com.google.cloud.texttospeech.v1.Voice.Builder builderForValue) { + public Builder addVoices(com.google.cloud.texttospeech.v1.Voice.Builder builderForValue) { if (voicesBuilder_ == null) { ensureVoicesIsMutable(); voices_.add(builderForValue.build()); @@ -657,6 +718,8 @@ public Builder addVoices( return this; } /** + * + * *
      * The list of voices.
      * 
@@ -675,6 +738,8 @@ public Builder addVoices( return this; } /** + * + * *
      * The list of voices.
      * 
@@ -685,8 +750,7 @@ public Builder addAllVoices( java.lang.Iterable values) { if (voicesBuilder_ == null) { ensureVoicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, voices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, voices_); onChanged(); } else { voicesBuilder_.addAllMessages(values); @@ -694,6 +758,8 @@ public Builder addAllVoices( return this; } /** + * + * *
      * The list of voices.
      * 
@@ -711,6 +777,8 @@ public Builder clearVoices() { return this; } /** + * + * *
      * The list of voices.
      * 
@@ -728,39 +796,44 @@ public Builder removeVoices(int index) { return this; } /** + * + * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - public com.google.cloud.texttospeech.v1.Voice.Builder getVoicesBuilder( - int index) { + public com.google.cloud.texttospeech.v1.Voice.Builder getVoicesBuilder(int index) { return getVoicesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - public com.google.cloud.texttospeech.v1.VoiceOrBuilder getVoicesOrBuilder( - int index) { + public com.google.cloud.texttospeech.v1.VoiceOrBuilder getVoicesOrBuilder(int index) { if (voicesBuilder_ == null) { - return voices_.get(index); } else { + return voices_.get(index); + } else { return voicesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - public java.util.List - getVoicesOrBuilderList() { + public java.util.List + getVoicesOrBuilderList() { if (voicesBuilder_ != null) { return voicesBuilder_.getMessageOrBuilderList(); } else { @@ -768,6 +841,8 @@ public com.google.cloud.texttospeech.v1.VoiceOrBuilder getVoicesOrBuilder( } } /** + * + * *
      * The list of voices.
      * 
@@ -775,49 +850,54 @@ public com.google.cloud.texttospeech.v1.VoiceOrBuilder getVoicesOrBuilder( * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ public com.google.cloud.texttospeech.v1.Voice.Builder addVoicesBuilder() { - return getVoicesFieldBuilder().addBuilder( - com.google.cloud.texttospeech.v1.Voice.getDefaultInstance()); + return getVoicesFieldBuilder() + .addBuilder(com.google.cloud.texttospeech.v1.Voice.getDefaultInstance()); } /** + * + * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - public com.google.cloud.texttospeech.v1.Voice.Builder addVoicesBuilder( - int index) { - return getVoicesFieldBuilder().addBuilder( - index, com.google.cloud.texttospeech.v1.Voice.getDefaultInstance()); + public com.google.cloud.texttospeech.v1.Voice.Builder addVoicesBuilder(int index) { + return getVoicesFieldBuilder() + .addBuilder(index, com.google.cloud.texttospeech.v1.Voice.getDefaultInstance()); } /** + * + * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - public java.util.List - getVoicesBuilderList() { + public java.util.List getVoicesBuilderList() { return getVoicesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.texttospeech.v1.Voice, com.google.cloud.texttospeech.v1.Voice.Builder, com.google.cloud.texttospeech.v1.VoiceOrBuilder> + com.google.cloud.texttospeech.v1.Voice, + com.google.cloud.texttospeech.v1.Voice.Builder, + com.google.cloud.texttospeech.v1.VoiceOrBuilder> getVoicesFieldBuilder() { if (voicesBuilder_ == null) { - voicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.texttospeech.v1.Voice, com.google.cloud.texttospeech.v1.Voice.Builder, com.google.cloud.texttospeech.v1.VoiceOrBuilder>( - voices_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + voicesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.texttospeech.v1.Voice, + com.google.cloud.texttospeech.v1.Voice.Builder, + com.google.cloud.texttospeech.v1.VoiceOrBuilder>( + voices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); voices_ = null; } return voicesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -827,12 +907,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.ListVoicesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.ListVoicesResponse) private static final com.google.cloud.texttospeech.v1.ListVoicesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.ListVoicesResponse(); } @@ -841,16 +921,16 @@ public static com.google.cloud.texttospeech.v1.ListVoicesResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVoicesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVoicesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVoicesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVoicesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -865,6 +945,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1.ListVoicesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponseOrBuilder.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponseOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponseOrBuilder.java rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponseOrBuilder.java index 253480e2..e53e081d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponseOrBuilder.java +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesResponseOrBuilder.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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; -public interface ListVoicesResponseOrBuilder extends +public interface ListVoicesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.ListVoicesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of voices.
    * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - java.util.List - getVoicesList(); + java.util.List getVoicesList(); /** + * + * *
    * The list of voices.
    * 
@@ -25,6 +44,8 @@ public interface ListVoicesResponseOrBuilder extends */ com.google.cloud.texttospeech.v1.Voice getVoices(int index); /** + * + * *
    * The list of voices.
    * 
@@ -33,21 +54,24 @@ public interface ListVoicesResponseOrBuilder extends */ int getVoicesCount(); /** + * + * *
    * The list of voices.
    * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - java.util.List + java.util.List getVoicesOrBuilderList(); /** + * + * *
    * The list of voices.
    * 
* * repeated .google.cloud.texttospeech.v1.Voice voices = 1; */ - com.google.cloud.texttospeech.v1.VoiceOrBuilder getVoicesOrBuilder( - int index); + com.google.cloud.texttospeech.v1.VoiceOrBuilder getVoicesOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SsmlVoiceGender.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SsmlVoiceGender.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SsmlVoiceGender.java rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SsmlVoiceGender.java index ada2d31b..a0a37bdc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SsmlVoiceGender.java +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SsmlVoiceGender.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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** + * + * *
  * Gender of the voice as described in
  * [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.texttospeech.v1.SsmlVoiceGender}
  */
-public enum SsmlVoiceGender
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * An unspecified gender.
    * In VoiceSelectionParams, this means that the client doesn't care which
@@ -26,6 +44,8 @@ public enum SsmlVoiceGender
    */
   SSML_VOICE_GENDER_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * A male voice.
    * 
@@ -34,6 +54,8 @@ public enum SsmlVoiceGender */ MALE(1), /** + * + * *
    * A female voice.
    * 
@@ -42,6 +64,8 @@ public enum SsmlVoiceGender */ FEMALE(2), /** + * + * *
    * A gender-neutral voice. This voice is not yet supported.
    * 
@@ -53,6 +77,8 @@ public enum SsmlVoiceGender ; /** + * + * *
    * An unspecified gender.
    * In VoiceSelectionParams, this means that the client doesn't care which
@@ -65,6 +91,8 @@ public enum SsmlVoiceGender
    */
   public static final int SSML_VOICE_GENDER_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * A male voice.
    * 
@@ -73,6 +101,8 @@ public enum SsmlVoiceGender */ public static final int MALE_VALUE = 1; /** + * + * *
    * A female voice.
    * 
@@ -81,6 +111,8 @@ public enum SsmlVoiceGender */ public static final int FEMALE_VALUE = 2; /** + * + * *
    * A gender-neutral voice. This voice is not yet supported.
    * 
@@ -89,7 +121,6 @@ public enum SsmlVoiceGender */ public static final int NEUTRAL_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -114,50 +145,51 @@ public static SsmlVoiceGender valueOf(int value) { */ public static SsmlVoiceGender forNumber(int value) { switch (value) { - case 0: return SSML_VOICE_GENDER_UNSPECIFIED; - case 1: return MALE; - case 2: return FEMALE; - case 3: return NEUTRAL; - default: return null; + case 0: + return SSML_VOICE_GENDER_UNSPECIFIED; + case 1: + return MALE; + case 2: + return FEMALE; + case 3: + return NEUTRAL; + 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< - SsmlVoiceGender> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SsmlVoiceGender findValueByNumber(int number) { - return SsmlVoiceGender.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 SsmlVoiceGender findValueByNumber(int number) { + return SsmlVoiceGender.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() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.texttospeech.v1.TextToSpeechProto.getDescriptor().getEnumTypes().get(0); } private static final SsmlVoiceGender[] VALUES = values(); - public static SsmlVoiceGender valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SsmlVoiceGender 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; @@ -173,4 +205,3 @@ private SsmlVoiceGender(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.texttospeech.v1.SsmlVoiceGender) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java index c0bf7a0b..8cfc897d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.java +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInput.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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** + * + * *
  * Contains text input to be synthesized. Either `text` or `ssml` must be
  * supplied. Supplying both or neither returns
@@ -13,30 +30,29 @@
  *
  * Protobuf type {@code google.cloud.texttospeech.v1.SynthesisInput}
  */
-public final class SynthesisInput extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SynthesisInput extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.SynthesisInput)
     SynthesisInputOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SynthesisInput.newBuilder() to construct.
   private SynthesisInput(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private SynthesisInput() {
-  }
+
+  private SynthesisInput() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SynthesisInput();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SynthesisInput(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,59 +71,66 @@ private SynthesisInput(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-            inputSourceCase_ = 1;
-            inputSource_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            inputSourceCase_ = 2;
-            inputSource_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              inputSourceCase_ = 1;
+              inputSource_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              inputSourceCase_ = 2;
+              inputSource_ = 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.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.texttospeech.v1.TextToSpeechProto
+        .internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesisInput_fieldAccessorTable
+    return com.google.cloud.texttospeech.v1.TextToSpeechProto
+        .internal_static_google_cloud_texttospeech_v1_SynthesisInput_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.texttospeech.v1.SynthesisInput.class, com.google.cloud.texttospeech.v1.SynthesisInput.Builder.class);
+            com.google.cloud.texttospeech.v1.SynthesisInput.class,
+            com.google.cloud.texttospeech.v1.SynthesisInput.Builder.class);
   }
 
   private int inputSourceCase_ = 0;
   private java.lang.Object inputSource_;
+
   public enum InputSourceCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     TEXT(1),
     SSML(2),
     INPUTSOURCE_NOT_SET(0);
     private final int value;
+
     private InputSourceCase(int value) {
       this.value = value;
     }
@@ -123,41 +146,50 @@ public static InputSourceCase valueOf(int value) {
 
     public static InputSourceCase forNumber(int value) {
       switch (value) {
-        case 1: return TEXT;
-        case 2: return SSML;
-        case 0: return INPUTSOURCE_NOT_SET;
-        default: return null;
+        case 1:
+          return TEXT;
+        case 2:
+          return SSML;
+        case 0:
+          return INPUTSOURCE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public InputSourceCase
-  getInputSourceCase() {
-    return InputSourceCase.forNumber(
-        inputSourceCase_);
+  public InputSourceCase getInputSourceCase() {
+    return InputSourceCase.forNumber(inputSourceCase_);
   }
 
   public static final int TEXT_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * The raw text to be synthesized.
    * 
* * string text = 1; + * * @return Whether the text field is set. */ public boolean hasText() { return inputSourceCase_ == 1; } /** + * + * *
    * The raw text to be synthesized.
    * 
* * string text = 1; + * * @return The text. */ public java.lang.String getText() { @@ -168,8 +200,7 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (inputSourceCase_ == 1) { inputSource_ = s; @@ -178,23 +209,24 @@ public java.lang.String getText() { } } /** + * + * *
    * The raw text to be synthesized.
    * 
* * string text = 1; + * * @return The bytes for text. */ - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = ""; if (inputSourceCase_ == 1) { ref = inputSource_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (inputSourceCase_ == 1) { inputSource_ = b; } @@ -206,6 +238,8 @@ public java.lang.String getText() { public static final int SSML_FIELD_NUMBER = 2; /** + * + * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -214,12 +248,15 @@ public java.lang.String getText() {
    * 
* * string ssml = 2; + * * @return Whether the ssml field is set. */ public boolean hasSsml() { return inputSourceCase_ == 2; } /** + * + * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -228,6 +265,7 @@ public boolean hasSsml() {
    * 
* * string ssml = 2; + * * @return The ssml. */ public java.lang.String getSsml() { @@ -238,8 +276,7 @@ public java.lang.String getSsml() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (inputSourceCase_ == 2) { inputSource_ = s; @@ -248,6 +285,8 @@ public java.lang.String getSsml() { } } /** + * + * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -256,18 +295,17 @@ public java.lang.String getSsml() {
    * 
* * string ssml = 2; + * * @return The bytes for ssml. */ - public com.google.protobuf.ByteString - getSsmlBytes() { + public com.google.protobuf.ByteString getSsmlBytes() { java.lang.Object ref = ""; if (inputSourceCase_ == 2) { ref = inputSource_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (inputSourceCase_ == 2) { inputSource_ = b; } @@ -278,6 +316,7 @@ public java.lang.String getSsml() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +328,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 (inputSourceCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputSource_); } @@ -320,22 +358,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.texttospeech.v1.SynthesisInput)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1.SynthesisInput other = (com.google.cloud.texttospeech.v1.SynthesisInput) obj; + com.google.cloud.texttospeech.v1.SynthesisInput other = + (com.google.cloud.texttospeech.v1.SynthesisInput) obj; if (!getInputSourceCase().equals(other.getInputSourceCase())) return false; switch (inputSourceCase_) { case 1: - if (!getText() - .equals(other.getText())) return false; + if (!getText().equals(other.getText())) return false; break; case 2: - if (!getSsml() - .equals(other.getSsml())) return false; + if (!getSsml().equals(other.getSsml())) return false; break; case 0: default: @@ -368,97 +405,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.SynthesisInput 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.texttospeech.v1.SynthesisInput parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.SynthesisInput parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1.SynthesisInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.SynthesisInput parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.SynthesisInput parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.texttospeech.v1.SynthesisInput prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains text input to be synthesized. Either `text` or `ssml` must be
    * supplied. Supplying both or neither returns
@@ -468,21 +512,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.texttospeech.v1.SynthesisInput}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.SynthesisInput)
       com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.texttospeech.v1.TextToSpeechProto
+          .internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesisInput_fieldAccessorTable
+      return com.google.cloud.texttospeech.v1.TextToSpeechProto
+          .internal_static_google_cloud_texttospeech_v1_SynthesisInput_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.texttospeech.v1.SynthesisInput.class, com.google.cloud.texttospeech.v1.SynthesisInput.Builder.class);
+              com.google.cloud.texttospeech.v1.SynthesisInput.class,
+              com.google.cloud.texttospeech.v1.SynthesisInput.Builder.class);
     }
 
     // Construct using com.google.cloud.texttospeech.v1.SynthesisInput.newBuilder()
@@ -490,16 +536,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();
@@ -509,9 +554,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.texttospeech.v1.TextToSpeechProto
+          .internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor;
     }
 
     @java.lang.Override
@@ -530,7 +575,8 @@ public com.google.cloud.texttospeech.v1.SynthesisInput build() {
 
     @java.lang.Override
     public com.google.cloud.texttospeech.v1.SynthesisInput buildPartial() {
-      com.google.cloud.texttospeech.v1.SynthesisInput result = new com.google.cloud.texttospeech.v1.SynthesisInput(this);
+      com.google.cloud.texttospeech.v1.SynthesisInput result =
+          new com.google.cloud.texttospeech.v1.SynthesisInput(this);
       if (inputSourceCase_ == 1) {
         result.inputSource_ = inputSource_;
       }
@@ -546,38 +592,39 @@ public com.google.cloud.texttospeech.v1.SynthesisInput 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.texttospeech.v1.SynthesisInput) {
-        return mergeFrom((com.google.cloud.texttospeech.v1.SynthesisInput)other);
+        return mergeFrom((com.google.cloud.texttospeech.v1.SynthesisInput) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -585,23 +632,27 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.texttospeech.v1.SynthesisInput other) {
-      if (other == com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance()) return this;
+      if (other == com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance())
+        return this;
       switch (other.getInputSourceCase()) {
-        case TEXT: {
-          inputSourceCase_ = 1;
-          inputSource_ = other.inputSource_;
-          onChanged();
-          break;
-        }
-        case SSML: {
-          inputSourceCase_ = 2;
-          inputSource_ = other.inputSource_;
-          onChanged();
-          break;
-        }
-        case INPUTSOURCE_NOT_SET: {
-          break;
-        }
+        case TEXT:
+          {
+            inputSourceCase_ = 1;
+            inputSource_ = other.inputSource_;
+            onChanged();
+            break;
+          }
+        case SSML:
+          {
+            inputSourceCase_ = 2;
+            inputSource_ = other.inputSource_;
+            onChanged();
+            break;
+          }
+        case INPUTSOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -631,12 +682,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int inputSourceCase_ = 0;
     private java.lang.Object inputSource_;
-    public InputSourceCase
-        getInputSourceCase() {
-      return InputSourceCase.forNumber(
-          inputSourceCase_);
+
+    public InputSourceCase getInputSourceCase() {
+      return InputSourceCase.forNumber(inputSourceCase_);
     }
 
     public Builder clearInputSource() {
@@ -646,13 +697,15 @@ public Builder clearInputSource() {
       return this;
     }
 
-
     /**
+     *
+     *
      * 
      * The raw text to be synthesized.
      * 
* * string text = 1; + * * @return Whether the text field is set. */ @java.lang.Override @@ -660,11 +713,14 @@ public boolean hasText() { return inputSourceCase_ == 1; } /** + * + * *
      * The raw text to be synthesized.
      * 
* * string text = 1; + * * @return The text. */ @java.lang.Override @@ -674,8 +730,7 @@ public java.lang.String getText() { ref = inputSource_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (inputSourceCase_ == 1) { inputSource_ = s; @@ -686,24 +741,25 @@ public java.lang.String getText() { } } /** + * + * *
      * The raw text to be synthesized.
      * 
* * string text = 1; + * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = ""; if (inputSourceCase_ == 1) { ref = inputSource_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (inputSourceCase_ == 1) { inputSource_ = b; } @@ -713,30 +769,35 @@ public java.lang.String getText() { } } /** + * + * *
      * The raw text to be synthesized.
      * 
* * string text = 1; + * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText( - java.lang.String value) { + public Builder setText(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - inputSourceCase_ = 1; + throw new NullPointerException(); + } + inputSourceCase_ = 1; inputSource_ = value; onChanged(); return this; } /** + * + * *
      * The raw text to be synthesized.
      * 
* * string text = 1; + * * @return This builder for chaining. */ public Builder clearText() { @@ -748,20 +809,22 @@ public Builder clearText() { return this; } /** + * + * *
      * The raw text to be synthesized.
      * 
* * string text = 1; + * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { + public Builder setTextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); inputSourceCase_ = 1; inputSource_ = value; onChanged(); @@ -769,6 +832,8 @@ public Builder setTextBytes( } /** + * + * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -777,6 +842,7 @@ public Builder setTextBytes(
      * 
* * string ssml = 2; + * * @return Whether the ssml field is set. */ @java.lang.Override @@ -784,6 +850,8 @@ public boolean hasSsml() { return inputSourceCase_ == 2; } /** + * + * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -792,6 +860,7 @@ public boolean hasSsml() {
      * 
* * string ssml = 2; + * * @return The ssml. */ @java.lang.Override @@ -801,8 +870,7 @@ public java.lang.String getSsml() { ref = inputSource_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (inputSourceCase_ == 2) { inputSource_ = s; @@ -813,6 +881,8 @@ public java.lang.String getSsml() { } } /** + * + * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -821,19 +891,18 @@ public java.lang.String getSsml() {
      * 
* * string ssml = 2; + * * @return The bytes for ssml. */ @java.lang.Override - public com.google.protobuf.ByteString - getSsmlBytes() { + public com.google.protobuf.ByteString getSsmlBytes() { java.lang.Object ref = ""; if (inputSourceCase_ == 2) { ref = inputSource_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (inputSourceCase_ == 2) { inputSource_ = b; } @@ -843,6 +912,8 @@ public java.lang.String getSsml() { } } /** + * + * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -851,20 +922,22 @@ public java.lang.String getSsml() {
      * 
* * string ssml = 2; + * * @param value The ssml to set. * @return This builder for chaining. */ - public Builder setSsml( - java.lang.String value) { + public Builder setSsml(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - inputSourceCase_ = 2; + throw new NullPointerException(); + } + inputSourceCase_ = 2; inputSource_ = value; onChanged(); return this; } /** + * + * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -873,6 +946,7 @@ public Builder setSsml(
      * 
* * string ssml = 2; + * * @return This builder for chaining. */ public Builder clearSsml() { @@ -884,6 +958,8 @@ public Builder clearSsml() { return this; } /** + * + * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -892,23 +968,23 @@ public Builder clearSsml() {
      * 
* * string ssml = 2; + * * @param value The bytes for ssml to set. * @return This builder for chaining. */ - public Builder setSsmlBytes( - com.google.protobuf.ByteString value) { + public Builder setSsmlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); inputSourceCase_ = 2; inputSource_ = 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); } @@ -918,12 +994,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.SynthesisInput) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.SynthesisInput) private static final com.google.cloud.texttospeech.v1.SynthesisInput DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.SynthesisInput(); } @@ -932,16 +1008,16 @@ public static com.google.cloud.texttospeech.v1.SynthesisInput getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SynthesisInput parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SynthesisInput(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SynthesisInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SynthesisInput(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -956,6 +1032,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1.SynthesisInput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java index 25c02cd7..412be426 100644 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesisInputOrBuilder.java @@ -1,42 +1,68 @@ +/* + * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; -public interface SynthesisInputOrBuilder extends +public interface SynthesisInputOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.SynthesisInput) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The raw text to be synthesized.
    * 
* * string text = 1; + * * @return Whether the text field is set. */ boolean hasText(); /** + * + * *
    * The raw text to be synthesized.
    * 
* * string text = 1; + * * @return The text. */ java.lang.String getText(); /** + * + * *
    * The raw text to be synthesized.
    * 
* * string text = 1; + * * @return The bytes for text. */ - com.google.protobuf.ByteString - getTextBytes(); + com.google.protobuf.ByteString getTextBytes(); /** + * + * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -45,10 +71,13 @@ public interface SynthesisInputOrBuilder extends
    * 
* * string ssml = 2; + * * @return Whether the ssml field is set. */ boolean hasSsml(); /** + * + * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -57,10 +86,13 @@ public interface SynthesisInputOrBuilder extends
    * 
* * string ssml = 2; + * * @return The ssml. */ java.lang.String getSsml(); /** + * + * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -69,10 +101,10 @@ public interface SynthesisInputOrBuilder extends
    * 
* * string ssml = 2; + * * @return The bytes for ssml. */ - com.google.protobuf.ByteString - getSsmlBytes(); + com.google.protobuf.ByteString getSsmlBytes(); public com.google.cloud.texttospeech.v1.SynthesisInput.InputSourceCase getInputSourceCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java index bba234a1..720752a0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** + * + * *
  * The top-level message sent by the client for the `SynthesizeSpeech` method.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1.SynthesizeSpeechRequest} */ -public final class SynthesizeSpeechRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SynthesizeSpeechRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.SynthesizeSpeechRequest) SynthesizeSpeechRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SynthesizeSpeechRequest.newBuilder() to construct. private SynthesizeSpeechRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SynthesizeSpeechRequest() { - } + + private SynthesizeSpeechRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SynthesizeSpeechRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SynthesizeSpeechRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,85 +68,102 @@ private SynthesizeSpeechRequest( case 0: done = true; break; - case 10: { - com.google.cloud.texttospeech.v1.SynthesisInput.Builder subBuilder = null; - if (input_ != null) { - subBuilder = input_.toBuilder(); - } - input_ = input.readMessage(com.google.cloud.texttospeech.v1.SynthesisInput.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(input_); - input_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.texttospeech.v1.SynthesisInput.Builder subBuilder = null; + if (input_ != null) { + subBuilder = input_.toBuilder(); + } + input_ = + input.readMessage( + com.google.cloud.texttospeech.v1.SynthesisInput.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(input_); + input_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder subBuilder = null; - if (voice_ != null) { - subBuilder = voice_.toBuilder(); - } - voice_ = input.readMessage(com.google.cloud.texttospeech.v1.VoiceSelectionParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(voice_); - voice_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder subBuilder = null; + if (voice_ != null) { + subBuilder = voice_.toBuilder(); + } + voice_ = + input.readMessage( + com.google.cloud.texttospeech.v1.VoiceSelectionParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(voice_); + voice_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.cloud.texttospeech.v1.AudioConfig.Builder subBuilder = null; - if (audioConfig_ != null) { - subBuilder = audioConfig_.toBuilder(); - } - audioConfig_ = input.readMessage(com.google.cloud.texttospeech.v1.AudioConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(audioConfig_); - audioConfig_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.cloud.texttospeech.v1.AudioConfig.Builder subBuilder = null; + if (audioConfig_ != null) { + subBuilder = audioConfig_.toBuilder(); + } + audioConfig_ = + input.readMessage( + com.google.cloud.texttospeech.v1.AudioConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audioConfig_); + audioConfig_ = 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.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.class, com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.Builder.class); + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.class, + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.Builder.class); } public static final int INPUT_FIELD_NUMBER = 1; private com.google.cloud.texttospeech.v1.SynthesisInput input_; /** + * + * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the input field is set. */ @java.lang.Override @@ -138,23 +171,34 @@ public boolean hasInput() { return input_ != null; } /** + * + * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The input. */ @java.lang.Override public com.google.cloud.texttospeech.v1.SynthesisInput getInput() { - return input_ == null ? com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance() : input_; + return input_ == null + ? com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance() + : input_; } /** + * + * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder getInputOrBuilder() { @@ -164,11 +208,16 @@ public com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder getInputOrBuilde public static final int VOICE_FIELD_NUMBER = 2; private com.google.cloud.texttospeech.v1.VoiceSelectionParams voice_; /** + * + * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the voice field is set. */ @java.lang.Override @@ -176,23 +225,34 @@ public boolean hasVoice() { return voice_ != null; } /** + * + * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The voice. */ @java.lang.Override public com.google.cloud.texttospeech.v1.VoiceSelectionParams getVoice() { - return voice_ == null ? com.google.cloud.texttospeech.v1.VoiceSelectionParams.getDefaultInstance() : voice_; + return voice_ == null + ? com.google.cloud.texttospeech.v1.VoiceSelectionParams.getDefaultInstance() + : voice_; } /** + * + * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { @@ -202,11 +262,16 @@ public com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder getVoiceOr public static final int AUDIO_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.texttospeech.v1.AudioConfig audioConfig_; /** + * + * *
    * Required. The configuration of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audioConfig field is set. */ @java.lang.Override @@ -214,23 +279,34 @@ public boolean hasAudioConfig() { return audioConfig_ != null; } /** + * + * *
    * Required. The configuration of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audioConfig. */ @java.lang.Override public com.google.cloud.texttospeech.v1.AudioConfig getAudioConfig() { - return audioConfig_ == null ? com.google.cloud.texttospeech.v1.AudioConfig.getDefaultInstance() : audioConfig_; + return audioConfig_ == null + ? com.google.cloud.texttospeech.v1.AudioConfig.getDefaultInstance() + : audioConfig_; } /** + * + * *
    * Required. The configuration of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.texttospeech.v1.AudioConfigOrBuilder getAudioConfigOrBuilder() { @@ -238,6 +314,7 @@ public com.google.cloud.texttospeech.v1.AudioConfigOrBuilder getAudioConfigOrBui } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,8 +326,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (input_ != null) { output.writeMessage(1, getInput()); } @@ -270,16 +346,13 @@ public int getSerializedSize() { size = 0; if (input_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInput()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInput()); } if (voice_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getVoice()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVoice()); } if (audioConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAudioConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAudioConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -289,27 +362,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.texttospeech.v1.SynthesizeSpeechRequest)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest other = (com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest) obj; + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest other = + (com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest) obj; if (hasInput() != other.hasInput()) return false; if (hasInput()) { - if (!getInput() - .equals(other.getInput())) return false; + if (!getInput().equals(other.getInput())) return false; } if (hasVoice() != other.hasVoice()) return false; if (hasVoice()) { - if (!getVoice() - .equals(other.getVoice())) return false; + if (!getVoice().equals(other.getVoice())) return false; } if (hasAudioConfig() != other.hasAudioConfig()) return false; if (hasAudioConfig()) { - if (!getAudioConfig() - .equals(other.getAudioConfig())) return false; + if (!getAudioConfig().equals(other.getAudioConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -340,117 +411,127 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 top-level message sent by the client for the `SynthesizeSpeech` method.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1.SynthesizeSpeechRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.SynthesizeSpeechRequest) com.google.cloud.texttospeech.v1.SynthesizeSpeechRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.class, com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.Builder.class); + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.class, + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.Builder.class); } // Construct using com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.newBuilder() @@ -458,16 +539,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(); @@ -493,9 +573,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor; } @java.lang.Override @@ -514,7 +594,8 @@ public com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest build() { @java.lang.Override public com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest buildPartial() { - com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest result = new com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest(this); + com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest result = + new com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest(this); if (inputBuilder_ == null) { result.input_ = input_; } else { @@ -538,38 +619,39 @@ public com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest 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.texttospeech.v1.SynthesizeSpeechRequest) { - return mergeFrom((com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest)other); + return mergeFrom((com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest) other); } else { super.mergeFrom(other); return this; @@ -577,7 +659,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest other) { - if (other == com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest.getDefaultInstance()) + return this; if (other.hasInput()) { mergeInput(other.getInput()); } @@ -606,7 +689,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -618,39 +702,58 @@ public Builder mergeFrom( private com.google.cloud.texttospeech.v1.SynthesisInput input_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.SynthesisInput, com.google.cloud.texttospeech.v1.SynthesisInput.Builder, com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder> inputBuilder_; + com.google.cloud.texttospeech.v1.SynthesisInput, + com.google.cloud.texttospeech.v1.SynthesisInput.Builder, + com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder> + inputBuilder_; /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the input field is set. */ public boolean hasInput() { return inputBuilder_ != null || input_ != null; } /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The input. */ public com.google.cloud.texttospeech.v1.SynthesisInput getInput() { if (inputBuilder_ == null) { - return input_ == null ? com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance() : input_; + return input_ == null + ? com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance() + : input_; } else { return inputBuilder_.getMessage(); } } /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInput(com.google.cloud.texttospeech.v1.SynthesisInput value) { if (inputBuilder_ == null) { @@ -666,11 +769,15 @@ public Builder setInput(com.google.cloud.texttospeech.v1.SynthesisInput value) { return this; } /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInput( com.google.cloud.texttospeech.v1.SynthesisInput.Builder builderForValue) { @@ -684,17 +791,23 @@ public Builder setInput( return this; } /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInput(com.google.cloud.texttospeech.v1.SynthesisInput value) { if (inputBuilder_ == null) { if (input_ != null) { input_ = - com.google.cloud.texttospeech.v1.SynthesisInput.newBuilder(input_).mergeFrom(value).buildPartial(); + com.google.cloud.texttospeech.v1.SynthesisInput.newBuilder(input_) + .mergeFrom(value) + .buildPartial(); } else { input_ = value; } @@ -706,11 +819,15 @@ public Builder mergeInput(com.google.cloud.texttospeech.v1.SynthesisInput value) return this; } /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInput() { if (inputBuilder_ == null) { @@ -724,48 +841,64 @@ public Builder clearInput() { return this; } /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.SynthesisInput.Builder getInputBuilder() { - + onChanged(); return getInputFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { return inputBuilder_.getMessageOrBuilder(); } else { - return input_ == null ? - com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance() : input_; + return input_ == null + ? com.google.cloud.texttospeech.v1.SynthesisInput.getDefaultInstance() + : input_; } } /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.SynthesisInput, com.google.cloud.texttospeech.v1.SynthesisInput.Builder, com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder> + com.google.cloud.texttospeech.v1.SynthesisInput, + com.google.cloud.texttospeech.v1.SynthesisInput.Builder, + com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder> getInputFieldBuilder() { if (inputBuilder_ == null) { - inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.SynthesisInput, com.google.cloud.texttospeech.v1.SynthesisInput.Builder, com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder>( - getInput(), - getParentForChildren(), - isClean()); + inputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1.SynthesisInput, + com.google.cloud.texttospeech.v1.SynthesisInput.Builder, + com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder>( + getInput(), getParentForChildren(), isClean()); input_ = null; } return inputBuilder_; @@ -773,39 +906,58 @@ public com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder getInputOrBuilde private com.google.cloud.texttospeech.v1.VoiceSelectionParams voice_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.VoiceSelectionParams, com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder, com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder> voiceBuilder_; + com.google.cloud.texttospeech.v1.VoiceSelectionParams, + com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder, + com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder> + voiceBuilder_; /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the voice field is set. */ public boolean hasVoice() { return voiceBuilder_ != null || voice_ != null; } /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The voice. */ public com.google.cloud.texttospeech.v1.VoiceSelectionParams getVoice() { if (voiceBuilder_ == null) { - return voice_ == null ? com.google.cloud.texttospeech.v1.VoiceSelectionParams.getDefaultInstance() : voice_; + return voice_ == null + ? com.google.cloud.texttospeech.v1.VoiceSelectionParams.getDefaultInstance() + : voice_; } else { return voiceBuilder_.getMessage(); } } /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setVoice(com.google.cloud.texttospeech.v1.VoiceSelectionParams value) { if (voiceBuilder_ == null) { @@ -821,11 +973,15 @@ public Builder setVoice(com.google.cloud.texttospeech.v1.VoiceSelectionParams va return this; } /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setVoice( com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder builderForValue) { @@ -839,17 +995,23 @@ public Builder setVoice( return this; } /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeVoice(com.google.cloud.texttospeech.v1.VoiceSelectionParams value) { if (voiceBuilder_ == null) { if (voice_ != null) { voice_ = - com.google.cloud.texttospeech.v1.VoiceSelectionParams.newBuilder(voice_).mergeFrom(value).buildPartial(); + com.google.cloud.texttospeech.v1.VoiceSelectionParams.newBuilder(voice_) + .mergeFrom(value) + .buildPartial(); } else { voice_ = value; } @@ -861,11 +1023,15 @@ public Builder mergeVoice(com.google.cloud.texttospeech.v1.VoiceSelectionParams return this; } /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearVoice() { if (voiceBuilder_ == null) { @@ -879,48 +1045,64 @@ public Builder clearVoice() { return this; } /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder getVoiceBuilder() { - + onChanged(); return getVoiceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { if (voiceBuilder_ != null) { return voiceBuilder_.getMessageOrBuilder(); } else { - return voice_ == null ? - com.google.cloud.texttospeech.v1.VoiceSelectionParams.getDefaultInstance() : voice_; + return voice_ == null + ? com.google.cloud.texttospeech.v1.VoiceSelectionParams.getDefaultInstance() + : voice_; } } /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.VoiceSelectionParams, com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder, com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder> + com.google.cloud.texttospeech.v1.VoiceSelectionParams, + com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder, + com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder> getVoiceFieldBuilder() { if (voiceBuilder_ == null) { - voiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.VoiceSelectionParams, com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder, com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder>( - getVoice(), - getParentForChildren(), - isClean()); + voiceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1.VoiceSelectionParams, + com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder, + com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder>( + getVoice(), getParentForChildren(), isClean()); voice_ = null; } return voiceBuilder_; @@ -928,39 +1110,58 @@ public com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder getVoiceOr private com.google.cloud.texttospeech.v1.AudioConfig audioConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.AudioConfig, com.google.cloud.texttospeech.v1.AudioConfig.Builder, com.google.cloud.texttospeech.v1.AudioConfigOrBuilder> audioConfigBuilder_; + com.google.cloud.texttospeech.v1.AudioConfig, + com.google.cloud.texttospeech.v1.AudioConfig.Builder, + com.google.cloud.texttospeech.v1.AudioConfigOrBuilder> + audioConfigBuilder_; /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audioConfig field is set. */ public boolean hasAudioConfig() { return audioConfigBuilder_ != null || audioConfig_ != null; } /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audioConfig. */ public com.google.cloud.texttospeech.v1.AudioConfig getAudioConfig() { if (audioConfigBuilder_ == null) { - return audioConfig_ == null ? com.google.cloud.texttospeech.v1.AudioConfig.getDefaultInstance() : audioConfig_; + return audioConfig_ == null + ? com.google.cloud.texttospeech.v1.AudioConfig.getDefaultInstance() + : audioConfig_; } else { return audioConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudioConfig(com.google.cloud.texttospeech.v1.AudioConfig value) { if (audioConfigBuilder_ == null) { @@ -976,11 +1177,15 @@ public Builder setAudioConfig(com.google.cloud.texttospeech.v1.AudioConfig value return this; } /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudioConfig( com.google.cloud.texttospeech.v1.AudioConfig.Builder builderForValue) { @@ -994,17 +1199,23 @@ public Builder setAudioConfig( return this; } /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAudioConfig(com.google.cloud.texttospeech.v1.AudioConfig value) { if (audioConfigBuilder_ == null) { if (audioConfig_ != null) { audioConfig_ = - com.google.cloud.texttospeech.v1.AudioConfig.newBuilder(audioConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.texttospeech.v1.AudioConfig.newBuilder(audioConfig_) + .mergeFrom(value) + .buildPartial(); } else { audioConfig_ = value; } @@ -1016,11 +1227,15 @@ public Builder mergeAudioConfig(com.google.cloud.texttospeech.v1.AudioConfig val return this; } /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudioConfig() { if (audioConfigBuilder_ == null) { @@ -1034,55 +1249,71 @@ public Builder clearAudioConfig() { return this; } /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.AudioConfig.Builder getAudioConfigBuilder() { - + onChanged(); return getAudioConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.AudioConfigOrBuilder getAudioConfigOrBuilder() { if (audioConfigBuilder_ != null) { return audioConfigBuilder_.getMessageOrBuilder(); } else { - return audioConfig_ == null ? - com.google.cloud.texttospeech.v1.AudioConfig.getDefaultInstance() : audioConfig_; + return audioConfig_ == null + ? com.google.cloud.texttospeech.v1.AudioConfig.getDefaultInstance() + : audioConfig_; } } /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.AudioConfig, com.google.cloud.texttospeech.v1.AudioConfig.Builder, com.google.cloud.texttospeech.v1.AudioConfigOrBuilder> + com.google.cloud.texttospeech.v1.AudioConfig, + com.google.cloud.texttospeech.v1.AudioConfig.Builder, + com.google.cloud.texttospeech.v1.AudioConfigOrBuilder> getAudioConfigFieldBuilder() { if (audioConfigBuilder_ == null) { - audioConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1.AudioConfig, com.google.cloud.texttospeech.v1.AudioConfig.Builder, com.google.cloud.texttospeech.v1.AudioConfigOrBuilder>( - getAudioConfig(), - getParentForChildren(), - isClean()); + audioConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1.AudioConfig, + com.google.cloud.texttospeech.v1.AudioConfig.Builder, + com.google.cloud.texttospeech.v1.AudioConfigOrBuilder>( + getAudioConfig(), getParentForChildren(), isClean()); audioConfig_ = null; } return audioConfigBuilder_; } + @java.lang.Override - 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 +1323,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.SynthesizeSpeechRequest) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.SynthesizeSpeechRequest) private static final com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest(); } @@ -1106,16 +1337,16 @@ public static com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SynthesizeSpeechRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SynthesizeSpeechRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SynthesizeSpeechRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SynthesizeSpeechRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1130,6 +1361,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java index 26fe0173..4da6f776 100644 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java @@ -1,90 +1,148 @@ +/* + * 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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; -public interface SynthesizeSpeechRequestOrBuilder extends +public interface SynthesizeSpeechRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.SynthesizeSpeechRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the input field is set. */ boolean hasInput(); /** + * + * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The input. */ com.google.cloud.texttospeech.v1.SynthesisInput getInput(); /** + * + * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder getInputOrBuilder(); /** + * + * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the voice field is set. */ boolean hasVoice(); /** + * + * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The voice. */ com.google.cloud.texttospeech.v1.VoiceSelectionParams getVoice(); /** + * + * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder(); /** + * + * *
    * Required. The configuration of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audioConfig field is set. */ boolean hasAudioConfig(); /** + * + * *
    * Required. The configuration of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audioConfig. */ com.google.cloud.texttospeech.v1.AudioConfig getAudioConfig(); /** + * + * *
    * Required. The configuration of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1.AudioConfigOrBuilder getAudioConfigOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java index 1b4bb8f7..a64b8c9e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** + * + * *
  * The message returned to the client by the `SynthesizeSpeech` method.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1.SynthesizeSpeechResponse} */ -public final class SynthesizeSpeechResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SynthesizeSpeechResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.SynthesizeSpeechResponse) SynthesizeSpeechResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SynthesizeSpeechResponse.newBuilder() to construct. private SynthesizeSpeechResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SynthesizeSpeechResponse() { audioContent_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SynthesizeSpeechResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SynthesizeSpeechResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,46 +70,50 @@ private SynthesizeSpeechResponse( case 0: done = true; break; - case 10: { - - audioContent_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + audioContent_ = input.readBytes(); + 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.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.class, com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.Builder.class); + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.class, + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.Builder.class); } public static final int AUDIO_CONTENT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString audioContent_; /** + * + * *
    * The audio data bytes encoded as specified in the request, including the
    * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -102,6 +123,7 @@ private SynthesizeSpeechResponse(
    * 
* * bytes audio_content = 1; + * * @return The audioContent. */ @java.lang.Override @@ -110,6 +132,7 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +144,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 (!audioContent_.isEmpty()) { output.writeBytes(1, audioContent_); } @@ -136,8 +158,7 @@ public int getSerializedSize() { size = 0; if (!audioContent_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, audioContent_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, audioContent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -147,15 +168,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.texttospeech.v1.SynthesizeSpeechResponse)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse other = (com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse) obj; + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse other = + (com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse) obj; - if (!getAudioContent() - .equals(other.getAudioContent())) return false; + if (!getAudioContent().equals(other.getAudioContent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -175,117 +196,127 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message returned to the client by the `SynthesizeSpeech` method.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1.SynthesizeSpeechResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.SynthesizeSpeechResponse) com.google.cloud.texttospeech.v1.SynthesizeSpeechResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.class, com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.Builder.class); + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.class, + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.Builder.class); } // Construct using com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.newBuilder() @@ -293,16 +324,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(); @@ -312,9 +342,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor; } @java.lang.Override @@ -333,7 +363,8 @@ public com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse build() { @java.lang.Override public com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse buildPartial() { - com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse result = new com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse(this); + com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse result = + new com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse(this); result.audioContent_ = audioContent_; onBuilt(); return result; @@ -343,38 +374,39 @@ public com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse 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.texttospeech.v1.SynthesizeSpeechResponse) { - return mergeFrom((com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse)other); + return mergeFrom((com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse) other); } else { super.mergeFrom(other); return this; @@ -382,7 +414,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse other) { - if (other == com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse.getDefaultInstance()) + return this; if (other.getAudioContent() != com.google.protobuf.ByteString.EMPTY) { setAudioContent(other.getAudioContent()); } @@ -405,7 +438,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -417,6 +451,8 @@ public Builder mergeFrom( private com.google.protobuf.ByteString audioContent_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * The audio data bytes encoded as specified in the request, including the
      * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -426,6 +462,7 @@ public Builder mergeFrom(
      * 
* * bytes audio_content = 1; + * * @return The audioContent. */ @java.lang.Override @@ -433,6 +470,8 @@ public com.google.protobuf.ByteString getAudioContent() { return audioContent_; } /** + * + * *
      * The audio data bytes encoded as specified in the request, including the
      * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -442,19 +481,22 @@ public com.google.protobuf.ByteString getAudioContent() {
      * 
* * bytes audio_content = 1; + * * @param value The audioContent to set. * @return This builder for chaining. */ public Builder setAudioContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audioContent_ = value; onChanged(); return this; } /** + * + * *
      * The audio data bytes encoded as specified in the request, including the
      * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -464,17 +506,18 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 1; + * * @return This builder for chaining. */ public Builder clearAudioContent() { - + audioContent_ = getDefaultInstance().getAudioContent(); 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); } @@ -484,12 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.SynthesizeSpeechResponse) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.SynthesizeSpeechResponse) private static final com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse(); } @@ -498,16 +541,16 @@ public static com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SynthesizeSpeechResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SynthesizeSpeechResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SynthesizeSpeechResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SynthesizeSpeechResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -522,6 +565,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java index 5e4a44ed..51fa85d6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; -public interface SynthesizeSpeechResponseOrBuilder extends +public interface SynthesizeSpeechResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.SynthesizeSpeechResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The audio data bytes encoded as specified in the request, including the
    * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -17,6 +35,7 @@ public interface SynthesizeSpeechResponseOrBuilder extends
    * 
* * bytes audio_content = 1; + * * @return The audioContent. */ com.google.protobuf.ByteString getAudioContent(); diff --git a/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java new file mode 100644 index 00000000..a5507e30 --- /dev/null +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java @@ -0,0 +1,221 @@ +/* + * 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/texttospeech/v1/cloud_tts.proto + +package com.google.cloud.texttospeech.v1; + +public final class TextToSpeechProto { + private TextToSpeechProto() {} + + 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_texttospeech_v1_ListVoicesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_Voice_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_Voice_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_SynthesisInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_AudioConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_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/texttospeech/v1/cloud_tts" + + ".proto\022\034google.cloud.texttospeech.v1\032\034go" + + "ogle/api/annotations.proto\032\027google/api/c" + + "lient.proto\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\"/\n\021ListV" + + "oicesRequest\022\032\n\rlanguage_code\030\001 \001(\tB\003\340A\001" + + "\"I\n\022ListVoicesResponse\0223\n\006voices\030\001 \003(\0132#" + + ".google.cloud.texttospeech.v1.Voice\"\224\001\n\005" + + "Voice\022\026\n\016language_codes\030\001 \003(\t\022\014\n\004name\030\002 " + + "\001(\t\022B\n\013ssml_gender\030\003 \001(\0162-.google.cloud." + + "texttospeech.v1.SsmlVoiceGender\022!\n\031natur" + + "al_sample_rate_hertz\030\004 \001(\005\"\351\001\n\027Synthesiz" + + "eSpeechRequest\022@\n\005input\030\001 \001(\0132,.google.c" + + "loud.texttospeech.v1.SynthesisInputB\003\340A\002" + + "\022F\n\005voice\030\002 \001(\01322.google.cloud.texttospe" + + "ech.v1.VoiceSelectionParamsB\003\340A\002\022D\n\014audi" + + "o_config\030\003 \001(\0132).google.cloud.texttospee" + + "ch.v1.AudioConfigB\003\340A\002\"@\n\016SynthesisInput" + + "\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000B\016\n\014inpu" + + "t_source\"\204\001\n\024VoiceSelectionParams\022\032\n\rlan" + + "guage_code\030\001 \001(\tB\003\340A\002\022\014\n\004name\030\002 \001(\t\022B\n\013s" + + "sml_gender\030\003 \001(\0162-.google.cloud.texttosp" + + "eech.v1.SsmlVoiceGender\"\361\001\n\013AudioConfig\022" + + "H\n\016audio_encoding\030\001 \001(\0162+.google.cloud.t" + + "exttospeech.v1.AudioEncodingB\003\340A\002\022\035\n\rspe" + + "aking_rate\030\002 \001(\001B\006\340A\004\340A\001\022\025\n\005pitch\030\003 \001(\001B" + + "\006\340A\004\340A\001\022\036\n\016volume_gain_db\030\004 \001(\001B\006\340A\004\340A\001\022" + + "\036\n\021sample_rate_hertz\030\005 \001(\005B\003\340A\001\022\"\n\022effec" + + "ts_profile_id\030\006 \003(\tB\006\340A\004\340A\001\"1\n\030Synthesiz" + + "eSpeechResponse\022\025\n\raudio_content\030\001 \001(\014*W" + + "\n\017SsmlVoiceGender\022!\n\035SSML_VOICE_GENDER_U" + + "NSPECIFIED\020\000\022\010\n\004MALE\020\001\022\n\n\006FEMALE\020\002\022\013\n\007NE" + + "UTRAL\020\003*i\n\rAudioEncoding\022\036\n\032AUDIO_ENCODI" + + "NG_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\007\n\003MP3\020\002\022" + + "\014\n\010OGG_OPUS\020\003\022\t\n\005MULAW\020\005\022\010\n\004ALAW\020\0062\264\003\n\014T" + + "extToSpeech\022\223\001\n\nListVoices\022/.google.clou" + + "d.texttospeech.v1.ListVoicesRequest\0320.go" + + "ogle.cloud.texttospeech.v1.ListVoicesRes" + + "ponse\"\"\202\323\344\223\002\014\022\n/v1/voices\332A\rlanguage_cod" + + "e\022\274\001\n\020SynthesizeSpeech\0225.google.cloud.te" + + "xttospeech.v1.SynthesizeSpeechRequest\0326." + + "google.cloud.texttospeech.v1.SynthesizeS" + + "peechResponse\"9\202\323\344\223\002\030\"\023/v1/text:synthesi" + + "ze:\001*\332A\030input,voice,audio_config\032O\312A\033tex" + + "ttospeech.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platformB\274\002\n co" + + "m.google.cloud.texttospeech.v1B\021TextToSp" + + "eechProtoP\001ZHgoogle.golang.org/genproto/" + + "googleapis/cloud/texttospeech/v1;texttos" + + "peech\370\001\001\252\002\034Google.Cloud.TextToSpeech.V1\312" + + "\002\034Google\\Cloud\\TextToSpeech\\V1\352\002\037Google:" + + ":Cloud::TextToSpeech::V1\352AU\n\033automl.goog" + + "leapis.com/Model\0226projects/{project}/loc" + + "ations/{location}/models/{model}b\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(), + }); + internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor, + new java.lang.String[] { + "LanguageCode", + }); + internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_ListVoicesResponse_descriptor, + new java.lang.String[] { + "Voices", + }); + internal_static_google_cloud_texttospeech_v1_Voice_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_texttospeech_v1_Voice_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_Voice_descriptor, + new java.lang.String[] { + "LanguageCodes", "Name", "SsmlGender", "NaturalSampleRateHertz", + }); + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechRequest_descriptor, + new java.lang.String[] { + "Input", "Voice", "AudioConfig", + }); + internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_texttospeech_v1_SynthesisInput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_SynthesisInput_descriptor, + new java.lang.String[] { + "Text", "Ssml", "InputSource", + }); + internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor, + new java.lang.String[] { + "LanguageCode", "Name", "SsmlGender", + }); + internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_texttospeech_v1_AudioConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor, + new java.lang.String[] { + "AudioEncoding", + "SpeakingRate", + "Pitch", + "VolumeGainDb", + "SampleRateHertz", + "EffectsProfileId", + }); + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor, + new java.lang.String[] { + "AudioContent", + }); + 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.resourceDefinition); + 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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/Voice.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/Voice.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/Voice.java rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/Voice.java index 48651f20..32596552 100644 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/Voice.java +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/Voice.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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** + * + * *
  * Description of a voice supported by the TTS service.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1.Voice} */ -public final class Voice extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Voice extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.Voice) VoiceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Voice.newBuilder() to construct. private Voice(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Voice() { languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; name_ = ""; @@ -27,16 +45,15 @@ private Voice() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Voice(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Voice( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,46 +73,48 @@ private Voice( 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; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - ssmlGender_ = rawValue; - break; - } - case 32: { + name_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - naturalSampleRateHertz_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + ssmlGender_ = rawValue; + break; + } + case 32: + { + naturalSampleRateHertz_ = input.readInt32(); + 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)) { languageCodes_ = languageCodes_.getUnmodifiableView(); @@ -104,22 +123,27 @@ private Voice( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_Voice_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_Voice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_Voice_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_Voice_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.Voice.class, com.google.cloud.texttospeech.v1.Voice.Builder.class); + com.google.cloud.texttospeech.v1.Voice.class, + com.google.cloud.texttospeech.v1.Voice.Builder.class); } public static final int LANGUAGE_CODES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList languageCodes_; /** + * + * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -127,13 +151,15 @@ private Voice(
    * 
* * 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 languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -141,12 +167,15 @@ private Voice(
    * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** + * + * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -154,6 +183,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. */ @@ -161,6 +191,8 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** + * + * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -168,22 +200,25 @@ 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); } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** + * + * *
    * The name of this voice.  Each distinct voice has a unique name.
    * 
* * string name = 2; + * * @return The name. */ @java.lang.Override @@ -192,29 +227,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 this voice.  Each distinct voice has a unique name.
    * 
* * string name = 2; + * * @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 { @@ -225,38 +260,50 @@ public java.lang.String getName() { public static final int SSML_GENDER_FIELD_NUMBER = 3; private int ssmlGender_; /** + * + * *
    * The gender of this voice.
    * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @return The enum numeric value on the wire for ssmlGender. */ - @java.lang.Override public int getSsmlGenderValue() { + @java.lang.Override + public int getSsmlGenderValue() { return ssmlGender_; } /** + * + * *
    * The gender of this voice.
    * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @return The ssmlGender. */ - @java.lang.Override public com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender() { + @java.lang.Override + public com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1.SsmlVoiceGender result = com.google.cloud.texttospeech.v1.SsmlVoiceGender.valueOf(ssmlGender_); + com.google.cloud.texttospeech.v1.SsmlVoiceGender result = + com.google.cloud.texttospeech.v1.SsmlVoiceGender.valueOf(ssmlGender_); return result == null ? com.google.cloud.texttospeech.v1.SsmlVoiceGender.UNRECOGNIZED : result; } public static final int NATURAL_SAMPLE_RATE_HERTZ_FIELD_NUMBER = 4; private int naturalSampleRateHertz_; /** + * + * *
    * The natural sample rate (in hertz) for this voice.
    * 
* * int32 natural_sample_rate_hertz = 4; + * * @return The naturalSampleRateHertz. */ @java.lang.Override @@ -265,6 +312,7 @@ public int getNaturalSampleRateHertz() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,15 +324,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < languageCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCodes_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } - if (ssmlGender_ != com.google.cloud.texttospeech.v1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) { + if (ssmlGender_ + != com.google.cloud.texttospeech.v1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED + .getNumber()) { output.writeEnum(3, ssmlGender_); } if (naturalSampleRateHertz_ != 0) { @@ -310,13 +359,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } - if (ssmlGender_ != com.google.cloud.texttospeech.v1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, ssmlGender_); + if (ssmlGender_ + != com.google.cloud.texttospeech.v1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, ssmlGender_); } if (naturalSampleRateHertz_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, naturalSampleRateHertz_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, naturalSampleRateHertz_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -326,20 +375,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.texttospeech.v1.Voice)) { return super.equals(obj); } com.google.cloud.texttospeech.v1.Voice other = (com.google.cloud.texttospeech.v1.Voice) obj; - if (!getLanguageCodesList() - .equals(other.getLanguageCodesList())) return false; - if (!getName() - .equals(other.getName())) return false; + if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; + if (!getName().equals(other.getName())) return false; if (ssmlGender_ != other.ssmlGender_) return false; - if (getNaturalSampleRateHertz() - != other.getNaturalSampleRateHertz()) return false; + if (getNaturalSampleRateHertz() != other.getNaturalSampleRateHertz()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -366,118 +412,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.texttospeech.v1.Voice parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.texttospeech.v1.Voice parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.Voice parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.Voice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.Voice parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.Voice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.Voice parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.Voice 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.texttospeech.v1.Voice parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.Voice 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.texttospeech.v1.Voice parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.Voice parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.Voice parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.texttospeech.v1.Voice prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Description of a voice supported by the TTS service.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1.Voice} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.Voice) com.google.cloud.texttospeech.v1.VoiceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_Voice_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_Voice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_Voice_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_Voice_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.Voice.class, com.google.cloud.texttospeech.v1.Voice.Builder.class); + com.google.cloud.texttospeech.v1.Voice.class, + com.google.cloud.texttospeech.v1.Voice.Builder.class); } // Construct using com.google.cloud.texttospeech.v1.Voice.newBuilder() @@ -485,16 +540,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(); @@ -510,9 +564,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_Voice_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_Voice_descriptor; } @java.lang.Override @@ -531,7 +585,8 @@ public com.google.cloud.texttospeech.v1.Voice build() { @java.lang.Override public com.google.cloud.texttospeech.v1.Voice buildPartial() { - com.google.cloud.texttospeech.v1.Voice result = new com.google.cloud.texttospeech.v1.Voice(this); + com.google.cloud.texttospeech.v1.Voice result = + new com.google.cloud.texttospeech.v1.Voice(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { languageCodes_ = languageCodes_.getUnmodifiableView(); @@ -549,38 +604,39 @@ public com.google.cloud.texttospeech.v1.Voice 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.texttospeech.v1.Voice) { - return mergeFrom((com.google.cloud.texttospeech.v1.Voice)other); + return mergeFrom((com.google.cloud.texttospeech.v1.Voice) other); } else { super.mergeFrom(other); return this; @@ -637,16 +693,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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -654,13 +715,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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -668,12 +731,15 @@ private void ensureLanguageCodesIsMutable() {
      * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** + * + * *
      * The languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -681,6 +747,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. */ @@ -688,6 +755,8 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** + * + * *
      * The languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -695,14 +764,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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -710,21 +781,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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -732,20 +805,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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -753,18 +828,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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -772,6 +848,7 @@ public Builder addAllLanguageCodes(
      * 
* * repeated string language_codes = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCodes() { @@ -781,6 +858,8 @@ public Builder clearLanguageCodes() { return this; } /** + * + * *
      * The languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -788,15 +867,15 @@ 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(); @@ -805,18 +884,20 @@ public Builder addLanguageCodesBytes( private java.lang.Object name_ = ""; /** + * + * *
      * The name of this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; + * * @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; @@ -825,20 +906,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; + * * @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 { @@ -846,54 +928,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; + * * @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 this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; + * * @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; @@ -901,51 +990,67 @@ public Builder setNameBytes( private int ssmlGender_ = 0; /** + * + * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @return The enum numeric value on the wire for ssmlGender. */ - @java.lang.Override public int getSsmlGenderValue() { + @java.lang.Override + public int getSsmlGenderValue() { return ssmlGender_; } /** + * + * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @param value The enum numeric value on the wire for ssmlGender to set. * @return This builder for chaining. */ public Builder setSsmlGenderValue(int value) { - + ssmlGender_ = value; onChanged(); return this; } /** + * + * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @return The ssmlGender. */ @java.lang.Override public com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1.SsmlVoiceGender result = com.google.cloud.texttospeech.v1.SsmlVoiceGender.valueOf(ssmlGender_); - return result == null ? com.google.cloud.texttospeech.v1.SsmlVoiceGender.UNRECOGNIZED : result; + com.google.cloud.texttospeech.v1.SsmlVoiceGender result = + com.google.cloud.texttospeech.v1.SsmlVoiceGender.valueOf(ssmlGender_); + return result == null + ? com.google.cloud.texttospeech.v1.SsmlVoiceGender.UNRECOGNIZED + : result; } /** + * + * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @param value The ssmlGender to set. * @return This builder for chaining. */ @@ -953,33 +1058,39 @@ public Builder setSsmlGender(com.google.cloud.texttospeech.v1.SsmlVoiceGender va if (value == null) { throw new NullPointerException(); } - + ssmlGender_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @return This builder for chaining. */ public Builder clearSsmlGender() { - + ssmlGender_ = 0; onChanged(); return this; } - private int naturalSampleRateHertz_ ; + private int naturalSampleRateHertz_; /** + * + * *
      * The natural sample rate (in hertz) for this voice.
      * 
* * int32 natural_sample_rate_hertz = 4; + * * @return The naturalSampleRateHertz. */ @java.lang.Override @@ -987,37 +1098,43 @@ public int getNaturalSampleRateHertz() { return naturalSampleRateHertz_; } /** + * + * *
      * The natural sample rate (in hertz) for this voice.
      * 
* * int32 natural_sample_rate_hertz = 4; + * * @param value The naturalSampleRateHertz to set. * @return This builder for chaining. */ public Builder setNaturalSampleRateHertz(int value) { - + naturalSampleRateHertz_ = value; onChanged(); return this; } /** + * + * *
      * The natural sample rate (in hertz) for this voice.
      * 
* * int32 natural_sample_rate_hertz = 4; + * * @return This builder for chaining. */ public Builder clearNaturalSampleRateHertz() { - + naturalSampleRateHertz_ = 0; 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); } @@ -1027,12 +1144,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.Voice) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.Voice) private static final com.google.cloud.texttospeech.v1.Voice DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.Voice(); } @@ -1041,16 +1158,16 @@ public static com.google.cloud.texttospeech.v1.Voice getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Voice parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Voice(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Voice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Voice(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1065,6 +1182,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1.Voice getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceOrBuilder.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceOrBuilder.java rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceOrBuilder.java index 1f56838a..10359f7e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceOrBuilder.java +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceOrBuilder.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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; -public interface VoiceOrBuilder extends +public interface VoiceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.Voice) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -15,11 +33,13 @@ public interface VoiceOrBuilder extends
    * 
* * repeated string language_codes = 1; + * * @return A list containing the languageCodes. */ - java.util.List - getLanguageCodesList(); + java.util.List getLanguageCodesList(); /** + * + * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -27,10 +47,13 @@ public interface VoiceOrBuilder extends
    * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** + * + * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -38,11 +61,14 @@ public interface VoiceOrBuilder 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 languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -50,57 +76,71 @@ public interface VoiceOrBuilder 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); /** + * + * *
    * The name of this voice.  Each distinct voice has a unique name.
    * 
* * string name = 2; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of this voice.  Each distinct voice has a unique name.
    * 
* * string name = 2; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The gender of this voice.
    * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @return The enum numeric value on the wire for ssmlGender. */ int getSsmlGenderValue(); /** + * + * *
    * The gender of this voice.
    * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @return The ssmlGender. */ com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender(); /** + * + * *
    * The natural sample rate (in hertz) for this voice.
    * 
* * int32 natural_sample_rate_hertz = 4; + * * @return The naturalSampleRateHertz. */ int getNaturalSampleRateHertz(); diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java index 28bee91b..06ad0e56 100644 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; /** + * + * *
  * Description of which voice to use for a synthesis request.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1.VoiceSelectionParams} */ -public final class VoiceSelectionParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VoiceSelectionParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1.VoiceSelectionParams) VoiceSelectionParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VoiceSelectionParams.newBuilder() to construct. private VoiceSelectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VoiceSelectionParams() { languageCode_ = ""; name_ = ""; @@ -27,16 +45,15 @@ private VoiceSelectionParams() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VoiceSelectionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VoiceSelectionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,59 +72,66 @@ private VoiceSelectionParams( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + languageCode_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - ssmlGender_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + ssmlGender_ = rawValue; + 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.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.VoiceSelectionParams.class, com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder.class); + com.google.cloud.texttospeech.v1.VoiceSelectionParams.class, + com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** + * + * *
    * Required. The language (and potentially also the region) of the voice expressed as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -123,6 +147,7 @@ private VoiceSelectionParams(
    * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ @java.lang.Override @@ -131,14 +156,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; } } /** + * + * *
    * Required. The language (and potentially also the region) of the voice expressed as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -154,16 +180,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -174,12 +199,15 @@ public java.lang.String getLanguageCode() { public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** + * + * *
    * The name of the voice. If not set, the service will choose a
    * voice based on the other parameters such as language_code and gender.
    * 
* * string name = 2; + * * @return The name. */ @java.lang.Override @@ -188,30 +216,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; } } /** + * + * *
    * The name of the voice. If not set, the service will choose a
    * voice based on the other parameters such as language_code and gender.
    * 
* * string name = 2; + * * @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 { @@ -222,6 +250,8 @@ public java.lang.String getName() { public static final int SSML_GENDER_FIELD_NUMBER = 3; private int ssmlGender_; /** + * + * *
    * The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
@@ -231,12 +261,16 @@ public java.lang.String getName() {
    * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @return The enum numeric value on the wire for ssmlGender. */ - @java.lang.Override public int getSsmlGenderValue() { + @java.lang.Override + public int getSsmlGenderValue() { return ssmlGender_; } /** + * + * *
    * The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
@@ -246,15 +280,19 @@ public java.lang.String getName() {
    * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @return The ssmlGender. */ - @java.lang.Override public com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender() { + @java.lang.Override + public com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1.SsmlVoiceGender result = com.google.cloud.texttospeech.v1.SsmlVoiceGender.valueOf(ssmlGender_); + com.google.cloud.texttospeech.v1.SsmlVoiceGender result = + com.google.cloud.texttospeech.v1.SsmlVoiceGender.valueOf(ssmlGender_); return result == null ? com.google.cloud.texttospeech.v1.SsmlVoiceGender.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,15 +304,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } - if (ssmlGender_ != com.google.cloud.texttospeech.v1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) { + if (ssmlGender_ + != com.google.cloud.texttospeech.v1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED + .getNumber()) { output.writeEnum(3, ssmlGender_); } unknownFields.writeTo(output); @@ -292,9 +331,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } - if (ssmlGender_ != com.google.cloud.texttospeech.v1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, ssmlGender_); + if (ssmlGender_ + != com.google.cloud.texttospeech.v1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, ssmlGender_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -304,17 +344,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.texttospeech.v1.VoiceSelectionParams)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1.VoiceSelectionParams other = (com.google.cloud.texttospeech.v1.VoiceSelectionParams) obj; + com.google.cloud.texttospeech.v1.VoiceSelectionParams other = + (com.google.cloud.texttospeech.v1.VoiceSelectionParams) obj; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getName() - .equals(other.getName())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getName().equals(other.getName())) return false; if (ssmlGender_ != other.ssmlGender_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -339,117 +378,127 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1.VoiceSelectionParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.texttospeech.v1.VoiceSelectionParams prototype) { + + public static Builder newBuilder( + com.google.cloud.texttospeech.v1.VoiceSelectionParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Description of which voice to use for a synthesis request.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1.VoiceSelectionParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1.VoiceSelectionParams) com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_fieldAccessorTable + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1.VoiceSelectionParams.class, com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder.class); + com.google.cloud.texttospeech.v1.VoiceSelectionParams.class, + com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder.class); } // Construct using com.google.cloud.texttospeech.v1.VoiceSelectionParams.newBuilder() @@ -457,16 +506,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(); @@ -480,9 +528,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.texttospeech.v1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1_VoiceSelectionParams_descriptor; } @java.lang.Override @@ -501,7 +549,8 @@ public com.google.cloud.texttospeech.v1.VoiceSelectionParams build() { @java.lang.Override public com.google.cloud.texttospeech.v1.VoiceSelectionParams buildPartial() { - com.google.cloud.texttospeech.v1.VoiceSelectionParams result = new com.google.cloud.texttospeech.v1.VoiceSelectionParams(this); + com.google.cloud.texttospeech.v1.VoiceSelectionParams result = + new com.google.cloud.texttospeech.v1.VoiceSelectionParams(this); result.languageCode_ = languageCode_; result.name_ = name_; result.ssmlGender_ = ssmlGender_; @@ -513,38 +562,39 @@ public com.google.cloud.texttospeech.v1.VoiceSelectionParams 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.texttospeech.v1.VoiceSelectionParams) { - return mergeFrom((com.google.cloud.texttospeech.v1.VoiceSelectionParams)other); + return mergeFrom((com.google.cloud.texttospeech.v1.VoiceSelectionParams) other); } else { super.mergeFrom(other); return this; @@ -552,7 +602,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1.VoiceSelectionParams other) { - if (other == com.google.cloud.texttospeech.v1.VoiceSelectionParams.getDefaultInstance()) return this; + if (other == com.google.cloud.texttospeech.v1.VoiceSelectionParams.getDefaultInstance()) + return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -583,7 +634,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.texttospeech.v1.VoiceSelectionParams) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.texttospeech.v1.VoiceSelectionParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -595,6 +647,8 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** + * + * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -610,13 +664,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -625,6 +679,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -640,15 +696,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -656,6 +711,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -671,20 +728,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; } /** + * + * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -700,15 +759,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -724,16 +786,16 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -741,19 +803,21 @@ public Builder setLanguageCodeBytes( private java.lang.Object name_ = ""; /** + * + * *
      * The name of the voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; + * * @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; @@ -762,21 +826,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; + * * @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 { @@ -784,57 +849,64 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; + * * @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 voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; + * * @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; @@ -842,6 +914,8 @@ public Builder setNameBytes( private int ssmlGender_ = 0; /** + * + * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -851,12 +925,16 @@ public Builder setNameBytes(
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @return The enum numeric value on the wire for ssmlGender. */ - @java.lang.Override public int getSsmlGenderValue() { + @java.lang.Override + public int getSsmlGenderValue() { return ssmlGender_; } /** + * + * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -866,16 +944,19 @@ public Builder setNameBytes(
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @param value The enum numeric value on the wire for ssmlGender to set. * @return This builder for chaining. */ public Builder setSsmlGenderValue(int value) { - + ssmlGender_ = value; onChanged(); return this; } /** + * + * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -885,15 +966,21 @@ public Builder setSsmlGenderValue(int value) {
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @return The ssmlGender. */ @java.lang.Override public com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1.SsmlVoiceGender result = com.google.cloud.texttospeech.v1.SsmlVoiceGender.valueOf(ssmlGender_); - return result == null ? com.google.cloud.texttospeech.v1.SsmlVoiceGender.UNRECOGNIZED : result; + com.google.cloud.texttospeech.v1.SsmlVoiceGender result = + com.google.cloud.texttospeech.v1.SsmlVoiceGender.valueOf(ssmlGender_); + return result == null + ? com.google.cloud.texttospeech.v1.SsmlVoiceGender.UNRECOGNIZED + : result; } /** + * + * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -903,6 +990,7 @@ public com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender() {
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @param value The ssmlGender to set. * @return This builder for chaining. */ @@ -910,12 +998,14 @@ public Builder setSsmlGender(com.google.cloud.texttospeech.v1.SsmlVoiceGender va if (value == null) { throw new NullPointerException(); } - + ssmlGender_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -925,17 +1015,18 @@ public Builder setSsmlGender(com.google.cloud.texttospeech.v1.SsmlVoiceGender va
      * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @return This builder for chaining. */ public Builder clearSsmlGender() { - + ssmlGender_ = 0; 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); } @@ -945,12 +1036,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1.VoiceSelectionParams) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1.VoiceSelectionParams) private static final com.google.cloud.texttospeech.v1.VoiceSelectionParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1.VoiceSelectionParams(); } @@ -959,16 +1050,16 @@ public static com.google.cloud.texttospeech.v1.VoiceSelectionParams getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VoiceSelectionParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VoiceSelectionParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VoiceSelectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VoiceSelectionParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -983,6 +1074,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1.VoiceSelectionParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java similarity index 82% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java rename to proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java index bf2126a4..06af331c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java +++ b/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.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/texttospeech/v1/cloud_tts.proto package com.google.cloud.texttospeech.v1; -public interface VoiceSelectionParamsOrBuilder extends +public interface VoiceSelectionParamsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1.VoiceSelectionParams) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The language (and potentially also the region) of the voice expressed as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -23,10 +41,13 @@ public interface VoiceSelectionParamsOrBuilder extends
    * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Required. The language (and potentially also the region) of the voice expressed as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -42,34 +63,41 @@ public interface VoiceSelectionParamsOrBuilder extends
    * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * The name of the voice. If not set, the service will choose a
    * voice based on the other parameters such as language_code and gender.
    * 
* * string name = 2; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the voice. If not set, the service will choose a
    * voice based on the other parameters such as language_code and gender.
    * 
* * string name = 2; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
@@ -79,10 +107,13 @@ public interface VoiceSelectionParamsOrBuilder extends
    * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @return The enum numeric value on the wire for ssmlGender. */ int getSsmlGenderValue(); /** + * + * *
    * The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
@@ -92,6 +123,7 @@ public interface VoiceSelectionParamsOrBuilder extends
    * 
* * .google.cloud.texttospeech.v1.SsmlVoiceGender ssml_gender = 3; + * * @return The ssmlGender. */ com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender(); diff --git a/owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto b/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto rename to proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java index 3c105410..3d057718 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** + * + * *
  * Description of audio data to be synthesized.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.AudioConfig} */ -public final class AudioConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AudioConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.AudioConfig) AudioConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AudioConfig.newBuilder() to construct. private AudioConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AudioConfig() { audioEncoding_ = 0; effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,16 +44,15 @@ private AudioConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AudioConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AudioConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,55 +72,56 @@ private AudioConfig( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - audioEncoding_ = rawValue; - break; - } - case 17: { - - speakingRate_ = input.readDouble(); - break; - } - case 25: { - - pitch_ = input.readDouble(); - break; - } - case 33: { + case 8: + { + int rawValue = input.readEnum(); - volumeGainDb_ = input.readDouble(); - break; - } - case 40: { - - sampleRateHertz_ = input.readInt32(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + audioEncoding_ = rawValue; + break; } - effectsProfileId_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 17: + { + speakingRate_ = input.readDouble(); + break; + } + case 25: + { + pitch_ = input.readDouble(); + break; + } + case 33: + { + volumeGainDb_ = input.readDouble(); + break; + } + case 40: + { + sampleRateHertz_ = input.readInt32(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + effectsProfileId_.add(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)) { effectsProfileId_ = effectsProfileId_.getUnmodifiableView(); @@ -112,49 +130,69 @@ private AudioConfig( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.AudioConfig.class, com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder.class); + com.google.cloud.texttospeech.v1beta1.AudioConfig.class, + com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder.class); } public static final int AUDIO_ENCODING_FIELD_NUMBER = 1; private int audioEncoding_; /** + * + * *
    * Required. The format of the audio byte stream.
    * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for audioEncoding. */ - @java.lang.Override public int getAudioEncodingValue() { + @java.lang.Override + public int getAudioEncodingValue() { return audioEncoding_; } /** + * + * *
    * Required. The format of the audio byte stream.
    * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audioEncoding. */ - @java.lang.Override public com.google.cloud.texttospeech.v1beta1.AudioEncoding getAudioEncoding() { + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.AudioEncoding getAudioEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.AudioEncoding result = com.google.cloud.texttospeech.v1beta1.AudioEncoding.valueOf(audioEncoding_); - return result == null ? com.google.cloud.texttospeech.v1beta1.AudioEncoding.UNRECOGNIZED : result; + com.google.cloud.texttospeech.v1beta1.AudioEncoding result = + com.google.cloud.texttospeech.v1beta1.AudioEncoding.valueOf(audioEncoding_); + return result == null + ? com.google.cloud.texttospeech.v1beta1.AudioEncoding.UNRECOGNIZED + : result; } public static final int SPEAKING_RATE_FIELD_NUMBER = 2; private double speakingRate_; /** + * + * *
    * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
    * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -162,7 +200,10 @@ private AudioConfig(
    * speed. Any other values < 0.25 or > 4.0 will return an error.
    * 
* - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The speakingRate. */ @java.lang.Override @@ -173,13 +214,18 @@ public double getSpeakingRate() { public static final int PITCH_FIELD_NUMBER = 3; private double pitch_; /** + * + * *
    * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
    * increase 20 semitones from the original pitch. -20 means decrease 20
    * semitones from the original pitch.
    * 
* - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pitch. */ @java.lang.Override @@ -190,6 +236,8 @@ public double getPitch() { public static final int VOLUME_GAIN_DB_FIELD_NUMBER = 4; private double volumeGainDb_; /** + * + * *
    * Optional. Input only. Volume gain (in dB) of the normal native volume
    * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -201,7 +249,10 @@ public double getPitch() {
    * increase in loudness for any value greater than that.
    * 
* - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The volumeGainDb. */ @java.lang.Override @@ -212,6 +263,8 @@ public double getVolumeGainDb() { public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 5; private int sampleRateHertz_; /** + * + * *
    * Optional. The synthesis sample rate (in hertz) for this audio. When this is
    * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -223,6 +276,7 @@ public double getVolumeGainDb() {
    * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -233,6 +287,8 @@ public int getSampleRateHertz() { public static final int EFFECTS_PROFILE_ID_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList effectsProfileId_; /** + * + * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -242,14 +298,18 @@ public int getSampleRateHertz() {
    * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the effectsProfileId. */ - public com.google.protobuf.ProtocolStringList - getEffectsProfileIdList() { + public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { return effectsProfileId_; } /** + * + * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -259,13 +319,18 @@ public int getSampleRateHertz() {
    * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of effectsProfileId. */ public int getEffectsProfileIdCount() { return effectsProfileId_.size(); } /** + * + * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -275,7 +340,10 @@ public int getEffectsProfileIdCount() {
    * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The effectsProfileId at the given index. */ @@ -283,6 +351,8 @@ public java.lang.String getEffectsProfileId(int index) { return effectsProfileId_.get(index); } /** + * + * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -292,16 +362,19 @@ public java.lang.String getEffectsProfileId(int index) {
    * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. */ - public com.google.protobuf.ByteString - getEffectsProfileIdBytes(int index) { + public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { return effectsProfileId_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,9 +386,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (audioEncoding_ != com.google.cloud.texttospeech.v1beta1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (audioEncoding_ + != com.google.cloud.texttospeech.v1beta1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED + .getNumber()) { output.writeEnum(1, audioEncoding_); } if (speakingRate_ != 0D) { @@ -342,25 +416,22 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (audioEncoding_ != com.google.cloud.texttospeech.v1beta1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, audioEncoding_); + if (audioEncoding_ + != com.google.cloud.texttospeech.v1beta1.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, audioEncoding_); } if (speakingRate_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, speakingRate_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, speakingRate_); } if (pitch_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, pitch_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, pitch_); } if (volumeGainDb_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, volumeGainDb_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, volumeGainDb_); } if (sampleRateHertz_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, sampleRateHertz_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, sampleRateHertz_); } { int dataSize = 0; @@ -378,27 +449,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.texttospeech.v1beta1.AudioConfig)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.AudioConfig other = (com.google.cloud.texttospeech.v1beta1.AudioConfig) obj; + com.google.cloud.texttospeech.v1beta1.AudioConfig other = + (com.google.cloud.texttospeech.v1beta1.AudioConfig) obj; if (audioEncoding_ != other.audioEncoding_) return false; if (java.lang.Double.doubleToLongBits(getSpeakingRate()) - != java.lang.Double.doubleToLongBits( - other.getSpeakingRate())) return false; + != java.lang.Double.doubleToLongBits(other.getSpeakingRate())) return false; if (java.lang.Double.doubleToLongBits(getPitch()) - != java.lang.Double.doubleToLongBits( - other.getPitch())) return false; + != java.lang.Double.doubleToLongBits(other.getPitch())) return false; if (java.lang.Double.doubleToLongBits(getVolumeGainDb()) - != java.lang.Double.doubleToLongBits( - other.getVolumeGainDb())) return false; - if (getSampleRateHertz() - != other.getSampleRateHertz()) return false; - if (!getEffectsProfileIdList() - .equals(other.getEffectsProfileIdList())) return false; + != java.lang.Double.doubleToLongBits(other.getVolumeGainDb())) return false; + if (getSampleRateHertz() != other.getSampleRateHertz()) return false; + if (!getEffectsProfileIdList().equals(other.getEffectsProfileIdList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -413,14 +480,19 @@ public int hashCode() { hash = (37 * hash) + AUDIO_ENCODING_FIELD_NUMBER; hash = (53 * hash) + audioEncoding_; hash = (37 * hash) + SPEAKING_RATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getSpeakingRate())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSpeakingRate())); hash = (37 * hash) + PITCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getPitch())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getPitch())); hash = (37 * hash) + VOLUME_GAIN_DB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVolumeGainDb())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVolumeGainDb())); hash = (37 * hash) + SAMPLE_RATE_HERTZ_FIELD_NUMBER; hash = (53 * hash) + getSampleRateHertz(); if (getEffectsProfileIdCount() > 0) { @@ -433,117 +505,126 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.AudioConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.AudioConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Description of audio data to be synthesized.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.AudioConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.AudioConfig) com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.AudioConfig.class, com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder.class); + com.google.cloud.texttospeech.v1beta1.AudioConfig.class, + com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder.class); } // Construct using com.google.cloud.texttospeech.v1beta1.AudioConfig.newBuilder() @@ -551,16 +632,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(); @@ -580,9 +660,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor; } @java.lang.Override @@ -601,7 +681,8 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfig build() { @java.lang.Override public com.google.cloud.texttospeech.v1beta1.AudioConfig buildPartial() { - com.google.cloud.texttospeech.v1beta1.AudioConfig result = new com.google.cloud.texttospeech.v1beta1.AudioConfig(this); + com.google.cloud.texttospeech.v1beta1.AudioConfig result = + new com.google.cloud.texttospeech.v1beta1.AudioConfig(this); int from_bitField0_ = bitField0_; result.audioEncoding_ = audioEncoding_; result.speakingRate_ = speakingRate_; @@ -621,38 +702,39 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfig 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.texttospeech.v1beta1.AudioConfig) { - return mergeFrom((com.google.cloud.texttospeech.v1beta1.AudioConfig)other); + return mergeFrom((com.google.cloud.texttospeech.v1beta1.AudioConfig) other); } else { super.mergeFrom(other); return this; @@ -660,7 +742,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.AudioConfig other) { - if (other == com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance()) + return this; if (other.audioEncoding_ != 0) { setAudioEncodingValue(other.getAudioEncodingValue()); } @@ -705,7 +788,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.texttospeech.v1beta1.AudioConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.texttospeech.v1beta1.AudioConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -714,55 +798,80 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private int audioEncoding_ = 0; /** + * + * *
      * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for audioEncoding. */ - @java.lang.Override public int getAudioEncodingValue() { + @java.lang.Override + public int getAudioEncodingValue() { return audioEncoding_; } /** + * + * *
      * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for audioEncoding to set. * @return This builder for chaining. */ public Builder setAudioEncodingValue(int value) { - + audioEncoding_ = value; onChanged(); return this; } /** + * + * *
      * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audioEncoding. */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.AudioEncoding getAudioEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.AudioEncoding result = com.google.cloud.texttospeech.v1beta1.AudioEncoding.valueOf(audioEncoding_); - return result == null ? com.google.cloud.texttospeech.v1beta1.AudioEncoding.UNRECOGNIZED : result; + com.google.cloud.texttospeech.v1beta1.AudioEncoding result = + com.google.cloud.texttospeech.v1beta1.AudioEncoding.valueOf(audioEncoding_); + return result == null + ? com.google.cloud.texttospeech.v1beta1.AudioEncoding.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The audioEncoding to set. * @return This builder for chaining. */ @@ -770,28 +879,35 @@ public Builder setAudioEncoding(com.google.cloud.texttospeech.v1beta1.AudioEncod if (value == null) { throw new NullPointerException(); } - + audioEncoding_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearAudioEncoding() { - + audioEncoding_ = 0; onChanged(); return this; } - private double speakingRate_ ; + private double speakingRate_; /** + * + * *
      * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
      * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -799,7 +915,10 @@ public Builder clearAudioEncoding() {
      * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The speakingRate. */ @java.lang.Override @@ -807,6 +926,8 @@ public double getSpeakingRate() { return speakingRate_; } /** + * + * *
      * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
      * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -814,17 +935,22 @@ public double getSpeakingRate() {
      * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The speakingRate to set. * @return This builder for chaining. */ public Builder setSpeakingRate(double value) { - + speakingRate_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
      * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -832,25 +958,33 @@ public Builder setSpeakingRate(double value) {
      * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearSpeakingRate() { - + speakingRate_ = 0D; onChanged(); return this; } - private double pitch_ ; + private double pitch_; /** + * + * *
      * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
      * increase 20 semitones from the original pitch. -20 means decrease 20
      * semitones from the original pitch.
      * 
* - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pitch. */ @java.lang.Override @@ -858,41 +992,53 @@ public double getPitch() { return pitch_; } /** + * + * *
      * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
      * increase 20 semitones from the original pitch. -20 means decrease 20
      * semitones from the original pitch.
      * 
* - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The pitch to set. * @return This builder for chaining. */ public Builder setPitch(double value) { - + pitch_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
      * increase 20 semitones from the original pitch. -20 means decrease 20
      * semitones from the original pitch.
      * 
* - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearPitch() { - + pitch_ = 0D; onChanged(); return this; } - private double volumeGainDb_ ; + private double volumeGainDb_; /** + * + * *
      * Optional. Input only. Volume gain (in dB) of the normal native volume
      * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -904,7 +1050,10 @@ public Builder clearPitch() {
      * increase in loudness for any value greater than that.
      * 
* - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The volumeGainDb. */ @java.lang.Override @@ -912,6 +1061,8 @@ public double getVolumeGainDb() { return volumeGainDb_; } /** + * + * *
      * Optional. Input only. Volume gain (in dB) of the normal native volume
      * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -923,17 +1074,22 @@ public double getVolumeGainDb() {
      * increase in loudness for any value greater than that.
      * 
* - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The volumeGainDb to set. * @return This builder for chaining. */ public Builder setVolumeGainDb(double value) { - + volumeGainDb_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Input only. Volume gain (in dB) of the normal native volume
      * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -945,18 +1101,23 @@ public Builder setVolumeGainDb(double value) {
      * increase in loudness for any value greater than that.
      * 
* - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearVolumeGainDb() { - + volumeGainDb_ = 0D; onChanged(); return this; } - private int sampleRateHertz_ ; + private int sampleRateHertz_; /** + * + * *
      * Optional. The synthesis sample rate (in hertz) for this audio. When this is
      * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -968,6 +1129,7 @@ public Builder clearVolumeGainDb() {
      * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -975,6 +1137,8 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** + * + * *
      * Optional. The synthesis sample rate (in hertz) for this audio. When this is
      * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -986,16 +1150,19 @@ public int getSampleRateHertz() {
      * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The sampleRateHertz to set. * @return This builder for chaining. */ public Builder setSampleRateHertz(int value) { - + sampleRateHertz_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The synthesis sample rate (in hertz) for this audio. When this is
      * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -1007,23 +1174,28 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + sampleRateHertz_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList effectsProfileId_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureEffectsProfileIdIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(effectsProfileId_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1033,14 +1205,18 @@ private void ensureEffectsProfileIdIsMutable() {
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the effectsProfileId. */ - public com.google.protobuf.ProtocolStringList - getEffectsProfileIdList() { + public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { return effectsProfileId_.getUnmodifiableView(); } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1050,13 +1226,18 @@ private void ensureEffectsProfileIdIsMutable() {
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of effectsProfileId. */ public int getEffectsProfileIdCount() { return effectsProfileId_.size(); } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1066,7 +1247,10 @@ public int getEffectsProfileIdCount() {
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The effectsProfileId at the given index. */ @@ -1074,6 +1258,8 @@ public java.lang.String getEffectsProfileId(int index) { return effectsProfileId_.get(index); } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1083,15 +1269,19 @@ public java.lang.String getEffectsProfileId(int index) {
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. */ - public com.google.protobuf.ByteString - getEffectsProfileIdBytes(int index) { + public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { return effectsProfileId_.getByteString(index); } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1101,22 +1291,26 @@ public java.lang.String getEffectsProfileId(int index) {
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The effectsProfileId to set. * @return This builder for chaining. */ - public Builder setEffectsProfileId( - int index, java.lang.String value) { + public Builder setEffectsProfileId(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEffectsProfileIdIsMutable(); + throw new NullPointerException(); + } + ensureEffectsProfileIdIsMutable(); effectsProfileId_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1126,21 +1320,25 @@ public Builder setEffectsProfileId(
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The effectsProfileId to add. * @return This builder for chaining. */ - public Builder addEffectsProfileId( - java.lang.String value) { + public Builder addEffectsProfileId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureEffectsProfileIdIsMutable(); + throw new NullPointerException(); + } + ensureEffectsProfileIdIsMutable(); effectsProfileId_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1150,19 +1348,22 @@ public Builder addEffectsProfileId(
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The effectsProfileId to add. * @return This builder for chaining. */ - public Builder addAllEffectsProfileId( - java.lang.Iterable values) { + public Builder addAllEffectsProfileId(java.lang.Iterable values) { ensureEffectsProfileIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, effectsProfileId_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, effectsProfileId_); onChanged(); return this; } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1172,7 +1373,10 @@ public Builder addAllEffectsProfileId(
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEffectsProfileId() { @@ -1182,6 +1386,8 @@ public Builder clearEffectsProfileId() { return this; } /** + * + * *
      * Optional. Input only. An identifier which selects 'audio effects' profiles
      * that are applied on (post synthesized) text to speech. Effects are applied
@@ -1191,24 +1397,26 @@ public Builder clearEffectsProfileId() {
      * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the effectsProfileId to add. * @return This builder for chaining. */ - public Builder addEffectsProfileIdBytes( - com.google.protobuf.ByteString value) { + public Builder addEffectsProfileIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureEffectsProfileIdIsMutable(); effectsProfileId_.add(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); } @@ -1218,12 +1426,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.AudioConfig) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.AudioConfig) private static final com.google.cloud.texttospeech.v1beta1.AudioConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.AudioConfig(); } @@ -1232,16 +1440,16 @@ public static com.google.cloud.texttospeech.v1beta1.AudioConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AudioConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AudioConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudioConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AudioConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1256,6 +1464,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1beta1.AudioConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java index cfcd16a9..3825c9ff 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java @@ -1,32 +1,60 @@ +/* + * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; -public interface AudioConfigOrBuilder extends +public interface AudioConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.AudioConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The format of the audio byte stream.
    * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for audioEncoding. */ int getAudioEncodingValue(); /** + * + * *
    * Required. The format of the audio byte stream.
    * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audioEncoding. */ com.google.cloud.texttospeech.v1beta1.AudioEncoding getAudioEncoding(); /** + * + * *
    * Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
    * the normal native speed supported by the specific voice. 2.0 is twice as
@@ -34,24 +62,34 @@ public interface AudioConfigOrBuilder extends
    * speed. Any other values < 0.25 or > 4.0 will return an error.
    * 
* - * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The speakingRate. */ double getSpeakingRate(); /** + * + * *
    * Optional. Input only. Speaking pitch, in the range [-20.0, 20.0]. 20 means
    * increase 20 semitones from the original pitch. -20 means decrease 20
    * semitones from the original pitch.
    * 
* - * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The pitch. */ double getPitch(); /** + * + * *
    * Optional. Input only. Volume gain (in dB) of the normal native volume
    * supported by the specific voice, in the range [-96.0, 16.0]. If unset, or
@@ -63,12 +101,17 @@ public interface AudioConfigOrBuilder extends
    * increase in loudness for any value greater than that.
    * 
* - * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The volumeGainDb. */ double getVolumeGainDb(); /** + * + * *
    * Optional. The synthesis sample rate (in hertz) for this audio. When this is
    * specified in SynthesizeSpeechRequest, if this is different from the voice's
@@ -80,11 +123,14 @@ public interface AudioConfigOrBuilder extends
    * 
* * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** + * + * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -94,12 +140,16 @@ public interface AudioConfigOrBuilder extends
    * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the effectsProfileId. */ - java.util.List - getEffectsProfileIdList(); + java.util.List getEffectsProfileIdList(); /** + * + * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -109,11 +159,16 @@ public interface AudioConfigOrBuilder extends
    * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of effectsProfileId. */ int getEffectsProfileIdCount(); /** + * + * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -123,12 +178,17 @@ public interface AudioConfigOrBuilder extends
    * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The effectsProfileId at the given index. */ java.lang.String getEffectsProfileId(int index); /** + * + * *
    * Optional. Input only. An identifier which selects 'audio effects' profiles
    * that are applied on (post synthesized) text to speech. Effects are applied
@@ -138,10 +198,12 @@ public interface AudioConfigOrBuilder extends
    * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the effectsProfileId at the given index. */ - com.google.protobuf.ByteString - getEffectsProfileIdBytes(int index); + com.google.protobuf.ByteString getEffectsProfileIdBytes(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java index bae8b42d..706e6f33 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** + * + * *
  * Configuration to set up audio encoder. The encoding determines the output
  * audio format that we'd like.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.texttospeech.v1beta1.AudioEncoding}
  */
-public enum AudioEncoding
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
    * 
@@ -22,6 +40,8 @@ public enum AudioEncoding */ AUDIO_ENCODING_UNSPECIFIED(0), /** + * + * *
    * Uncompressed 16-bit signed little-endian samples (Linear PCM).
    * Audio content returned as LINEAR16 also contains a WAV header.
@@ -31,6 +51,8 @@ public enum AudioEncoding
    */
   LINEAR16(1),
   /**
+   *
+   *
    * 
    * MP3 audio at 32kbps.
    * 
@@ -39,6 +61,8 @@ public enum AudioEncoding */ MP3(2), /** + * + * *
    * MP3 at 64kbps.
    * 
@@ -47,6 +71,8 @@ public enum AudioEncoding */ MP3_64_KBPS(4), /** + * + * *
    * Opus encoded audio wrapped in an ogg container. The result will be a
    * file which can be played natively on Android, and in browsers (at least
@@ -58,6 +84,8 @@ public enum AudioEncoding
    */
   OGG_OPUS(3),
   /**
+   *
+   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
    * Audio content returned as MULAW also contains a WAV header.
@@ -67,6 +95,8 @@ public enum AudioEncoding
    */
   MULAW(5),
   /**
+   *
+   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law.
    * Audio content returned as ALAW also contains a WAV header.
@@ -79,6 +109,8 @@ public enum AudioEncoding
   ;
 
   /**
+   *
+   *
    * 
    * Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
    * 
@@ -87,6 +119,8 @@ public enum AudioEncoding */ public static final int AUDIO_ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Uncompressed 16-bit signed little-endian samples (Linear PCM).
    * Audio content returned as LINEAR16 also contains a WAV header.
@@ -96,6 +130,8 @@ public enum AudioEncoding
    */
   public static final int LINEAR16_VALUE = 1;
   /**
+   *
+   *
    * 
    * MP3 audio at 32kbps.
    * 
@@ -104,6 +140,8 @@ public enum AudioEncoding */ public static final int MP3_VALUE = 2; /** + * + * *
    * MP3 at 64kbps.
    * 
@@ -112,6 +150,8 @@ public enum AudioEncoding */ public static final int MP3_64_KBPS_VALUE = 4; /** + * + * *
    * Opus encoded audio wrapped in an ogg container. The result will be a
    * file which can be played natively on Android, and in browsers (at least
@@ -123,6 +163,8 @@ public enum AudioEncoding
    */
   public static final int OGG_OPUS_VALUE = 3;
   /**
+   *
+   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
    * Audio content returned as MULAW also contains a WAV header.
@@ -132,6 +174,8 @@ public enum AudioEncoding
    */
   public static final int MULAW_VALUE = 5;
   /**
+   *
+   *
    * 
    * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law.
    * Audio content returned as ALAW also contains a WAV header.
@@ -141,7 +185,6 @@ public enum AudioEncoding
    */
   public static final int ALAW_VALUE = 6;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -166,53 +209,59 @@ public static AudioEncoding valueOf(int value) {
    */
   public static AudioEncoding forNumber(int value) {
     switch (value) {
-      case 0: return AUDIO_ENCODING_UNSPECIFIED;
-      case 1: return LINEAR16;
-      case 2: return MP3;
-      case 4: return MP3_64_KBPS;
-      case 3: return OGG_OPUS;
-      case 5: return MULAW;
-      case 6: return ALAW;
-      default: return null;
+      case 0:
+        return AUDIO_ENCODING_UNSPECIFIED;
+      case 1:
+        return LINEAR16;
+      case 2:
+        return MP3;
+      case 4:
+        return MP3_64_KBPS;
+      case 3:
+        return OGG_OPUS;
+      case 5:
+        return MULAW;
+      case 6:
+        return ALAW;
+      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<
-      AudioEncoding> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public AudioEncoding findValueByNumber(int number) {
-            return AudioEncoding.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 AudioEncoding findValueByNumber(int number) {
+          return AudioEncoding.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.texttospeech.v1beta1.TextToSpeechProto.getDescriptor().getEnumTypes().get(1);
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.getDescriptor()
+        .getEnumTypes()
+        .get(1);
   }
 
   private static final AudioEncoding[] VALUES = values();
 
-  public static AudioEncoding valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static AudioEncoding 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;
@@ -228,4 +277,3 @@ private AudioEncoding(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.texttospeech.v1beta1.AudioEncoding)
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java
similarity index 64%
rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java
rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java
index f483ca26..cf3399d4 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java
+++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.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/texttospeech/v1beta1/cloud_tts.proto
 
 package com.google.cloud.texttospeech.v1beta1;
 
 /**
+ *
+ *
  * 
  * Description of the custom voice to be synthesized.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.CustomVoiceParams} */ -public final class CustomVoiceParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CustomVoiceParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.CustomVoiceParams) CustomVoiceParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomVoiceParams.newBuilder() to construct. private CustomVoiceParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CustomVoiceParams() { model_ = ""; reportedUsage_ = 0; @@ -26,16 +44,15 @@ private CustomVoiceParams() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CustomVoiceParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CustomVoiceParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,51 +71,57 @@ private CustomVoiceParams( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - model_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); + model_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - reportedUsage_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + reportedUsage_ = rawValue; + 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.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.class, com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder.class); + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.class, + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder.class); } /** + * + * *
    * The usage of the synthesized audio. You must report your honest and
    * correct usage of the service as it's regulated by contract and will cause
@@ -107,9 +130,10 @@ private CustomVoiceParams(
    *
    * Protobuf enum {@code google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage}
    */
-  public enum ReportedUsage
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum ReportedUsage implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Request with reported usage unspecified will be rejected.
      * 
@@ -118,6 +142,8 @@ public enum ReportedUsage */ REPORTED_USAGE_UNSPECIFIED(0), /** + * + * *
      * For scenarios where the synthesized audio is not downloadable and can
      * only be used once. For example, real-time request in IVR system.
@@ -127,6 +153,8 @@ public enum ReportedUsage
      */
     REALTIME(1),
     /**
+     *
+     *
      * 
      * For scenarios where the synthesized audio is downloadable and can be
      * reused. For example, the synthesized audio is downloaded, stored in
@@ -140,6 +168,8 @@ public enum ReportedUsage
     ;
 
     /**
+     *
+     *
      * 
      * Request with reported usage unspecified will be rejected.
      * 
@@ -148,6 +178,8 @@ public enum ReportedUsage */ public static final int REPORTED_USAGE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * For scenarios where the synthesized audio is not downloadable and can
      * only be used once. For example, real-time request in IVR system.
@@ -157,6 +189,8 @@ public enum ReportedUsage
      */
     public static final int REALTIME_VALUE = 1;
     /**
+     *
+     *
      * 
      * For scenarios where the synthesized audio is downloadable and can be
      * reused. For example, the synthesized audio is downloaded, stored in
@@ -167,7 +201,6 @@ public enum ReportedUsage
      */
     public static final int OFFLINE_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -192,49 +225,51 @@ public static ReportedUsage valueOf(int value) {
      */
     public static ReportedUsage forNumber(int value) {
       switch (value) {
-        case 0: return REPORTED_USAGE_UNSPECIFIED;
-        case 1: return REALTIME;
-        case 2: return OFFLINE;
-        default: return null;
+        case 0:
+          return REPORTED_USAGE_UNSPECIFIED;
+        case 1:
+          return REALTIME;
+        case 2:
+          return OFFLINE;
+        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<
-        ReportedUsage> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public ReportedUsage findValueByNumber(int number) {
-              return ReportedUsage.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 ReportedUsage findValueByNumber(int number) {
+            return ReportedUsage.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.texttospeech.v1beta1.CustomVoiceParams.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final ReportedUsage[] VALUES = values();
 
-    public static ReportedUsage valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static ReportedUsage 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;
@@ -254,11 +289,16 @@ private ReportedUsage(int value) {
   public static final int MODEL_FIELD_NUMBER = 1;
   private volatile java.lang.Object model_;
   /**
+   *
+   *
    * 
    * Required. The name of the AutoML model that synthesizes the custom voice.
    * 
* - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The model. */ @java.lang.Override @@ -267,29 +307,31 @@ 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; } } /** + * + * *
    * Required. The name of the AutoML model that synthesizes the custom voice.
    * 
* - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -300,31 +342,48 @@ public java.lang.String getModel() { public static final int REPORTED_USAGE_FIELD_NUMBER = 3; private int reportedUsage_; /** + * + * *
    * Optional. The usage of the synthesized audio to be reported.
    * 
* - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for reportedUsage. */ - @java.lang.Override public int getReportedUsageValue() { + @java.lang.Override + public int getReportedUsageValue() { return reportedUsage_; } /** + * + * *
    * Optional. The usage of the synthesized audio to be reported.
    * 
* - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reportedUsage. */ - @java.lang.Override public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage getReportedUsage() { + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage getReportedUsage() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage result = com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.valueOf(reportedUsage_); - return result == null ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.UNRECOGNIZED : result; + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage result = + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.valueOf( + reportedUsage_); + return result == null + ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,12 +395,14 @@ public final boolean isInitialized() { } @java.lang.Override - public 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(model_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_); } - if (reportedUsage_ != com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.REPORTED_USAGE_UNSPECIFIED.getNumber()) { + if (reportedUsage_ + != com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage + .REPORTED_USAGE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, reportedUsage_); } unknownFields.writeTo(output); @@ -356,9 +417,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, model_); } - if (reportedUsage_ != com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.REPORTED_USAGE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, reportedUsage_); + if (reportedUsage_ + != com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage + .REPORTED_USAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, reportedUsage_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -368,15 +431,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.texttospeech.v1beta1.CustomVoiceParams)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams other = (com.google.cloud.texttospeech.v1beta1.CustomVoiceParams) obj; + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams other = + (com.google.cloud.texttospeech.v1beta1.CustomVoiceParams) obj; - if (!getModel() - .equals(other.getModel())) return false; + if (!getModel().equals(other.getModel())) return false; if (reportedUsage_ != other.reportedUsage_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -399,117 +462,127 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.CustomVoiceParams prototype) { + + public static Builder newBuilder( + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Description of the custom voice to be synthesized.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.CustomVoiceParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.CustomVoiceParams) com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.class, com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder.class); + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.class, + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder.class); } // Construct using com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.newBuilder() @@ -517,16 +590,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(); @@ -538,9 +610,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor; } @java.lang.Override @@ -559,7 +631,8 @@ public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams build() { @java.lang.Override public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams buildPartial() { - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams result = new com.google.cloud.texttospeech.v1beta1.CustomVoiceParams(this); + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams result = + new com.google.cloud.texttospeech.v1beta1.CustomVoiceParams(this); result.model_ = model_; result.reportedUsage_ = reportedUsage_; onBuilt(); @@ -570,38 +643,39 @@ public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams 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.texttospeech.v1beta1.CustomVoiceParams) { - return mergeFrom((com.google.cloud.texttospeech.v1beta1.CustomVoiceParams)other); + return mergeFrom((com.google.cloud.texttospeech.v1beta1.CustomVoiceParams) other); } else { super.mergeFrom(other); return this; @@ -609,7 +683,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.CustomVoiceParams other) { - if (other == com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDefaultInstance()) return this; + if (other == com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDefaultInstance()) + return this; if (!other.getModel().isEmpty()) { model_ = other.model_; onChanged(); @@ -636,7 +711,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.texttospeech.v1beta1.CustomVoiceParams) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.texttospeech.v1beta1.CustomVoiceParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -648,18 +724,22 @@ public Builder mergeFrom( private java.lang.Object model_ = ""; /** + * + * *
      * Required. The name of the AutoML model that synthesizes the custom voice.
      * 
* - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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; @@ -668,20 +748,23 @@ public java.lang.String getModel() { } } /** + * + * *
      * Required. The name of the AutoML model that synthesizes the custom voice.
      * 
* - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -689,54 +772,67 @@ public java.lang.String getModel() { } } /** + * + * *
      * Required. The name of the AutoML model that synthesizes the custom voice.
      * 
* - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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; } /** + * + * *
      * Required. The name of the AutoML model that synthesizes the custom voice.
      * 
* - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Required. The name of the AutoML model that synthesizes the custom voice.
      * 
* - * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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; @@ -744,80 +840,112 @@ public Builder setModelBytes( private int reportedUsage_ = 0; /** + * + * *
      * Optional. The usage of the synthesized audio to be reported.
      * 
* - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for reportedUsage. */ - @java.lang.Override public int getReportedUsageValue() { + @java.lang.Override + public int getReportedUsageValue() { return reportedUsage_; } /** + * + * *
      * Optional. The usage of the synthesized audio to be reported.
      * 
* - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for reportedUsage to set. * @return This builder for chaining. */ public Builder setReportedUsageValue(int value) { - + reportedUsage_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The usage of the synthesized audio to be reported.
      * 
* - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reportedUsage. */ @java.lang.Override - public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage getReportedUsage() { + public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage + getReportedUsage() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage result = com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.valueOf(reportedUsage_); - return result == null ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.UNRECOGNIZED : result; + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage result = + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.valueOf( + reportedUsage_); + return result == null + ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The usage of the synthesized audio to be reported.
      * 
* - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The reportedUsage to set. * @return This builder for chaining. */ - public Builder setReportedUsage(com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage value) { + public Builder setReportedUsage( + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage value) { if (value == null) { throw new NullPointerException(); } - + reportedUsage_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The usage of the synthesized audio to be reported.
      * 
* - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearReportedUsage() { - + reportedUsage_ = 0; 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); } @@ -827,12 +955,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.CustomVoiceParams) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.CustomVoiceParams) private static final com.google.cloud.texttospeech.v1beta1.CustomVoiceParams DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.CustomVoiceParams(); } @@ -841,16 +969,16 @@ public static com.google.cloud.texttospeech.v1beta1.CustomVoiceParams getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomVoiceParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomVoiceParams(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomVoiceParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomVoiceParams(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -865,6 +993,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java new file mode 100644 index 00000000..7d9a5f16 --- /dev/null +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java @@ -0,0 +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/texttospeech/v1beta1/cloud_tts.proto + +package com.google.cloud.texttospeech.v1beta1; + +public interface CustomVoiceParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.CustomVoiceParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the AutoML model that synthesizes the custom voice.
+   * 
+ * + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The model. + */ + java.lang.String getModel(); + /** + * + * + *
+   * Required. The name of the AutoML model that synthesizes the custom voice.
+   * 
+ * + * + * string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for model. + */ + com.google.protobuf.ByteString getModelBytes(); + + /** + * + * + *
+   * Optional. The usage of the synthesized audio to be reported.
+   * 
+ * + * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for reportedUsage. + */ + int getReportedUsageValue(); + /** + * + * + *
+   * Optional. The usage of the synthesized audio to be reported.
+   * 
+ * + * + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The reportedUsage. + */ + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage getReportedUsage(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java index 7ba8fc48..3581ad5f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** + * + * *
  * The top-level message sent by the client for the `ListVoices` method.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.ListVoicesRequest} */ -public final class ListVoicesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListVoicesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.ListVoicesRequest) ListVoicesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListVoicesRequest.newBuilder() to construct. private ListVoicesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListVoicesRequest() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListVoicesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListVoicesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private ListVoicesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = 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.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.class, com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.Builder.class); + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.class, + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** + * + * *
    * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -106,6 +128,7 @@ private ListVoicesRequest(
    * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ @java.lang.Override @@ -114,14 +137,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; } } /** + * + * *
    * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -134,16 +158,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -152,6 +175,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,8 +187,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_); } @@ -188,15 +211,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.texttospeech.v1beta1.ListVoicesRequest)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest other = (com.google.cloud.texttospeech.v1beta1.ListVoicesRequest) obj; + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest other = + (com.google.cloud.texttospeech.v1beta1.ListVoicesRequest) obj; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -216,117 +239,127 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.ListVoicesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 top-level message sent by the client for the `ListVoices` method.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.ListVoicesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.ListVoicesRequest) com.google.cloud.texttospeech.v1beta1.ListVoicesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.class, com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.Builder.class); + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.class, + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.Builder.class); } // Construct using com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.newBuilder() @@ -334,16 +367,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(); @@ -353,9 +385,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor; } @java.lang.Override @@ -374,7 +406,8 @@ public com.google.cloud.texttospeech.v1beta1.ListVoicesRequest build() { @java.lang.Override public com.google.cloud.texttospeech.v1beta1.ListVoicesRequest buildPartial() { - com.google.cloud.texttospeech.v1beta1.ListVoicesRequest result = new com.google.cloud.texttospeech.v1beta1.ListVoicesRequest(this); + com.google.cloud.texttospeech.v1beta1.ListVoicesRequest result = + new com.google.cloud.texttospeech.v1beta1.ListVoicesRequest(this); result.languageCode_ = languageCode_; onBuilt(); return result; @@ -384,38 +417,39 @@ public com.google.cloud.texttospeech.v1beta1.ListVoicesRequest 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.texttospeech.v1beta1.ListVoicesRequest) { - return mergeFrom((com.google.cloud.texttospeech.v1beta1.ListVoicesRequest)other); + return mergeFrom((com.google.cloud.texttospeech.v1beta1.ListVoicesRequest) other); } else { super.mergeFrom(other); return this; @@ -423,7 +457,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.ListVoicesRequest other) { - if (other == com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.texttospeech.v1beta1.ListVoicesRequest.getDefaultInstance()) + return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -447,7 +482,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.texttospeech.v1beta1.ListVoicesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.texttospeech.v1beta1.ListVoicesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -459,6 +495,8 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** + * + * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -471,13 +509,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -486,6 +524,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -498,15 +538,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -514,6 +553,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -526,20 +567,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -552,15 +595,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -573,23 +619,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -599,12 +645,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.ListVoicesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.ListVoicesRequest) private static final com.google.cloud.texttospeech.v1beta1.ListVoicesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.ListVoicesRequest(); } @@ -613,16 +659,16 @@ public static com.google.cloud.texttospeech.v1beta1.ListVoicesRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVoicesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVoicesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVoicesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVoicesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -637,6 +683,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1beta1.ListVoicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java index bba7a6cd..5acb975b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; -public interface ListVoicesRequestOrBuilder extends +public interface ListVoicesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.ListVoicesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -20,10 +38,13 @@ public interface ListVoicesRequestOrBuilder extends
    * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -36,8 +57,8 @@ public interface ListVoicesRequestOrBuilder extends
    * 
* * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponse.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponse.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponse.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponse.java index 437f2038..6860e3bb 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponse.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponse.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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** + * + * *
  * The message returned to the client by the `ListVoices` method.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.ListVoicesResponse} */ -public final class ListVoicesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListVoicesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.ListVoicesResponse) ListVoicesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListVoicesResponse.newBuilder() to construct. private ListVoicesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListVoicesResponse() { voices_ = 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 ListVoicesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListVoicesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,29 +71,30 @@ private ListVoicesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - voices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + voices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + voices_.add( + input.readMessage( + com.google.cloud.texttospeech.v1beta1.Voice.parser(), extensionRegistry)); + break; } - voices_.add( - input.readMessage(com.google.cloud.texttospeech.v1beta1.Voice.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)) { voices_ = java.util.Collections.unmodifiableList(voices_); @@ -85,22 +103,27 @@ private ListVoicesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.class, com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.Builder.class); + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.class, + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.Builder.class); } public static final int VOICES_FIELD_NUMBER = 1; private java.util.List voices_; /** + * + * *
    * The list of voices.
    * 
@@ -112,6 +135,8 @@ public java.util.List getVoicesList return voices_; } /** + * + * *
    * The list of voices.
    * 
@@ -119,11 +144,13 @@ public java.util.List getVoicesList * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVoicesOrBuilderList() { return voices_; } /** + * + * *
    * The list of voices.
    * 
@@ -135,6 +162,8 @@ public int getVoicesCount() { return voices_.size(); } /** + * + * *
    * The list of voices.
    * 
@@ -146,6 +175,8 @@ public com.google.cloud.texttospeech.v1beta1.Voice getVoices(int index) { return voices_.get(index); } /** + * + * *
    * The list of voices.
    * 
@@ -153,12 +184,12 @@ public com.google.cloud.texttospeech.v1beta1.Voice getVoices(int index) { * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ @java.lang.Override - public com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder getVoicesOrBuilder( - int index) { + public com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder getVoicesOrBuilder(int index) { return voices_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +201,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 < voices_.size(); i++) { output.writeMessage(1, voices_.get(i)); } @@ -185,8 +215,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < voices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, voices_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, voices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -196,15 +225,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.texttospeech.v1beta1.ListVoicesResponse)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse other = (com.google.cloud.texttospeech.v1beta1.ListVoicesResponse) obj; + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse other = + (com.google.cloud.texttospeech.v1beta1.ListVoicesResponse) obj; - if (!getVoicesList() - .equals(other.getVoicesList())) return false; + if (!getVoicesList().equals(other.getVoicesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -226,117 +255,127 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.ListVoicesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message returned to the client by the `ListVoices` method.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.ListVoicesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.ListVoicesResponse) com.google.cloud.texttospeech.v1beta1.ListVoicesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.class, com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.Builder.class); + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.class, + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.Builder.class); } // Construct using com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.newBuilder() @@ -344,17 +383,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) { getVoicesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -368,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor; } @java.lang.Override @@ -389,7 +428,8 @@ public com.google.cloud.texttospeech.v1beta1.ListVoicesResponse build() { @java.lang.Override public com.google.cloud.texttospeech.v1beta1.ListVoicesResponse buildPartial() { - com.google.cloud.texttospeech.v1beta1.ListVoicesResponse result = new com.google.cloud.texttospeech.v1beta1.ListVoicesResponse(this); + com.google.cloud.texttospeech.v1beta1.ListVoicesResponse result = + new com.google.cloud.texttospeech.v1beta1.ListVoicesResponse(this); int from_bitField0_ = bitField0_; if (voicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -408,38 +448,39 @@ public com.google.cloud.texttospeech.v1beta1.ListVoicesResponse 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.texttospeech.v1beta1.ListVoicesResponse) { - return mergeFrom((com.google.cloud.texttospeech.v1beta1.ListVoicesResponse)other); + return mergeFrom((com.google.cloud.texttospeech.v1beta1.ListVoicesResponse) other); } else { super.mergeFrom(other); return this; @@ -447,7 +488,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.ListVoicesResponse other) { - if (other == com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.texttospeech.v1beta1.ListVoicesResponse.getDefaultInstance()) + return this; if (voicesBuilder_ == null) { if (!other.voices_.isEmpty()) { if (voices_.isEmpty()) { @@ -466,9 +508,10 @@ public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.ListVoicesRespons voicesBuilder_ = null; voices_ = other.voices_; bitField0_ = (bitField0_ & ~0x00000001); - voicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVoicesFieldBuilder() : null; + voicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVoicesFieldBuilder() + : null; } else { voicesBuilder_.addAllMessages(other.voices_); } @@ -493,7 +536,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.texttospeech.v1beta1.ListVoicesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.texttospeech.v1beta1.ListVoicesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -502,21 +546,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List voices_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVoicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { voices_ = new java.util.ArrayList(voices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.Voice, com.google.cloud.texttospeech.v1beta1.Voice.Builder, com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder> voicesBuilder_; + com.google.cloud.texttospeech.v1beta1.Voice, + com.google.cloud.texttospeech.v1beta1.Voice.Builder, + com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder> + voicesBuilder_; /** + * + * *
      * The list of voices.
      * 
@@ -531,6 +582,8 @@ public java.util.List getVoicesList } } /** + * + * *
      * The list of voices.
      * 
@@ -545,6 +598,8 @@ public int getVoicesCount() { } } /** + * + * *
      * The list of voices.
      * 
@@ -559,14 +614,15 @@ public com.google.cloud.texttospeech.v1beta1.Voice getVoices(int index) { } } /** + * + * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - public Builder setVoices( - int index, com.google.cloud.texttospeech.v1beta1.Voice value) { + public Builder setVoices(int index, com.google.cloud.texttospeech.v1beta1.Voice value) { if (voicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -580,6 +636,8 @@ public Builder setVoices( return this; } /** + * + * *
      * The list of voices.
      * 
@@ -598,6 +656,8 @@ public Builder setVoices( return this; } /** + * + * *
      * The list of voices.
      * 
@@ -618,14 +678,15 @@ public Builder addVoices(com.google.cloud.texttospeech.v1beta1.Voice value) { return this; } /** + * + * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - public Builder addVoices( - int index, com.google.cloud.texttospeech.v1beta1.Voice value) { + public Builder addVoices(int index, com.google.cloud.texttospeech.v1beta1.Voice value) { if (voicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -639,14 +700,15 @@ public Builder addVoices( return this; } /** + * + * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - public Builder addVoices( - com.google.cloud.texttospeech.v1beta1.Voice.Builder builderForValue) { + public Builder addVoices(com.google.cloud.texttospeech.v1beta1.Voice.Builder builderForValue) { if (voicesBuilder_ == null) { ensureVoicesIsMutable(); voices_.add(builderForValue.build()); @@ -657,6 +719,8 @@ public Builder addVoices( return this; } /** + * + * *
      * The list of voices.
      * 
@@ -675,6 +739,8 @@ public Builder addVoices( return this; } /** + * + * *
      * The list of voices.
      * 
@@ -685,8 +751,7 @@ public Builder addAllVoices( java.lang.Iterable values) { if (voicesBuilder_ == null) { ensureVoicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, voices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, voices_); onChanged(); } else { voicesBuilder_.addAllMessages(values); @@ -694,6 +759,8 @@ public Builder addAllVoices( return this; } /** + * + * *
      * The list of voices.
      * 
@@ -711,6 +778,8 @@ public Builder clearVoices() { return this; } /** + * + * *
      * The list of voices.
      * 
@@ -728,39 +797,44 @@ public Builder removeVoices(int index) { return this; } /** + * + * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - public com.google.cloud.texttospeech.v1beta1.Voice.Builder getVoicesBuilder( - int index) { + public com.google.cloud.texttospeech.v1beta1.Voice.Builder getVoicesBuilder(int index) { return getVoicesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - public com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder getVoicesOrBuilder( - int index) { + public com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder getVoicesOrBuilder(int index) { if (voicesBuilder_ == null) { - return voices_.get(index); } else { + return voices_.get(index); + } else { return voicesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - public java.util.List - getVoicesOrBuilderList() { + public java.util.List + getVoicesOrBuilderList() { if (voicesBuilder_ != null) { return voicesBuilder_.getMessageOrBuilderList(); } else { @@ -768,6 +842,8 @@ public com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder getVoicesOrBuilder( } } /** + * + * *
      * The list of voices.
      * 
@@ -775,49 +851,55 @@ public com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder getVoicesOrBuilder( * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ public com.google.cloud.texttospeech.v1beta1.Voice.Builder addVoicesBuilder() { - return getVoicesFieldBuilder().addBuilder( - com.google.cloud.texttospeech.v1beta1.Voice.getDefaultInstance()); + return getVoicesFieldBuilder() + .addBuilder(com.google.cloud.texttospeech.v1beta1.Voice.getDefaultInstance()); } /** + * + * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - public com.google.cloud.texttospeech.v1beta1.Voice.Builder addVoicesBuilder( - int index) { - return getVoicesFieldBuilder().addBuilder( - index, com.google.cloud.texttospeech.v1beta1.Voice.getDefaultInstance()); + public com.google.cloud.texttospeech.v1beta1.Voice.Builder addVoicesBuilder(int index) { + return getVoicesFieldBuilder() + .addBuilder(index, com.google.cloud.texttospeech.v1beta1.Voice.getDefaultInstance()); } /** + * + * *
      * The list of voices.
      * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - public java.util.List - getVoicesBuilderList() { + public java.util.List + getVoicesBuilderList() { return getVoicesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.Voice, com.google.cloud.texttospeech.v1beta1.Voice.Builder, com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder> + com.google.cloud.texttospeech.v1beta1.Voice, + com.google.cloud.texttospeech.v1beta1.Voice.Builder, + com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder> getVoicesFieldBuilder() { if (voicesBuilder_ == null) { - voicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.Voice, com.google.cloud.texttospeech.v1beta1.Voice.Builder, com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder>( - voices_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + voicesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.Voice, + com.google.cloud.texttospeech.v1beta1.Voice.Builder, + com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder>( + voices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); voices_ = null; } return voicesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -827,12 +909,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.ListVoicesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.ListVoicesResponse) private static final com.google.cloud.texttospeech.v1beta1.ListVoicesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.ListVoicesResponse(); } @@ -841,16 +923,16 @@ public static com.google.cloud.texttospeech.v1beta1.ListVoicesResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListVoicesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListVoicesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVoicesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListVoicesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -865,6 +947,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1beta1.ListVoicesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponseOrBuilder.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponseOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponseOrBuilder.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponseOrBuilder.java index 82ffccc5..807694a7 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponseOrBuilder.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesResponseOrBuilder.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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; -public interface ListVoicesResponseOrBuilder extends +public interface ListVoicesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.ListVoicesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of voices.
    * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - java.util.List - getVoicesList(); + java.util.List getVoicesList(); /** + * + * *
    * The list of voices.
    * 
@@ -25,6 +44,8 @@ public interface ListVoicesResponseOrBuilder extends */ com.google.cloud.texttospeech.v1beta1.Voice getVoices(int index); /** + * + * *
    * The list of voices.
    * 
@@ -33,21 +54,24 @@ public interface ListVoicesResponseOrBuilder extends */ int getVoicesCount(); /** + * + * *
    * The list of voices.
    * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - java.util.List + java.util.List getVoicesOrBuilderList(); /** + * + * *
    * The list of voices.
    * 
* * repeated .google.cloud.texttospeech.v1beta1.Voice voices = 1; */ - com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder getVoicesOrBuilder( - int index); + com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder getVoicesOrBuilder(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SsmlVoiceGender.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SsmlVoiceGender.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SsmlVoiceGender.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SsmlVoiceGender.java index 12408479..925a1456 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SsmlVoiceGender.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SsmlVoiceGender.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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** + * + * *
  * Gender of the voice as described in
  * [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.texttospeech.v1beta1.SsmlVoiceGender}
  */
-public enum SsmlVoiceGender
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * An unspecified gender.
    * In VoiceSelectionParams, this means that the client doesn't care which
@@ -26,6 +44,8 @@ public enum SsmlVoiceGender
    */
   SSML_VOICE_GENDER_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * A male voice.
    * 
@@ -34,6 +54,8 @@ public enum SsmlVoiceGender */ MALE(1), /** + * + * *
    * A female voice.
    * 
@@ -42,6 +64,8 @@ public enum SsmlVoiceGender */ FEMALE(2), /** + * + * *
    * A gender-neutral voice. This voice is not yet supported.
    * 
@@ -53,6 +77,8 @@ public enum SsmlVoiceGender ; /** + * + * *
    * An unspecified gender.
    * In VoiceSelectionParams, this means that the client doesn't care which
@@ -65,6 +91,8 @@ public enum SsmlVoiceGender
    */
   public static final int SSML_VOICE_GENDER_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * A male voice.
    * 
@@ -73,6 +101,8 @@ public enum SsmlVoiceGender */ public static final int MALE_VALUE = 1; /** + * + * *
    * A female voice.
    * 
@@ -81,6 +111,8 @@ public enum SsmlVoiceGender */ public static final int FEMALE_VALUE = 2; /** + * + * *
    * A gender-neutral voice. This voice is not yet supported.
    * 
@@ -89,7 +121,6 @@ public enum SsmlVoiceGender */ public static final int NEUTRAL_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -114,50 +145,53 @@ public static SsmlVoiceGender valueOf(int value) { */ public static SsmlVoiceGender forNumber(int value) { switch (value) { - case 0: return SSML_VOICE_GENDER_UNSPECIFIED; - case 1: return MALE; - case 2: return FEMALE; - case 3: return NEUTRAL; - default: return null; + case 0: + return SSML_VOICE_GENDER_UNSPECIFIED; + case 1: + return MALE; + case 2: + return FEMALE; + case 3: + return NEUTRAL; + 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< - SsmlVoiceGender> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SsmlVoiceGender findValueByNumber(int number) { - return SsmlVoiceGender.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 SsmlVoiceGender findValueByNumber(int number) { + return SsmlVoiceGender.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.texttospeech.v1beta1.TextToSpeechProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final SsmlVoiceGender[] VALUES = values(); - public static SsmlVoiceGender valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SsmlVoiceGender 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; @@ -173,4 +207,3 @@ private SsmlVoiceGender(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.texttospeech.v1beta1.SsmlVoiceGender) } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java index fbf4da01..2af78ba5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** + * + * *
  * Contains text input to be synthesized. Either `text` or `ssml` must be
  * supplied. Supplying both or neither returns
@@ -13,30 +30,29 @@
  *
  * Protobuf type {@code google.cloud.texttospeech.v1beta1.SynthesisInput}
  */
-public final class SynthesisInput extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SynthesisInput extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.SynthesisInput)
     SynthesisInputOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SynthesisInput.newBuilder() to construct.
   private SynthesisInput(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private SynthesisInput() {
-  }
+
+  private SynthesisInput() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SynthesisInput();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SynthesisInput(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,59 +71,66 @@ private SynthesisInput(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-            inputSourceCase_ = 1;
-            inputSource_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            inputSourceCase_ = 2;
-            inputSource_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              inputSourceCase_ = 1;
+              inputSource_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              inputSourceCase_ = 2;
+              inputSource_ = 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.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
+        .internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_fieldAccessorTable
+    return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
+        .internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.texttospeech.v1beta1.SynthesisInput.class, com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder.class);
+            com.google.cloud.texttospeech.v1beta1.SynthesisInput.class,
+            com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder.class);
   }
 
   private int inputSourceCase_ = 0;
   private java.lang.Object inputSource_;
+
   public enum InputSourceCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     TEXT(1),
     SSML(2),
     INPUTSOURCE_NOT_SET(0);
     private final int value;
+
     private InputSourceCase(int value) {
       this.value = value;
     }
@@ -123,41 +146,50 @@ public static InputSourceCase valueOf(int value) {
 
     public static InputSourceCase forNumber(int value) {
       switch (value) {
-        case 1: return TEXT;
-        case 2: return SSML;
-        case 0: return INPUTSOURCE_NOT_SET;
-        default: return null;
+        case 1:
+          return TEXT;
+        case 2:
+          return SSML;
+        case 0:
+          return INPUTSOURCE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public InputSourceCase
-  getInputSourceCase() {
-    return InputSourceCase.forNumber(
-        inputSourceCase_);
+  public InputSourceCase getInputSourceCase() {
+    return InputSourceCase.forNumber(inputSourceCase_);
   }
 
   public static final int TEXT_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * The raw text to be synthesized.
    * 
* * string text = 1; + * * @return Whether the text field is set. */ public boolean hasText() { return inputSourceCase_ == 1; } /** + * + * *
    * The raw text to be synthesized.
    * 
* * string text = 1; + * * @return The text. */ public java.lang.String getText() { @@ -168,8 +200,7 @@ public java.lang.String getText() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (inputSourceCase_ == 1) { inputSource_ = s; @@ -178,23 +209,24 @@ public java.lang.String getText() { } } /** + * + * *
    * The raw text to be synthesized.
    * 
* * string text = 1; + * * @return The bytes for text. */ - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = ""; if (inputSourceCase_ == 1) { ref = inputSource_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (inputSourceCase_ == 1) { inputSource_ = b; } @@ -206,6 +238,8 @@ public java.lang.String getText() { public static final int SSML_FIELD_NUMBER = 2; /** + * + * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -214,12 +248,15 @@ public java.lang.String getText() {
    * 
* * string ssml = 2; + * * @return Whether the ssml field is set. */ public boolean hasSsml() { return inputSourceCase_ == 2; } /** + * + * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -228,6 +265,7 @@ public boolean hasSsml() {
    * 
* * string ssml = 2; + * * @return The ssml. */ public java.lang.String getSsml() { @@ -238,8 +276,7 @@ public java.lang.String getSsml() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (inputSourceCase_ == 2) { inputSource_ = s; @@ -248,6 +285,8 @@ public java.lang.String getSsml() { } } /** + * + * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -256,18 +295,17 @@ public java.lang.String getSsml() {
    * 
* * string ssml = 2; + * * @return The bytes for ssml. */ - public com.google.protobuf.ByteString - getSsmlBytes() { + public com.google.protobuf.ByteString getSsmlBytes() { java.lang.Object ref = ""; if (inputSourceCase_ == 2) { ref = inputSource_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (inputSourceCase_ == 2) { inputSource_ = b; } @@ -278,6 +316,7 @@ public java.lang.String getSsml() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +328,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 (inputSourceCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputSource_); } @@ -320,22 +358,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.texttospeech.v1beta1.SynthesisInput)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.SynthesisInput other = (com.google.cloud.texttospeech.v1beta1.SynthesisInput) obj; + com.google.cloud.texttospeech.v1beta1.SynthesisInput other = + (com.google.cloud.texttospeech.v1beta1.SynthesisInput) obj; if (!getInputSourceCase().equals(other.getInputSourceCase())) return false; switch (inputSourceCase_) { case 1: - if (!getText() - .equals(other.getText())) return false; + if (!getText().equals(other.getText())) return false; break; case 2: - if (!getSsml() - .equals(other.getSsml())) return false; + if (!getSsml().equals(other.getSsml())) return false; break; case 0: default: @@ -369,96 +406,103 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.SynthesisInput parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.SynthesisInput prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains text input to be synthesized. Either `text` or `ssml` must be
    * supplied. Supplying both or neither returns
@@ -468,21 +512,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.texttospeech.v1beta1.SynthesisInput}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.SynthesisInput)
       com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
+          .internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_fieldAccessorTable
+      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
+          .internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.texttospeech.v1beta1.SynthesisInput.class, com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder.class);
+              com.google.cloud.texttospeech.v1beta1.SynthesisInput.class,
+              com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder.class);
     }
 
     // Construct using com.google.cloud.texttospeech.v1beta1.SynthesisInput.newBuilder()
@@ -490,16 +536,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();
@@ -509,9 +554,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
+          .internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor;
     }
 
     @java.lang.Override
@@ -530,7 +575,8 @@ public com.google.cloud.texttospeech.v1beta1.SynthesisInput build() {
 
     @java.lang.Override
     public com.google.cloud.texttospeech.v1beta1.SynthesisInput buildPartial() {
-      com.google.cloud.texttospeech.v1beta1.SynthesisInput result = new com.google.cloud.texttospeech.v1beta1.SynthesisInput(this);
+      com.google.cloud.texttospeech.v1beta1.SynthesisInput result =
+          new com.google.cloud.texttospeech.v1beta1.SynthesisInput(this);
       if (inputSourceCase_ == 1) {
         result.inputSource_ = inputSource_;
       }
@@ -546,38 +592,39 @@ public com.google.cloud.texttospeech.v1beta1.SynthesisInput 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.texttospeech.v1beta1.SynthesisInput) {
-        return mergeFrom((com.google.cloud.texttospeech.v1beta1.SynthesisInput)other);
+        return mergeFrom((com.google.cloud.texttospeech.v1beta1.SynthesisInput) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -585,23 +632,27 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.SynthesisInput other) {
-      if (other == com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance()) return this;
+      if (other == com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance())
+        return this;
       switch (other.getInputSourceCase()) {
-        case TEXT: {
-          inputSourceCase_ = 1;
-          inputSource_ = other.inputSource_;
-          onChanged();
-          break;
-        }
-        case SSML: {
-          inputSourceCase_ = 2;
-          inputSource_ = other.inputSource_;
-          onChanged();
-          break;
-        }
-        case INPUTSOURCE_NOT_SET: {
-          break;
-        }
+        case TEXT:
+          {
+            inputSourceCase_ = 1;
+            inputSource_ = other.inputSource_;
+            onChanged();
+            break;
+          }
+        case SSML:
+          {
+            inputSourceCase_ = 2;
+            inputSource_ = other.inputSource_;
+            onChanged();
+            break;
+          }
+        case INPUTSOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -622,7 +673,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.texttospeech.v1beta1.SynthesisInput) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.texttospeech.v1beta1.SynthesisInput) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -631,12 +683,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int inputSourceCase_ = 0;
     private java.lang.Object inputSource_;
-    public InputSourceCase
-        getInputSourceCase() {
-      return InputSourceCase.forNumber(
-          inputSourceCase_);
+
+    public InputSourceCase getInputSourceCase() {
+      return InputSourceCase.forNumber(inputSourceCase_);
     }
 
     public Builder clearInputSource() {
@@ -646,13 +698,15 @@ public Builder clearInputSource() {
       return this;
     }
 
-
     /**
+     *
+     *
      * 
      * The raw text to be synthesized.
      * 
* * string text = 1; + * * @return Whether the text field is set. */ @java.lang.Override @@ -660,11 +714,14 @@ public boolean hasText() { return inputSourceCase_ == 1; } /** + * + * *
      * The raw text to be synthesized.
      * 
* * string text = 1; + * * @return The text. */ @java.lang.Override @@ -674,8 +731,7 @@ public java.lang.String getText() { ref = inputSource_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (inputSourceCase_ == 1) { inputSource_ = s; @@ -686,24 +742,25 @@ public java.lang.String getText() { } } /** + * + * *
      * The raw text to be synthesized.
      * 
* * string text = 1; + * * @return The bytes for text. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextBytes() { + public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = ""; if (inputSourceCase_ == 1) { ref = inputSource_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (inputSourceCase_ == 1) { inputSource_ = b; } @@ -713,30 +770,35 @@ public java.lang.String getText() { } } /** + * + * *
      * The raw text to be synthesized.
      * 
* * string text = 1; + * * @param value The text to set. * @return This builder for chaining. */ - public Builder setText( - java.lang.String value) { + public Builder setText(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - inputSourceCase_ = 1; + throw new NullPointerException(); + } + inputSourceCase_ = 1; inputSource_ = value; onChanged(); return this; } /** + * + * *
      * The raw text to be synthesized.
      * 
* * string text = 1; + * * @return This builder for chaining. */ public Builder clearText() { @@ -748,20 +810,22 @@ public Builder clearText() { return this; } /** + * + * *
      * The raw text to be synthesized.
      * 
* * string text = 1; + * * @param value The bytes for text to set. * @return This builder for chaining. */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { + public Builder setTextBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); inputSourceCase_ = 1; inputSource_ = value; onChanged(); @@ -769,6 +833,8 @@ public Builder setTextBytes( } /** + * + * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -777,6 +843,7 @@ public Builder setTextBytes(
      * 
* * string ssml = 2; + * * @return Whether the ssml field is set. */ @java.lang.Override @@ -784,6 +851,8 @@ public boolean hasSsml() { return inputSourceCase_ == 2; } /** + * + * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -792,6 +861,7 @@ public boolean hasSsml() {
      * 
* * string ssml = 2; + * * @return The ssml. */ @java.lang.Override @@ -801,8 +871,7 @@ public java.lang.String getSsml() { ref = inputSource_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (inputSourceCase_ == 2) { inputSource_ = s; @@ -813,6 +882,8 @@ public java.lang.String getSsml() { } } /** + * + * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -821,19 +892,18 @@ public java.lang.String getSsml() {
      * 
* * string ssml = 2; + * * @return The bytes for ssml. */ @java.lang.Override - public com.google.protobuf.ByteString - getSsmlBytes() { + public com.google.protobuf.ByteString getSsmlBytes() { java.lang.Object ref = ""; if (inputSourceCase_ == 2) { ref = inputSource_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (inputSourceCase_ == 2) { inputSource_ = b; } @@ -843,6 +913,8 @@ public java.lang.String getSsml() { } } /** + * + * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -851,20 +923,22 @@ public java.lang.String getSsml() {
      * 
* * string ssml = 2; + * * @param value The ssml to set. * @return This builder for chaining. */ - public Builder setSsml( - java.lang.String value) { + public Builder setSsml(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - inputSourceCase_ = 2; + throw new NullPointerException(); + } + inputSourceCase_ = 2; inputSource_ = value; onChanged(); return this; } /** + * + * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -873,6 +947,7 @@ public Builder setSsml(
      * 
* * string ssml = 2; + * * @return This builder for chaining. */ public Builder clearSsml() { @@ -884,6 +959,8 @@ public Builder clearSsml() { return this; } /** + * + * *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
@@ -892,23 +969,23 @@ public Builder clearSsml() {
      * 
* * string ssml = 2; + * * @param value The bytes for ssml to set. * @return This builder for chaining. */ - public Builder setSsmlBytes( - com.google.protobuf.ByteString value) { + public Builder setSsmlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); inputSourceCase_ = 2; inputSource_ = 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); } @@ -918,12 +995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.SynthesisInput) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.SynthesisInput) private static final com.google.cloud.texttospeech.v1beta1.SynthesisInput DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.SynthesisInput(); } @@ -932,16 +1009,16 @@ public static com.google.cloud.texttospeech.v1beta1.SynthesisInput getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SynthesisInput parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SynthesisInput(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SynthesisInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SynthesisInput(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -956,6 +1033,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1beta1.SynthesisInput getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java index cb497693..b8c202e5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java @@ -1,42 +1,68 @@ +/* + * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; -public interface SynthesisInputOrBuilder extends +public interface SynthesisInputOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.SynthesisInput) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The raw text to be synthesized.
    * 
* * string text = 1; + * * @return Whether the text field is set. */ boolean hasText(); /** + * + * *
    * The raw text to be synthesized.
    * 
* * string text = 1; + * * @return The text. */ java.lang.String getText(); /** + * + * *
    * The raw text to be synthesized.
    * 
* * string text = 1; + * * @return The bytes for text. */ - com.google.protobuf.ByteString - getTextBytes(); + com.google.protobuf.ByteString getTextBytes(); /** + * + * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -45,10 +71,13 @@ public interface SynthesisInputOrBuilder extends
    * 
* * string ssml = 2; + * * @return Whether the ssml field is set. */ boolean hasSsml(); /** + * + * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -57,10 +86,13 @@ public interface SynthesisInputOrBuilder extends
    * 
* * string ssml = 2; + * * @return The ssml. */ java.lang.String getSsml(); /** + * + * *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
@@ -69,10 +101,10 @@ public interface SynthesisInputOrBuilder extends
    * 
* * string ssml = 2; + * * @return The bytes for ssml. */ - com.google.protobuf.ByteString - getSsmlBytes(); + com.google.protobuf.ByteString getSsmlBytes(); public com.google.cloud.texttospeech.v1beta1.SynthesisInput.InputSourceCase getInputSourceCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java index 62668458..47163cec 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** + * + * *
  * The top-level message sent by the client for the `SynthesizeSpeech` method.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest} */ -public final class SynthesizeSpeechRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SynthesizeSpeechRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) SynthesizeSpeechRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SynthesizeSpeechRequest.newBuilder() to construct. private SynthesizeSpeechRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SynthesizeSpeechRequest() { enableTimePointing_ = 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 SynthesizeSpeechRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SynthesizeSpeechRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,82 +71,95 @@ private SynthesizeSpeechRequest( case 0: done = true; break; - case 10: { - com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder subBuilder = null; - if (input_ != null) { - subBuilder = input_.toBuilder(); - } - input_ = input.readMessage(com.google.cloud.texttospeech.v1beta1.SynthesisInput.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(input_); - input_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder subBuilder = null; + if (input_ != null) { + subBuilder = input_.toBuilder(); + } + input_ = + input.readMessage( + com.google.cloud.texttospeech.v1beta1.SynthesisInput.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(input_); + input_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder subBuilder = null; - if (voice_ != null) { - subBuilder = voice_.toBuilder(); - } - voice_ = input.readMessage(com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(voice_); - voice_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder subBuilder = null; + if (voice_ != null) { + subBuilder = voice_.toBuilder(); + } + voice_ = + input.readMessage( + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(voice_); + voice_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder subBuilder = null; - if (audioConfig_ != null) { - subBuilder = audioConfig_.toBuilder(); - } - audioConfig_ = input.readMessage(com.google.cloud.texttospeech.v1beta1.AudioConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(audioConfig_); - audioConfig_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder subBuilder = null; + if (audioConfig_ != null) { + subBuilder = audioConfig_.toBuilder(); + } + audioConfig_ = + input.readMessage( + com.google.cloud.texttospeech.v1beta1.AudioConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audioConfig_); + audioConfig_ = subBuilder.buildPartial(); + } - break; - } - case 32: { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - enableTimePointing_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + break; } - enableTimePointing_.add(rawValue); - break; - } - case 34: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 32: + { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { enableTimePointing_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } enableTimePointing_.add(rawValue); + break; } - input.popLimit(oldLimit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 34: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + enableTimePointing_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + enableTimePointing_.add(rawValue); + } + input.popLimit(oldLimit); + 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)) { enableTimePointing_ = java.util.Collections.unmodifiableList(enableTimePointing_); @@ -138,29 +168,35 @@ private SynthesizeSpeechRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.class, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.Builder.class); + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.class, + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.Builder.class); } /** + * + * *
    * The type of timepoint information that is returned in the response.
    * 
* * Protobuf enum {@code google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType} */ - public enum TimepointType - implements com.google.protobuf.ProtocolMessageEnum { + public enum TimepointType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not specified. No timepoint information will be returned.
      * 
@@ -169,6 +205,8 @@ public enum TimepointType */ TIMEPOINT_TYPE_UNSPECIFIED(0), /** + * + * *
      * Timepoint information of `<mark>` tags in SSML input will be returned.
      * 
@@ -180,6 +218,8 @@ public enum TimepointType ; /** + * + * *
      * Not specified. No timepoint information will be returned.
      * 
@@ -188,6 +228,8 @@ public enum TimepointType */ public static final int TIMEPOINT_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Timepoint information of `<mark>` tags in SSML input will be returned.
      * 
@@ -196,7 +238,6 @@ public enum TimepointType */ public static final int SSML_MARK_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -221,48 +262,49 @@ public static TimepointType valueOf(int value) { */ public static TimepointType forNumber(int value) { switch (value) { - case 0: return TIMEPOINT_TYPE_UNSPECIFIED; - case 1: return SSML_MARK; - default: return null; + case 0: + return TIMEPOINT_TYPE_UNSPECIFIED; + case 1: + return SSML_MARK; + 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< - TimepointType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TimepointType findValueByNumber(int number) { - return TimepointType.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 TimepointType findValueByNumber(int number) { + return TimepointType.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.texttospeech.v1beta1.SynthesizeSpeechRequest.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.getDescriptor() + .getEnumTypes() + .get(0); } private static final TimepointType[] VALUES = values(); - public static TimepointType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TimepointType 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; @@ -282,11 +324,16 @@ private TimepointType(int value) { public static final int INPUT_FIELD_NUMBER = 1; private com.google.cloud.texttospeech.v1beta1.SynthesisInput input_; /** + * + * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the input field is set. */ @java.lang.Override @@ -294,23 +341,34 @@ public boolean hasInput() { return input_ != null; } /** + * + * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The input. */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.SynthesisInput getInput() { - return input_ == null ? com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance() : input_; + return input_ == null + ? com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance() + : input_; } /** + * + * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder getInputOrBuilder() { @@ -320,11 +378,16 @@ public com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder getInputOrB public static final int VOICE_FIELD_NUMBER = 2; private com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice_; /** + * + * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the voice field is set. */ @java.lang.Override @@ -332,23 +395,34 @@ public boolean hasVoice() { return voice_ != null; } /** + * + * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The voice. */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams getVoice() { - return voice_ == null ? com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.getDefaultInstance() : voice_; + return voice_ == null + ? com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.getDefaultInstance() + : voice_; } /** + * + * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { @@ -358,11 +432,16 @@ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder getVo public static final int AUDIO_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.texttospeech.v1beta1.AudioConfig audioConfig_; /** + * + * *
    * Required. The configuration of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audioConfig field is set. */ @java.lang.Override @@ -370,23 +449,34 @@ public boolean hasAudioConfig() { return audioConfig_ != null; } /** + * + * *
    * Required. The configuration of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audioConfig. */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.AudioConfig getAudioConfig() { - return audioConfig_ == null ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() : audioConfig_; + return audioConfig_ == null + ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() + : audioConfig_; } /** + * + * *
    * Required. The configuration of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfigOrBuilder() { @@ -396,34 +486,56 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfig public static final int ENABLE_TIME_POINTING_FIELD_NUMBER = 4; private java.util.List enableTimePointing_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType> enableTimePointing_converter_ = + java.lang.Integer, + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType> + enableTimePointing_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType>() { - public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType convert(java.lang.Integer from) { + java.lang.Integer, + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType>() { + public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType + convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType result = com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType.valueOf(from); - return result == null ? com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType.UNRECOGNIZED : result; + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType result = + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType + .valueOf(from); + return result == null + ? com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType + .UNRECOGNIZED + : result; } }; /** + * + * *
    * Whether and what timepoints are returned in the response.
    * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @return A list containing the enableTimePointing. */ @java.lang.Override - public java.util.List getEnableTimePointingList() { + public java.util.List + getEnableTimePointingList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType>(enableTimePointing_, enableTimePointing_converter_); + java.lang.Integer, + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType>( + enableTimePointing_, enableTimePointing_converter_); } /** + * + * *
    * Whether and what timepoints are returned in the response.
    * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @return The count of enableTimePointing. */ @java.lang.Override @@ -431,37 +543,52 @@ public int getEnableTimePointingCount() { return enableTimePointing_.size(); } /** + * + * *
    * Whether and what timepoints are returned in the response.
    * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @param index The index of the element to return. * @return The enableTimePointing at the given index. */ @java.lang.Override - public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType getEnableTimePointing(int index) { + public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType + getEnableTimePointing(int index) { return enableTimePointing_converter_.convert(enableTimePointing_.get(index)); } /** + * + * *
    * Whether and what timepoints are returned in the response.
    * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @return A list containing the enum numeric values on the wire for enableTimePointing. */ @java.lang.Override - public java.util.List - getEnableTimePointingValueList() { + public java.util.List getEnableTimePointingValueList() { return enableTimePointing_; } /** + * + * *
    * Whether and what timepoints are returned in the response.
    * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of enableTimePointing at the given index. */ @@ -469,9 +596,11 @@ public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointTy public int getEnableTimePointingValue(int index) { return enableTimePointing_.get(index); } + private int enableTimePointingMemoizedSerializedSize; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -483,8 +612,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 { getSerializedSize(); if (input_ != null) { output.writeMessage(1, getInput()); @@ -512,28 +640,26 @@ public int getSerializedSize() { size = 0; if (input_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInput()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInput()); } if (voice_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getVoice()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVoice()); } if (audioConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAudioConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAudioConfig()); } { int dataSize = 0; for (int i = 0; i < enableTimePointing_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(enableTimePointing_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(enableTimePointing_.get(i)); } size += dataSize; - if (!getEnableTimePointingList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }enableTimePointingMemoizedSerializedSize = dataSize; + if (!getEnableTimePointingList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + enableTimePointingMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -543,27 +669,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.texttospeech.v1beta1.SynthesizeSpeechRequest)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest other = (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) obj; + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest other = + (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) obj; if (hasInput() != other.hasInput()) return false; if (hasInput()) { - if (!getInput() - .equals(other.getInput())) return false; + if (!getInput().equals(other.getInput())) return false; } if (hasVoice() != other.hasVoice()) return false; if (hasVoice()) { - if (!getVoice() - .equals(other.getVoice())) return false; + if (!getVoice().equals(other.getVoice())) return false; } if (hasAudioConfig() != other.hasAudioConfig()) return false; if (hasAudioConfig()) { - if (!getAudioConfig() - .equals(other.getAudioConfig())) return false; + if (!getAudioConfig().equals(other.getAudioConfig())) return false; } if (!enableTimePointing_.equals(other.enableTimePointing_)) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -599,117 +723,127 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 top-level message sent by the client for the `SynthesizeSpeech` method.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.class, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.Builder.class); + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.class, + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.Builder.class); } // Construct using com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.newBuilder() @@ -717,16 +851,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(); @@ -754,13 +887,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor; } @java.lang.Override - public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest getDefaultInstanceForType() { + public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest + getDefaultInstanceForType() { return com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.getDefaultInstance(); } @@ -775,7 +909,8 @@ public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest build() { @java.lang.Override public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest buildPartial() { - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest result = new com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest(this); + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest result = + new com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest(this); int from_bitField0_ = bitField0_; if (inputBuilder_ == null) { result.input_ = input_; @@ -805,38 +940,39 @@ public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) { - return mergeFrom((com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest)other); + return mergeFrom((com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) other); } else { super.mergeFrom(other); return this; @@ -844,7 +980,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest other) { - if (other == com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.getDefaultInstance()) + return this; if (other.hasInput()) { mergeInput(other.getInput()); } @@ -883,7 +1021,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -892,43 +1032,63 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.texttospeech.v1beta1.SynthesisInput input_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.SynthesisInput, com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder, com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder> inputBuilder_; + com.google.cloud.texttospeech.v1beta1.SynthesisInput, + com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder, + com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder> + inputBuilder_; /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the input field is set. */ public boolean hasInput() { return inputBuilder_ != null || input_ != null; } /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The input. */ public com.google.cloud.texttospeech.v1beta1.SynthesisInput getInput() { if (inputBuilder_ == null) { - return input_ == null ? com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance() : input_; + return input_ == null + ? com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance() + : input_; } else { return inputBuilder_.getMessage(); } } /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInput(com.google.cloud.texttospeech.v1beta1.SynthesisInput value) { if (inputBuilder_ == null) { @@ -944,11 +1104,15 @@ public Builder setInput(com.google.cloud.texttospeech.v1beta1.SynthesisInput val return this; } /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInput( com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder builderForValue) { @@ -962,17 +1126,23 @@ public Builder setInput( return this; } /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInput(com.google.cloud.texttospeech.v1beta1.SynthesisInput value) { if (inputBuilder_ == null) { if (input_ != null) { input_ = - com.google.cloud.texttospeech.v1beta1.SynthesisInput.newBuilder(input_).mergeFrom(value).buildPartial(); + com.google.cloud.texttospeech.v1beta1.SynthesisInput.newBuilder(input_) + .mergeFrom(value) + .buildPartial(); } else { input_ = value; } @@ -984,11 +1154,15 @@ public Builder mergeInput(com.google.cloud.texttospeech.v1beta1.SynthesisInput v return this; } /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInput() { if (inputBuilder_ == null) { @@ -1002,48 +1176,64 @@ public Builder clearInput() { return this; } /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder getInputBuilder() { - + onChanged(); return getInputFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { return inputBuilder_.getMessageOrBuilder(); } else { - return input_ == null ? - com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance() : input_; + return input_ == null + ? com.google.cloud.texttospeech.v1beta1.SynthesisInput.getDefaultInstance() + : input_; } } /** + * + * *
      * Required. The Synthesizer requires either plain text or SSML as input.
      * 
* - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.SynthesisInput, com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder, com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder> + com.google.cloud.texttospeech.v1beta1.SynthesisInput, + com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder, + com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder> getInputFieldBuilder() { if (inputBuilder_ == null) { - inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.SynthesisInput, com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder, com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder>( - getInput(), - getParentForChildren(), - isClean()); + inputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.SynthesisInput, + com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder, + com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder>( + getInput(), getParentForChildren(), isClean()); input_ = null; } return inputBuilder_; @@ -1051,39 +1241,58 @@ public com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder getInputOrB private com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams, com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder, com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder> voiceBuilder_; + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams, + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder, + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder> + voiceBuilder_; /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the voice field is set. */ public boolean hasVoice() { return voiceBuilder_ != null || voice_ != null; } /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The voice. */ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams getVoice() { if (voiceBuilder_ == null) { - return voice_ == null ? com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.getDefaultInstance() : voice_; + return voice_ == null + ? com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.getDefaultInstance() + : voice_; } else { return voiceBuilder_.getMessage(); } } /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setVoice(com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams value) { if (voiceBuilder_ == null) { @@ -1099,11 +1308,15 @@ public Builder setVoice(com.google.cloud.texttospeech.v1beta1.VoiceSelectionPara return this; } /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setVoice( com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder builderForValue) { @@ -1117,17 +1330,23 @@ public Builder setVoice( return this; } /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeVoice(com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams value) { if (voiceBuilder_ == null) { if (voice_ != null) { voice_ = - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.newBuilder(voice_).mergeFrom(value).buildPartial(); + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.newBuilder(voice_) + .mergeFrom(value) + .buildPartial(); } else { voice_ = value; } @@ -1139,11 +1358,15 @@ public Builder mergeVoice(com.google.cloud.texttospeech.v1beta1.VoiceSelectionPa return this; } /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearVoice() { if (voiceBuilder_ == null) { @@ -1157,48 +1380,64 @@ public Builder clearVoice() { return this; } /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder getVoiceBuilder() { - + onChanged(); return getVoiceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { if (voiceBuilder_ != null) { return voiceBuilder_.getMessageOrBuilder(); } else { - return voice_ == null ? - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.getDefaultInstance() : voice_; + return voice_ == null + ? com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.getDefaultInstance() + : voice_; } } /** + * + * *
      * Required. The desired voice of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams, com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder, com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder> + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams, + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder, + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder> getVoiceFieldBuilder() { if (voiceBuilder_ == null) { - voiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams, com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder, com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder>( - getVoice(), - getParentForChildren(), - isClean()); + voiceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams, + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder, + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder>( + getVoice(), getParentForChildren(), isClean()); voice_ = null; } return voiceBuilder_; @@ -1206,39 +1445,58 @@ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder getVo private com.google.cloud.texttospeech.v1beta1.AudioConfig audioConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.AudioConfig, com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder> audioConfigBuilder_; + com.google.cloud.texttospeech.v1beta1.AudioConfig, + com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, + com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder> + audioConfigBuilder_; /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audioConfig field is set. */ public boolean hasAudioConfig() { return audioConfigBuilder_ != null || audioConfig_ != null; } /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audioConfig. */ public com.google.cloud.texttospeech.v1beta1.AudioConfig getAudioConfig() { if (audioConfigBuilder_ == null) { - return audioConfig_ == null ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() : audioConfig_; + return audioConfig_ == null + ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() + : audioConfig_; } else { return audioConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudioConfig(com.google.cloud.texttospeech.v1beta1.AudioConfig value) { if (audioConfigBuilder_ == null) { @@ -1254,11 +1512,15 @@ public Builder setAudioConfig(com.google.cloud.texttospeech.v1beta1.AudioConfig return this; } /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudioConfig( com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder builderForValue) { @@ -1272,17 +1534,23 @@ public Builder setAudioConfig( return this; } /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAudioConfig(com.google.cloud.texttospeech.v1beta1.AudioConfig value) { if (audioConfigBuilder_ == null) { if (audioConfig_ != null) { audioConfig_ = - com.google.cloud.texttospeech.v1beta1.AudioConfig.newBuilder(audioConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.texttospeech.v1beta1.AudioConfig.newBuilder(audioConfig_) + .mergeFrom(value) + .buildPartial(); } else { audioConfig_ = value; } @@ -1294,11 +1562,15 @@ public Builder mergeAudioConfig(com.google.cloud.texttospeech.v1beta1.AudioConfi return this; } /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudioConfig() { if (audioConfigBuilder_ == null) { @@ -1312,55 +1584,72 @@ public Builder clearAudioConfig() { return this; } /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder getAudioConfigBuilder() { - + onChanged(); return getAudioConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfigOrBuilder() { if (audioConfigBuilder_ != null) { return audioConfigBuilder_.getMessageOrBuilder(); } else { - return audioConfig_ == null ? - com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() : audioConfig_; + return audioConfig_ == null + ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() + : audioConfig_; } } /** + * + * *
      * Required. The configuration of the synthesized audio.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.AudioConfig, com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder> + com.google.cloud.texttospeech.v1beta1.AudioConfig, + com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, + com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder> getAudioConfigFieldBuilder() { if (audioConfigBuilder_ == null) { - audioConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.AudioConfig, com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder>( - getAudioConfig(), - getParentForChildren(), - isClean()); + audioConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.AudioConfig, + com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, + com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder>( + getAudioConfig(), getParentForChildren(), isClean()); audioConfig_ = null; } return audioConfigBuilder_; } private java.util.List enableTimePointing_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEnableTimePointingIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { enableTimePointing_ = new java.util.ArrayList(enableTimePointing_); @@ -1368,52 +1657,78 @@ private void ensureEnableTimePointingIsMutable() { } } /** + * + * *
      * Whether and what timepoints are returned in the response.
      * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @return A list containing the enableTimePointing. */ - public java.util.List getEnableTimePointingList() { + public java.util.List< + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType> + getEnableTimePointingList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType>(enableTimePointing_, enableTimePointing_converter_); + java.lang.Integer, + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType>( + enableTimePointing_, enableTimePointing_converter_); } /** + * + * *
      * Whether and what timepoints are returned in the response.
      * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @return The count of enableTimePointing. */ public int getEnableTimePointingCount() { return enableTimePointing_.size(); } /** + * + * *
      * Whether and what timepoints are returned in the response.
      * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @param index The index of the element to return. * @return The enableTimePointing at the given index. */ - public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType getEnableTimePointing(int index) { + public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType + getEnableTimePointing(int index) { return enableTimePointing_converter_.convert(enableTimePointing_.get(index)); } /** + * + * *
      * Whether and what timepoints are returned in the response.
      * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @param index The index to set the value at. * @param value The enableTimePointing to set. * @return This builder for chaining. */ public Builder setEnableTimePointing( - int index, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType value) { + int index, + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType value) { if (value == null) { throw new NullPointerException(); } @@ -1423,15 +1738,21 @@ public Builder setEnableTimePointing( return this; } /** + * + * *
      * Whether and what timepoints are returned in the response.
      * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @param value The enableTimePointing to add. * @return This builder for chaining. */ - public Builder addEnableTimePointing(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType value) { + public Builder addEnableTimePointing( + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType value) { if (value == null) { throw new NullPointerException(); } @@ -1441,29 +1762,43 @@ public Builder addEnableTimePointing(com.google.cloud.texttospeech.v1beta1.Synth return this; } /** + * + * *
      * Whether and what timepoints are returned in the response.
      * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @param values The enableTimePointing to add. * @return This builder for chaining. */ public Builder addAllEnableTimePointing( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType> + values) { ensureEnableTimePointingIsMutable(); - for (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType value : values) { + for (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType value : + values) { enableTimePointing_.add(value.getNumber()); } onChanged(); return this; } /** + * + * *
      * Whether and what timepoints are returned in the response.
      * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @return This builder for chaining. */ public Builder clearEnableTimePointing() { @@ -1473,23 +1808,32 @@ public Builder clearEnableTimePointing() { return this; } /** + * + * *
      * Whether and what timepoints are returned in the response.
      * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @return A list containing the enum numeric values on the wire for enableTimePointing. */ - public java.util.List - getEnableTimePointingValueList() { + public java.util.List getEnableTimePointingValueList() { return java.util.Collections.unmodifiableList(enableTimePointing_); } /** + * + * *
      * Whether and what timepoints are returned in the response.
      * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of enableTimePointing at the given index. */ @@ -1497,28 +1841,37 @@ public int getEnableTimePointingValue(int index) { return enableTimePointing_.get(index); } /** + * + * *
      * Whether and what timepoints are returned in the response.
      * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of enableTimePointing at the given index. * @return This builder for chaining. */ - public Builder setEnableTimePointingValue( - int index, int value) { + public Builder setEnableTimePointingValue(int index, int value) { ensureEnableTimePointingIsMutable(); enableTimePointing_.set(index, value); onChanged(); return this; } /** + * + * *
      * Whether and what timepoints are returned in the response.
      * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @param value The enum numeric value on the wire for enableTimePointing to add. * @return This builder for chaining. */ @@ -1529,16 +1882,20 @@ public Builder addEnableTimePointingValue(int value) { return this; } /** + * + * *
      * Whether and what timepoints are returned in the response.
      * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @param values The enum numeric values on the wire for enableTimePointing to add. * @return This builder for chaining. */ - public Builder addAllEnableTimePointingValue( - java.lang.Iterable values) { + public Builder addAllEnableTimePointingValue(java.lang.Iterable values) { ensureEnableTimePointingIsMutable(); for (int value : values) { enableTimePointing_.add(value); @@ -1546,9 +1903,9 @@ public Builder addAllEnableTimePointingValue( 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); } @@ -1558,12 +1915,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) - private static final com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest DEFAULT_INSTANCE; + private static final com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest(); } @@ -1572,16 +1930,16 @@ public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SynthesizeSpeechRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SynthesizeSpeechRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SynthesizeSpeechRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SynthesizeSpeechRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1596,6 +1954,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java index 3715c74d..0b7fd937 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java @@ -1,137 +1,221 @@ +/* + * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; -public interface SynthesizeSpeechRequestOrBuilder extends +public interface SynthesizeSpeechRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the input field is set. */ boolean hasInput(); /** + * + * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The input. */ com.google.cloud.texttospeech.v1beta1.SynthesisInput getInput(); /** + * + * *
    * Required. The Synthesizer requires either plain text or SSML as input.
    * 
* - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder getInputOrBuilder(); /** + * + * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the voice field is set. */ boolean hasVoice(); /** + * + * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The voice. */ com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams getVoice(); /** + * + * *
    * Required. The desired voice of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder(); /** + * + * *
    * Required. The configuration of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audioConfig field is set. */ boolean hasAudioConfig(); /** + * + * *
    * Required. The configuration of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audioConfig. */ com.google.cloud.texttospeech.v1beta1.AudioConfig getAudioConfig(); /** + * + * *
    * Required. The configuration of the synthesized audio.
    * 
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfigOrBuilder(); /** + * + * *
    * Whether and what timepoints are returned in the response.
    * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @return A list containing the enableTimePointing. */ - java.util.List getEnableTimePointingList(); + java.util.List + getEnableTimePointingList(); /** + * + * *
    * Whether and what timepoints are returned in the response.
    * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @return The count of enableTimePointing. */ int getEnableTimePointingCount(); /** + * + * *
    * Whether and what timepoints are returned in the response.
    * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @param index The index of the element to return. * @return The enableTimePointing at the given index. */ - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType getEnableTimePointing(int index); + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType getEnableTimePointing( + int index); /** + * + * *
    * Whether and what timepoints are returned in the response.
    * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @return A list containing the enum numeric values on the wire for enableTimePointing. */ - java.util.List - getEnableTimePointingValueList(); + java.util.List getEnableTimePointingValueList(); /** + * + * *
    * Whether and what timepoints are returned in the response.
    * 
* - * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of enableTimePointing at the given index. */ diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java index 4981c778..53b971b9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** + * + * *
  * The message returned to the client by the `SynthesizeSpeech` method.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse} */ -public final class SynthesizeSpeechResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SynthesizeSpeechResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) SynthesizeSpeechResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SynthesizeSpeechResponse.newBuilder() to construct. private SynthesizeSpeechResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SynthesizeSpeechResponse() { audioContent_ = com.google.protobuf.ByteString.EMPTY; timepoints_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private SynthesizeSpeechResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SynthesizeSpeechResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SynthesizeSpeechResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,47 +72,53 @@ private SynthesizeSpeechResponse( case 0: done = true; break; - case 10: { - - audioContent_ = input.readBytes(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - timepoints_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - timepoints_.add( - input.readMessage(com.google.cloud.texttospeech.v1beta1.Timepoint.parser(), extensionRegistry)); - break; - } - case 34: { - com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder subBuilder = null; - if (audioConfig_ != null) { - subBuilder = audioConfig_.toBuilder(); + case 10: + { + audioContent_ = input.readBytes(); + break; } - audioConfig_ = input.readMessage(com.google.cloud.texttospeech.v1beta1.AudioConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(audioConfig_); - audioConfig_ = subBuilder.buildPartial(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + timepoints_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + timepoints_.add( + input.readMessage( + com.google.cloud.texttospeech.v1beta1.Timepoint.parser(), extensionRegistry)); + break; } + case 34: + { + com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder subBuilder = null; + if (audioConfig_ != null) { + subBuilder = audioConfig_.toBuilder(); + } + audioConfig_ = + input.readMessage( + com.google.cloud.texttospeech.v1beta1.AudioConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audioConfig_); + audioConfig_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { timepoints_ = java.util.Collections.unmodifiableList(timepoints_); @@ -104,22 +127,27 @@ private SynthesizeSpeechResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.class, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.Builder.class); + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.class, + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.Builder.class); } public static final int AUDIO_CONTENT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString audioContent_; /** + * + * *
    * The audio data bytes encoded as specified in the request, including the
    * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -129,6 +157,7 @@ private SynthesizeSpeechResponse(
    * 
* * bytes audio_content = 1; + * * @return The audioContent. */ @java.lang.Override @@ -139,6 +168,8 @@ public com.google.protobuf.ByteString getAudioContent() { public static final int TIMEPOINTS_FIELD_NUMBER = 2; private java.util.List timepoints_; /** + * + * *
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -151,6 +182,8 @@ public java.util.List getTimepo
     return timepoints_;
   }
   /**
+   *
+   *
    * 
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -159,11 +192,13 @@ public java.util.List getTimepo
    * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getTimepointsOrBuilderList() {
     return timepoints_;
   }
   /**
+   *
+   *
    * 
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -176,6 +211,8 @@ public int getTimepointsCount() {
     return timepoints_.size();
   }
   /**
+   *
+   *
    * 
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -188,6 +225,8 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint getTimepoints(int index)
     return timepoints_.get(index);
   }
   /**
+   *
+   *
    * 
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -204,11 +243,14 @@ public com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder getTimepointsOrB
   public static final int AUDIO_CONFIG_FIELD_NUMBER = 4;
   private com.google.cloud.texttospeech.v1beta1.AudioConfig audioConfig_;
   /**
+   *
+   *
    * 
    * The audio metadata of `audio_content`.
    * 
* * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; + * * @return Whether the audioConfig field is set. */ @java.lang.Override @@ -216,18 +258,25 @@ public boolean hasAudioConfig() { return audioConfig_ != null; } /** + * + * *
    * The audio metadata of `audio_content`.
    * 
* * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; + * * @return The audioConfig. */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.AudioConfig getAudioConfig() { - return audioConfig_ == null ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() : audioConfig_; + return audioConfig_ == null + ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() + : audioConfig_; } /** + * + * *
    * The audio metadata of `audio_content`.
    * 
@@ -240,6 +289,7 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfig } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,8 +301,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 (!audioContent_.isEmpty()) { output.writeBytes(1, audioContent_); } @@ -272,16 +321,13 @@ public int getSerializedSize() { size = 0; if (!audioContent_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, audioContent_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, audioContent_); } for (int i = 0; i < timepoints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, timepoints_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, timepoints_.get(i)); } if (audioConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAudioConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAudioConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -291,21 +337,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.texttospeech.v1beta1.SynthesizeSpeechResponse)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse other = (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) obj; + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse other = + (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) obj; - if (!getAudioContent() - .equals(other.getAudioContent())) return false; - if (!getTimepointsList() - .equals(other.getTimepointsList())) return false; + if (!getAudioContent().equals(other.getAudioContent())) return false; + if (!getTimepointsList().equals(other.getTimepointsList())) return false; if (hasAudioConfig() != other.hasAudioConfig()) return false; if (hasAudioConfig()) { - if (!getAudioConfig() - .equals(other.getAudioConfig())) return false; + if (!getAudioConfig().equals(other.getAudioConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -334,117 +378,127 @@ public int hashCode() { } public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message returned to the client by the `SynthesizeSpeech` method.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.class, com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.Builder.class); + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.class, + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.Builder.class); } // Construct using com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.newBuilder() @@ -452,17 +506,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) { getTimepointsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -484,13 +538,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor; } @java.lang.Override - public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse getDefaultInstanceForType() { + public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse + getDefaultInstanceForType() { return com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.getDefaultInstance(); } @@ -505,7 +560,8 @@ public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse build() { @java.lang.Override public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse buildPartial() { - com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse result = new com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse(this); + com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse result = + new com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse(this); int from_bitField0_ = bitField0_; result.audioContent_ = audioContent_; if (timepointsBuilder_ == null) { @@ -530,38 +586,39 @@ public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse 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.texttospeech.v1beta1.SynthesizeSpeechResponse) { - return mergeFrom((com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse)other); + return mergeFrom((com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) other); } else { super.mergeFrom(other); return this; @@ -569,7 +626,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse other) { - if (other == com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse.getDefaultInstance()) + return this; if (other.getAudioContent() != com.google.protobuf.ByteString.EMPTY) { setAudioContent(other.getAudioContent()); } @@ -591,9 +650,10 @@ public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechR timepointsBuilder_ = null; timepoints_ = other.timepoints_; bitField0_ = (bitField0_ & ~0x00000001); - timepointsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTimepointsFieldBuilder() : null; + timepointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTimepointsFieldBuilder() + : null; } else { timepointsBuilder_.addAllMessages(other.timepoints_); } @@ -621,7 +681,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -630,10 +692,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.ByteString audioContent_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * The audio data bytes encoded as specified in the request, including the
      * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -643,6 +708,7 @@ public Builder mergeFrom(
      * 
* * bytes audio_content = 1; + * * @return The audioContent. */ @java.lang.Override @@ -650,6 +716,8 @@ public com.google.protobuf.ByteString getAudioContent() { return audioContent_; } /** + * + * *
      * The audio data bytes encoded as specified in the request, including the
      * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -659,19 +727,22 @@ public com.google.protobuf.ByteString getAudioContent() {
      * 
* * bytes audio_content = 1; + * * @param value The audioContent to set. * @return This builder for chaining. */ public Builder setAudioContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audioContent_ = value; onChanged(); return this; } /** + * + * *
      * The audio data bytes encoded as specified in the request, including the
      * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -681,28 +752,36 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 1; + * * @return This builder for chaining. */ public Builder clearAudioContent() { - + audioContent_ = getDefaultInstance().getAudioContent(); onChanged(); return this; } private java.util.List timepoints_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTimepointsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - timepoints_ = new java.util.ArrayList(timepoints_); + timepoints_ = + new java.util.ArrayList(timepoints_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.Timepoint, com.google.cloud.texttospeech.v1beta1.Timepoint.Builder, com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder> timepointsBuilder_; + com.google.cloud.texttospeech.v1beta1.Timepoint, + com.google.cloud.texttospeech.v1beta1.Timepoint.Builder, + com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder> + timepointsBuilder_; /** + * + * *
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -718,6 +797,8 @@ public java.util.List getTimepo
       }
     }
     /**
+     *
+     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -733,6 +814,8 @@ public int getTimepointsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -748,6 +831,8 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint getTimepoints(int index)
       }
     }
     /**
+     *
+     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -755,8 +840,7 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint getTimepoints(int index)
      *
      * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      */
-    public Builder setTimepoints(
-        int index, com.google.cloud.texttospeech.v1beta1.Timepoint value) {
+    public Builder setTimepoints(int index, com.google.cloud.texttospeech.v1beta1.Timepoint value) {
       if (timepointsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -770,6 +854,8 @@ public Builder setTimepoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -789,6 +875,8 @@ public Builder setTimepoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -810,6 +898,8 @@ public Builder addTimepoints(com.google.cloud.texttospeech.v1beta1.Timepoint val
       return this;
     }
     /**
+     *
+     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -817,8 +907,7 @@ public Builder addTimepoints(com.google.cloud.texttospeech.v1beta1.Timepoint val
      *
      * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      */
-    public Builder addTimepoints(
-        int index, com.google.cloud.texttospeech.v1beta1.Timepoint value) {
+    public Builder addTimepoints(int index, com.google.cloud.texttospeech.v1beta1.Timepoint value) {
       if (timepointsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -832,6 +921,8 @@ public Builder addTimepoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -851,6 +942,8 @@ public Builder addTimepoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -870,6 +963,8 @@ public Builder addTimepoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -881,8 +976,7 @@ public Builder addAllTimepoints(
         java.lang.Iterable values) {
       if (timepointsBuilder_ == null) {
         ensureTimepointsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, timepoints_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timepoints_);
         onChanged();
       } else {
         timepointsBuilder_.addAllMessages(values);
@@ -890,6 +984,8 @@ public Builder addAllTimepoints(
       return this;
     }
     /**
+     *
+     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -908,6 +1004,8 @@ public Builder clearTimepoints() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -926,6 +1024,8 @@ public Builder removeTimepoints(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -933,11 +1033,12 @@ public Builder removeTimepoints(int index) {
      *
      * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      */
-    public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder getTimepointsBuilder(
-        int index) {
+    public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder getTimepointsBuilder(int index) {
       return getTimepointsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -948,11 +1049,14 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder getTimepointsBuil
     public com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder getTimepointsOrBuilder(
         int index) {
       if (timepointsBuilder_ == null) {
-        return timepoints_.get(index);  } else {
+        return timepoints_.get(index);
+      } else {
         return timepointsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -960,8 +1064,8 @@ public com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder getTimepointsOrB
      *
      * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      */
-    public java.util.List 
-         getTimepointsOrBuilderList() {
+    public java.util.List
+        getTimepointsOrBuilderList() {
       if (timepointsBuilder_ != null) {
         return timepointsBuilder_.getMessageOrBuilderList();
       } else {
@@ -969,6 +1073,8 @@ public com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder getTimepointsOrB
       }
     }
     /**
+     *
+     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -977,10 +1083,12 @@ public com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder getTimepointsOrB
      * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      */
     public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder addTimepointsBuilder() {
-      return getTimepointsFieldBuilder().addBuilder(
-          com.google.cloud.texttospeech.v1beta1.Timepoint.getDefaultInstance());
+      return getTimepointsFieldBuilder()
+          .addBuilder(com.google.cloud.texttospeech.v1beta1.Timepoint.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -988,12 +1096,13 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder addTimepointsBuil
      *
      * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      */
-    public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder addTimepointsBuilder(
-        int index) {
-      return getTimepointsFieldBuilder().addBuilder(
-          index, com.google.cloud.texttospeech.v1beta1.Timepoint.getDefaultInstance());
+    public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder addTimepointsBuilder(int index) {
+      return getTimepointsFieldBuilder()
+          .addBuilder(index, com.google.cloud.texttospeech.v1beta1.Timepoint.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A link between a position in the original request input and a corresponding
      * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -1001,20 +1110,23 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder addTimepointsBuil
      *
      * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
      */
-    public java.util.List 
-         getTimepointsBuilderList() {
+    public java.util.List
+        getTimepointsBuilderList() {
       return getTimepointsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.texttospeech.v1beta1.Timepoint, com.google.cloud.texttospeech.v1beta1.Timepoint.Builder, com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder> 
+            com.google.cloud.texttospeech.v1beta1.Timepoint,
+            com.google.cloud.texttospeech.v1beta1.Timepoint.Builder,
+            com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder>
         getTimepointsFieldBuilder() {
       if (timepointsBuilder_ == null) {
-        timepointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.texttospeech.v1beta1.Timepoint, com.google.cloud.texttospeech.v1beta1.Timepoint.Builder, com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder>(
-                timepoints_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        timepointsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.texttospeech.v1beta1.Timepoint,
+                com.google.cloud.texttospeech.v1beta1.Timepoint.Builder,
+                com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder>(
+                timepoints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         timepoints_ = null;
       }
       return timepointsBuilder_;
@@ -1022,34 +1134,47 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint.Builder addTimepointsBuil
 
     private com.google.cloud.texttospeech.v1beta1.AudioConfig audioConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.texttospeech.v1beta1.AudioConfig, com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder> audioConfigBuilder_;
+            com.google.cloud.texttospeech.v1beta1.AudioConfig,
+            com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder,
+            com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder>
+        audioConfigBuilder_;
     /**
+     *
+     *
      * 
      * The audio metadata of `audio_content`.
      * 
* * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; + * * @return Whether the audioConfig field is set. */ public boolean hasAudioConfig() { return audioConfigBuilder_ != null || audioConfig_ != null; } /** + * + * *
      * The audio metadata of `audio_content`.
      * 
* * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; + * * @return The audioConfig. */ public com.google.cloud.texttospeech.v1beta1.AudioConfig getAudioConfig() { if (audioConfigBuilder_ == null) { - return audioConfig_ == null ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() : audioConfig_; + return audioConfig_ == null + ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() + : audioConfig_; } else { return audioConfigBuilder_.getMessage(); } } /** + * + * *
      * The audio metadata of `audio_content`.
      * 
@@ -1070,6 +1195,8 @@ public Builder setAudioConfig(com.google.cloud.texttospeech.v1beta1.AudioConfig return this; } /** + * + * *
      * The audio metadata of `audio_content`.
      * 
@@ -1088,6 +1215,8 @@ public Builder setAudioConfig( return this; } /** + * + * *
      * The audio metadata of `audio_content`.
      * 
@@ -1098,7 +1227,9 @@ public Builder mergeAudioConfig(com.google.cloud.texttospeech.v1beta1.AudioConfi if (audioConfigBuilder_ == null) { if (audioConfig_ != null) { audioConfig_ = - com.google.cloud.texttospeech.v1beta1.AudioConfig.newBuilder(audioConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.texttospeech.v1beta1.AudioConfig.newBuilder(audioConfig_) + .mergeFrom(value) + .buildPartial(); } else { audioConfig_ = value; } @@ -1110,6 +1241,8 @@ public Builder mergeAudioConfig(com.google.cloud.texttospeech.v1beta1.AudioConfi return this; } /** + * + * *
      * The audio metadata of `audio_content`.
      * 
@@ -1128,6 +1261,8 @@ public Builder clearAudioConfig() { return this; } /** + * + * *
      * The audio metadata of `audio_content`.
      * 
@@ -1135,11 +1270,13 @@ public Builder clearAudioConfig() { * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; */ public com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder getAudioConfigBuilder() { - + onChanged(); return getAudioConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The audio metadata of `audio_content`.
      * 
@@ -1150,11 +1287,14 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfig if (audioConfigBuilder_ != null) { return audioConfigBuilder_.getMessageOrBuilder(); } else { - return audioConfig_ == null ? - com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() : audioConfig_; + return audioConfig_ == null + ? com.google.cloud.texttospeech.v1beta1.AudioConfig.getDefaultInstance() + : audioConfig_; } } /** + * + * *
      * The audio metadata of `audio_content`.
      * 
@@ -1162,21 +1302,24 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfig * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.AudioConfig, com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder> + com.google.cloud.texttospeech.v1beta1.AudioConfig, + com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, + com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder> getAudioConfigFieldBuilder() { if (audioConfigBuilder_ == null) { - audioConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.AudioConfig, com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder>( - getAudioConfig(), - getParentForChildren(), - isClean()); + audioConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.texttospeech.v1beta1.AudioConfig, + com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder, + com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder>( + getAudioConfig(), getParentForChildren(), isClean()); audioConfig_ = null; } return audioConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1186,30 +1329,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) - private static final com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse DEFAULT_INSTANCE; + private static final com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse(); } - public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse getDefaultInstance() { + public static com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SynthesizeSpeechResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SynthesizeSpeechResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SynthesizeSpeechResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SynthesizeSpeechResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1221,9 +1366,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse getDefaultInstanceForType() { + public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java similarity index 80% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java index 35482f50..56e9988a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; -public interface SynthesizeSpeechResponseOrBuilder extends +public interface SynthesizeSpeechResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The audio data bytes encoded as specified in the request, including the
    * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
@@ -17,11 +35,14 @@ public interface SynthesizeSpeechResponseOrBuilder extends
    * 
* * bytes audio_content = 1; + * * @return The audioContent. */ com.google.protobuf.ByteString getAudioContent(); /** + * + * *
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -29,9 +50,10 @@ public interface SynthesizeSpeechResponseOrBuilder extends
    *
    * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    */
-  java.util.List 
-      getTimepointsList();
+  java.util.List getTimepointsList();
   /**
+   *
+   *
    * 
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -41,6 +63,8 @@ public interface SynthesizeSpeechResponseOrBuilder extends
    */
   com.google.cloud.texttospeech.v1beta1.Timepoint getTimepoints(int index);
   /**
+   *
+   *
    * 
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -50,6 +74,8 @@ public interface SynthesizeSpeechResponseOrBuilder extends
    */
   int getTimepointsCount();
   /**
+   *
+   *
    * 
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -57,9 +83,11 @@ public interface SynthesizeSpeechResponseOrBuilder extends
    *
    * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    */
-  java.util.List 
+  java.util.List
       getTimepointsOrBuilderList();
   /**
+   *
+   *
    * 
    * A link between a position in the original request input and a corresponding
    * time in the output audio. It's only supported via `<mark>` of SSML input.
@@ -67,28 +95,35 @@ public interface SynthesizeSpeechResponseOrBuilder extends
    *
    * repeated .google.cloud.texttospeech.v1beta1.Timepoint timepoints = 2;
    */
-  com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder getTimepointsOrBuilder(
-      int index);
+  com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder getTimepointsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The audio metadata of `audio_content`.
    * 
* * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; + * * @return Whether the audioConfig field is set. */ boolean hasAudioConfig(); /** + * + * *
    * The audio metadata of `audio_content`.
    * 
* * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 4; + * * @return The audioConfig. */ com.google.cloud.texttospeech.v1beta1.AudioConfig getAudioConfig(); /** + * + * *
    * The audio metadata of `audio_content`.
    * 
diff --git a/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java new file mode 100644 index 00000000..9acd6a6a --- /dev/null +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java @@ -0,0 +1,266 @@ +/* + * 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/texttospeech/v1beta1/cloud_tts.proto + +package com.google.cloud.texttospeech.v1beta1; + +public final class TextToSpeechProto { + private TextToSpeechProto() {} + + 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_texttospeech_v1beta1_ListVoicesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_Voice_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_texttospeech_v1beta1_Timepoint_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/texttospeech/v1beta1/clou" + + "d_tts.proto\022!google.cloud.texttospeech.v" + + "1beta1\032\034google/api/annotations.proto\032\027go" + + "ogle/api/client.proto\032\037google/api/field_" + + "behavior.proto\032\031google/api/resource.prot" + + "o\"/\n\021ListVoicesRequest\022\032\n\rlanguage_code\030" + + "\001 \001(\tB\003\340A\001\"N\n\022ListVoicesResponse\0228\n\006voic" + + "es\030\001 \003(\0132(.google.cloud.texttospeech.v1b" + + "eta1.Voice\"\231\001\n\005Voice\022\026\n\016language_codes\030\001" + + " \003(\t\022\014\n\004name\030\002 \001(\t\022G\n\013ssml_gender\030\003 \001(\0162" + + "2.google.cloud.texttospeech.v1beta1.Ssml" + + "VoiceGender\022!\n\031natural_sample_rate_hertz" + + "\030\004 \001(\005\"\240\003\n\027SynthesizeSpeechRequest\022E\n\005in" + + "put\030\001 \001(\01321.google.cloud.texttospeech.v1" + + "beta1.SynthesisInputB\003\340A\002\022K\n\005voice\030\002 \001(\013" + + "27.google.cloud.texttospeech.v1beta1.Voi" + + "ceSelectionParamsB\003\340A\002\022I\n\014audio_config\030\003" + + " \001(\0132..google.cloud.texttospeech.v1beta1" + + ".AudioConfigB\003\340A\002\022f\n\024enable_time_pointin" + + "g\030\004 \003(\0162H.google.cloud.texttospeech.v1be" + + "ta1.SynthesizeSpeechRequest.TimepointTyp" + + "e\">\n\rTimepointType\022\036\n\032TIMEPOINT_TYPE_UNS" + + "PECIFIED\020\000\022\r\n\tSSML_MARK\020\001\"@\n\016SynthesisIn" + + "put\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000B\016\n\014i" + + "nput_source\"\325\001\n\024VoiceSelectionParams\022\032\n\r" + + "language_code\030\001 \001(\tB\003\340A\002\022\014\n\004name\030\002 \001(\t\022G" + + "\n\013ssml_gender\030\003 \001(\01622.google.cloud.textt" + + "ospeech.v1beta1.SsmlVoiceGender\022J\n\014custo" + + "m_voice\030\004 \001(\01324.google.cloud.texttospeec" + + "h.v1beta1.CustomVoiceParams\"\366\001\n\013AudioCon" + + "fig\022M\n\016audio_encoding\030\001 \001(\01620.google.clo" + + "ud.texttospeech.v1beta1.AudioEncodingB\003\340" + + "A\002\022\035\n\rspeaking_rate\030\002 \001(\001B\006\340A\004\340A\001\022\025\n\005pit" + + "ch\030\003 \001(\001B\006\340A\004\340A\001\022\036\n\016volume_gain_db\030\004 \001(\001" + + "B\006\340A\004\340A\001\022\036\n\021sample_rate_hertz\030\005 \001(\005B\003\340A\001" + + "\022\"\n\022effects_profile_id\030\006 \003(\tB\006\340A\004\340A\001\"\364\001\n" + + "\021CustomVoiceParams\0222\n\005model\030\001 \001(\tB#\340A\002\372A" + + "\035\n\033automl.googleapis.com/Model\022_\n\016report" + + "ed_usage\030\003 \001(\0162B.google.cloud.texttospee" + + "ch.v1beta1.CustomVoiceParams.ReportedUsa" + + "geB\003\340A\001\"J\n\rReportedUsage\022\036\n\032REPORTED_USA" + + "GE_UNSPECIFIED\020\000\022\014\n\010REALTIME\020\001\022\013\n\007OFFLIN" + + "E\020\002\"\271\001\n\030SynthesizeSpeechResponse\022\025\n\raudi" + + "o_content\030\001 \001(\014\022@\n\ntimepoints\030\002 \003(\0132,.go" + + "ogle.cloud.texttospeech.v1beta1.Timepoin" + + "t\022D\n\014audio_config\030\004 \001(\0132..google.cloud.t" + + "exttospeech.v1beta1.AudioConfig\"4\n\tTimep" + + "oint\022\021\n\tmark_name\030\004 \001(\t\022\024\n\014time_seconds\030" + + "\003 \001(\001*W\n\017SsmlVoiceGender\022!\n\035SSML_VOICE_G" + + "ENDER_UNSPECIFIED\020\000\022\010\n\004MALE\020\001\022\n\n\006FEMALE\020" + + "\002\022\013\n\007NEUTRAL\020\003*z\n\rAudioEncoding\022\036\n\032AUDIO" + + "_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\007\n" + + "\003MP3\020\002\022\017\n\013MP3_64_KBPS\020\004\022\014\n\010OGG_OPUS\020\003\022\t\n" + + "\005MULAW\020\005\022\010\n\004ALAW\020\0062\322\003\n\014TextToSpeech\022\242\001\n\n" + + "ListVoices\0224.google.cloud.texttospeech.v" + + "1beta1.ListVoicesRequest\0325.google.cloud." + + "texttospeech.v1beta1.ListVoicesResponse\"" + + "\'\202\323\344\223\002\021\022\017/v1beta1/voices\332A\rlanguage_code" + + "\022\313\001\n\020SynthesizeSpeech\022:.google.cloud.tex" + + "ttospeech.v1beta1.SynthesizeSpeechReques" + + "t\032;.google.cloud.texttospeech.v1beta1.Sy" + + "nthesizeSpeechResponse\">\202\323\344\223\002\035\"\030/v1beta1" + + "/text:synthesize:\001*\332A\030input,voice,audio_" + + "config\032O\312A\033texttospeech.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-p" + + "latformB\325\002\n%com.google.cloud.texttospeec" + + "h.v1beta1B\021TextToSpeechProtoP\001ZMgoogle.g" + + "olang.org/genproto/googleapis/cloud/text" + + "tospeech/v1beta1;texttospeech\370\001\001\252\002!Googl" + + "e.Cloud.TextToSpeech.V1Beta1\312\002!Google\\Cl" + + "oud\\TextToSpeech\\V1beta1\352\002$Google::Cloud" + + "::TextToSpeech::V1beta1\352AU\n\033automl.googl" + + "eapis.com/Model\0226projects/{project}/loca" + + "tions/{location}/models/{model}b\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(), + }); + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor, + new java.lang.String[] { + "LanguageCode", + }); + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_ListVoicesResponse_descriptor, + new java.lang.String[] { + "Voices", + }); + internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_texttospeech_v1beta1_Voice_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor, + new java.lang.String[] { + "LanguageCodes", "Name", "SsmlGender", "NaturalSampleRateHertz", + }); + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechRequest_descriptor, + new java.lang.String[] { + "Input", "Voice", "AudioConfig", "EnableTimePointing", + }); + internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_SynthesisInput_descriptor, + new java.lang.String[] { + "Text", "Ssml", "InputSource", + }); + internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor, + new java.lang.String[] { + "LanguageCode", "Name", "SsmlGender", "CustomVoice", + }); + internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_AudioConfig_descriptor, + new java.lang.String[] { + "AudioEncoding", + "SpeakingRate", + "Pitch", + "VolumeGainDb", + "SampleRateHertz", + "EffectsProfileId", + }); + internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_CustomVoiceParams_descriptor, + new java.lang.String[] { + "Model", "ReportedUsage", + }); + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_SynthesizeSpeechResponse_descriptor, + new java.lang.String[] { + "AudioContent", "Timepoints", "AudioConfig", + }); + internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_texttospeech_v1beta1_Timepoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor, + new java.lang.String[] { + "MarkName", "TimeSeconds", + }); + 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.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + 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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Timepoint.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Timepoint.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Timepoint.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Timepoint.java index fb266292..1868275e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Timepoint.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Timepoint.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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** + * + * *
  * This contains a mapping between a certain point in the input text and a
  * corresponding time in the output audio.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.texttospeech.v1beta1.Timepoint}
  */
-public final class Timepoint extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Timepoint extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.Timepoint)
     TimepointOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Timepoint.newBuilder() to construct.
   private Timepoint(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Timepoint() {
     markName_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Timepoint();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Timepoint(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,57 +71,63 @@ private Timepoint(
           case 0:
             done = true;
             break;
-          case 25: {
-
-            timeSeconds_ = input.readDouble();
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 25:
+            {
+              timeSeconds_ = input.readDouble();
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            markName_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              markName_ = 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.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
+        .internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Timepoint_fieldAccessorTable
+    return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
+        .internal_static_google_cloud_texttospeech_v1beta1_Timepoint_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.texttospeech.v1beta1.Timepoint.class, com.google.cloud.texttospeech.v1beta1.Timepoint.Builder.class);
+            com.google.cloud.texttospeech.v1beta1.Timepoint.class,
+            com.google.cloud.texttospeech.v1beta1.Timepoint.Builder.class);
   }
 
   public static final int MARK_NAME_FIELD_NUMBER = 4;
   private volatile java.lang.Object markName_;
   /**
+   *
+   *
    * 
    * Timepoint name as received from the client within `<mark>` tag.
    * 
* * string mark_name = 4; + * * @return The markName. */ @java.lang.Override @@ -113,29 +136,29 @@ public java.lang.String getMarkName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); markName_ = s; return s; } } /** + * + * *
    * Timepoint name as received from the client within `<mark>` tag.
    * 
* * string mark_name = 4; + * * @return The bytes for markName. */ @java.lang.Override - public com.google.protobuf.ByteString - getMarkNameBytes() { + public com.google.protobuf.ByteString getMarkNameBytes() { java.lang.Object ref = markName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); markName_ = b; return b; } else { @@ -146,11 +169,14 @@ public java.lang.String getMarkName() { public static final int TIME_SECONDS_FIELD_NUMBER = 3; private double timeSeconds_; /** + * + * *
    * Time offset in seconds from the start of the synthesized audio.
    * 
* * double time_seconds = 3; + * * @return The timeSeconds. */ @java.lang.Override @@ -159,6 +185,7 @@ public double getTimeSeconds() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +197,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 (timeSeconds_ != 0D) { output.writeDouble(3, timeSeconds_); } @@ -188,8 +214,7 @@ public int getSerializedSize() { size = 0; if (timeSeconds_ != 0D) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, timeSeconds_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, timeSeconds_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(markName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, markName_); @@ -202,18 +227,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.texttospeech.v1beta1.Timepoint)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.Timepoint other = (com.google.cloud.texttospeech.v1beta1.Timepoint) obj; + com.google.cloud.texttospeech.v1beta1.Timepoint other = + (com.google.cloud.texttospeech.v1beta1.Timepoint) obj; - if (!getMarkName() - .equals(other.getMarkName())) return false; + if (!getMarkName().equals(other.getMarkName())) return false; if (java.lang.Double.doubleToLongBits(getTimeSeconds()) - != java.lang.Double.doubleToLongBits( - other.getTimeSeconds())) return false; + != java.lang.Double.doubleToLongBits(other.getTimeSeconds())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,104 +252,113 @@ public int hashCode() { hash = (37 * hash) + MARK_NAME_FIELD_NUMBER; hash = (53 * hash) + getMarkName().hashCode(); hash = (37 * hash) + TIME_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getTimeSeconds())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTimeSeconds())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.Timepoint 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.texttospeech.v1beta1.Timepoint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.Timepoint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1beta1.Timepoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.Timepoint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.Timepoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.Timepoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * This contains a mapping between a certain point in the input text and a
    * corresponding time in the output audio.
@@ -333,21 +366,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.texttospeech.v1beta1.Timepoint}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.Timepoint)
       com.google.cloud.texttospeech.v1beta1.TimepointOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
+          .internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Timepoint_fieldAccessorTable
+      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
+          .internal_static_google_cloud_texttospeech_v1beta1_Timepoint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.texttospeech.v1beta1.Timepoint.class, com.google.cloud.texttospeech.v1beta1.Timepoint.Builder.class);
+              com.google.cloud.texttospeech.v1beta1.Timepoint.class,
+              com.google.cloud.texttospeech.v1beta1.Timepoint.Builder.class);
     }
 
     // Construct using com.google.cloud.texttospeech.v1beta1.Timepoint.newBuilder()
@@ -355,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();
@@ -376,9 +410,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto
+          .internal_static_google_cloud_texttospeech_v1beta1_Timepoint_descriptor;
     }
 
     @java.lang.Override
@@ -397,7 +431,8 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint build() {
 
     @java.lang.Override
     public com.google.cloud.texttospeech.v1beta1.Timepoint buildPartial() {
-      com.google.cloud.texttospeech.v1beta1.Timepoint result = new com.google.cloud.texttospeech.v1beta1.Timepoint(this);
+      com.google.cloud.texttospeech.v1beta1.Timepoint result =
+          new com.google.cloud.texttospeech.v1beta1.Timepoint(this);
       result.markName_ = markName_;
       result.timeSeconds_ = timeSeconds_;
       onBuilt();
@@ -408,38 +443,39 @@ public com.google.cloud.texttospeech.v1beta1.Timepoint 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.texttospeech.v1beta1.Timepoint) {
-        return mergeFrom((com.google.cloud.texttospeech.v1beta1.Timepoint)other);
+        return mergeFrom((com.google.cloud.texttospeech.v1beta1.Timepoint) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -447,7 +483,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.Timepoint other) {
-      if (other == com.google.cloud.texttospeech.v1beta1.Timepoint.getDefaultInstance()) return this;
+      if (other == com.google.cloud.texttospeech.v1beta1.Timepoint.getDefaultInstance())
+        return this;
       if (!other.getMarkName().isEmpty()) {
         markName_ = other.markName_;
         onChanged();
@@ -486,18 +523,20 @@ public Builder mergeFrom(
 
     private java.lang.Object markName_ = "";
     /**
+     *
+     *
      * 
      * Timepoint name as received from the client within `<mark>` tag.
      * 
* * string mark_name = 4; + * * @return The markName. */ public java.lang.String getMarkName() { java.lang.Object ref = markName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); markName_ = s; return s; @@ -506,20 +545,21 @@ public java.lang.String getMarkName() { } } /** + * + * *
      * Timepoint name as received from the client within `<mark>` tag.
      * 
* * string mark_name = 4; + * * @return The bytes for markName. */ - public com.google.protobuf.ByteString - getMarkNameBytes() { + public com.google.protobuf.ByteString getMarkNameBytes() { java.lang.Object ref = markName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); markName_ = b; return b; } else { @@ -527,66 +567,76 @@ public java.lang.String getMarkName() { } } /** + * + * *
      * Timepoint name as received from the client within `<mark>` tag.
      * 
* * string mark_name = 4; + * * @param value The markName to set. * @return This builder for chaining. */ - public Builder setMarkName( - java.lang.String value) { + public Builder setMarkName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + markName_ = value; onChanged(); return this; } /** + * + * *
      * Timepoint name as received from the client within `<mark>` tag.
      * 
* * string mark_name = 4; + * * @return This builder for chaining. */ public Builder clearMarkName() { - + markName_ = getDefaultInstance().getMarkName(); onChanged(); return this; } /** + * + * *
      * Timepoint name as received from the client within `<mark>` tag.
      * 
* * string mark_name = 4; + * * @param value The bytes for markName to set. * @return This builder for chaining. */ - public Builder setMarkNameBytes( - com.google.protobuf.ByteString value) { + public Builder setMarkNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + markName_ = value; onChanged(); return this; } - private double timeSeconds_ ; + private double timeSeconds_; /** + * + * *
      * Time offset in seconds from the start of the synthesized audio.
      * 
* * double time_seconds = 3; + * * @return The timeSeconds. */ @java.lang.Override @@ -594,37 +644,43 @@ public double getTimeSeconds() { return timeSeconds_; } /** + * + * *
      * Time offset in seconds from the start of the synthesized audio.
      * 
* * double time_seconds = 3; + * * @param value The timeSeconds to set. * @return This builder for chaining. */ public Builder setTimeSeconds(double value) { - + timeSeconds_ = value; onChanged(); return this; } /** + * + * *
      * Time offset in seconds from the start of the synthesized audio.
      * 
* * double time_seconds = 3; + * * @return This builder for chaining. */ public Builder clearTimeSeconds() { - + timeSeconds_ = 0D; 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); } @@ -634,12 +690,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.Timepoint) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.Timepoint) private static final com.google.cloud.texttospeech.v1beta1.Timepoint DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.Timepoint(); } @@ -648,16 +704,16 @@ public static com.google.cloud.texttospeech.v1beta1.Timepoint getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Timepoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Timepoint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Timepoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Timepoint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -672,6 +728,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1beta1.Timepoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TimepointOrBuilder.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TimepointOrBuilder.java similarity index 55% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TimepointOrBuilder.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TimepointOrBuilder.java index 1e5953cd..cb356b5c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TimepointOrBuilder.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TimepointOrBuilder.java @@ -1,38 +1,62 @@ +/* + * 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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; -public interface TimepointOrBuilder extends +public interface TimepointOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.Timepoint) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Timepoint name as received from the client within `<mark>` tag.
    * 
* * string mark_name = 4; + * * @return The markName. */ java.lang.String getMarkName(); /** + * + * *
    * Timepoint name as received from the client within `<mark>` tag.
    * 
* * string mark_name = 4; + * * @return The bytes for markName. */ - com.google.protobuf.ByteString - getMarkNameBytes(); + com.google.protobuf.ByteString getMarkNameBytes(); /** + * + * *
    * Time offset in seconds from the start of the synthesized audio.
    * 
* * double time_seconds = 3; + * * @return The timeSeconds. */ double getTimeSeconds(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Voice.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Voice.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Voice.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Voice.java index f36db267..4f56f5fa 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Voice.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Voice.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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** + * + * *
  * Description of a voice supported by the TTS service.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.Voice} */ -public final class Voice extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Voice extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.Voice) VoiceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Voice.newBuilder() to construct. private Voice(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Voice() { languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; name_ = ""; @@ -27,16 +45,15 @@ private Voice() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Voice(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Voice( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,46 +73,48 @@ private Voice( 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; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - ssmlGender_ = rawValue; - break; - } - case 32: { + name_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - naturalSampleRateHertz_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + ssmlGender_ = rawValue; + break; + } + case 32: + { + naturalSampleRateHertz_ = input.readInt32(); + 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)) { languageCodes_ = languageCodes_.getUnmodifiableView(); @@ -104,22 +123,27 @@ private Voice( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Voice_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_Voice_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.Voice.class, com.google.cloud.texttospeech.v1beta1.Voice.Builder.class); + com.google.cloud.texttospeech.v1beta1.Voice.class, + com.google.cloud.texttospeech.v1beta1.Voice.Builder.class); } public static final int LANGUAGE_CODES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList languageCodes_; /** + * + * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -127,13 +151,15 @@ private Voice(
    * 
* * 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 languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -141,12 +167,15 @@ private Voice(
    * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** + * + * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -154,6 +183,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. */ @@ -161,6 +191,8 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** + * + * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -168,22 +200,25 @@ 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); } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** + * + * *
    * The name of this voice.  Each distinct voice has a unique name.
    * 
* * string name = 2; + * * @return The name. */ @java.lang.Override @@ -192,29 +227,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 this voice.  Each distinct voice has a unique name.
    * 
* * string name = 2; + * * @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 { @@ -225,38 +260,52 @@ public java.lang.String getName() { public static final int SSML_GENDER_FIELD_NUMBER = 3; private int ssmlGender_; /** + * + * *
    * The gender of this voice.
    * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @return The enum numeric value on the wire for ssmlGender. */ - @java.lang.Override public int getSsmlGenderValue() { + @java.lang.Override + public int getSsmlGenderValue() { return ssmlGender_; } /** + * + * *
    * The gender of this voice.
    * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @return The ssmlGender. */ - @java.lang.Override public com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender() { + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender result = com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.valueOf(ssmlGender_); - return result == null ? com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.UNRECOGNIZED : result; + com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender result = + com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.valueOf(ssmlGender_); + return result == null + ? com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.UNRECOGNIZED + : result; } public static final int NATURAL_SAMPLE_RATE_HERTZ_FIELD_NUMBER = 4; private int naturalSampleRateHertz_; /** + * + * *
    * The natural sample rate (in hertz) for this voice.
    * 
* * int32 natural_sample_rate_hertz = 4; + * * @return The naturalSampleRateHertz. */ @java.lang.Override @@ -265,6 +314,7 @@ public int getNaturalSampleRateHertz() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,15 +326,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < languageCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCodes_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } - if (ssmlGender_ != com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) { + if (ssmlGender_ + != com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED + .getNumber()) { output.writeEnum(3, ssmlGender_); } if (naturalSampleRateHertz_ != 0) { @@ -310,13 +361,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } - if (ssmlGender_ != com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, ssmlGender_); + if (ssmlGender_ + != com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, ssmlGender_); } if (naturalSampleRateHertz_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, naturalSampleRateHertz_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, naturalSampleRateHertz_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -326,20 +377,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.texttospeech.v1beta1.Voice)) { return super.equals(obj); } - com.google.cloud.texttospeech.v1beta1.Voice other = (com.google.cloud.texttospeech.v1beta1.Voice) obj; + com.google.cloud.texttospeech.v1beta1.Voice other = + (com.google.cloud.texttospeech.v1beta1.Voice) obj; - if (!getLanguageCodesList() - .equals(other.getLanguageCodesList())) return false; - if (!getName() - .equals(other.getName())) return false; + if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; + if (!getName().equals(other.getName())) return false; if (ssmlGender_ != other.ssmlGender_) return false; - if (getNaturalSampleRateHertz() - != other.getNaturalSampleRateHertz()) return false; + if (getNaturalSampleRateHertz() != other.getNaturalSampleRateHertz()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -366,118 +415,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.Voice 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.texttospeech.v1beta1.Voice parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.texttospeech.v1beta1.Voice parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.texttospeech.v1beta1.Voice parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.Voice parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.texttospeech.v1beta1.Voice parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.Voice prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Description of a voice supported by the TTS service.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.Voice} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.Voice) com.google.cloud.texttospeech.v1beta1.VoiceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Voice_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_Voice_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.Voice.class, com.google.cloud.texttospeech.v1beta1.Voice.Builder.class); + com.google.cloud.texttospeech.v1beta1.Voice.class, + com.google.cloud.texttospeech.v1beta1.Voice.Builder.class); } // Construct using com.google.cloud.texttospeech.v1beta1.Voice.newBuilder() @@ -485,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(); @@ -510,9 +567,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_Voice_descriptor; } @java.lang.Override @@ -531,7 +588,8 @@ public com.google.cloud.texttospeech.v1beta1.Voice build() { @java.lang.Override public com.google.cloud.texttospeech.v1beta1.Voice buildPartial() { - com.google.cloud.texttospeech.v1beta1.Voice result = new com.google.cloud.texttospeech.v1beta1.Voice(this); + com.google.cloud.texttospeech.v1beta1.Voice result = + new com.google.cloud.texttospeech.v1beta1.Voice(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { languageCodes_ = languageCodes_.getUnmodifiableView(); @@ -549,38 +607,39 @@ public com.google.cloud.texttospeech.v1beta1.Voice 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.texttospeech.v1beta1.Voice) { - return mergeFrom((com.google.cloud.texttospeech.v1beta1.Voice)other); + return mergeFrom((com.google.cloud.texttospeech.v1beta1.Voice) other); } else { super.mergeFrom(other); return this; @@ -637,16 +696,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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -654,13 +718,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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -668,12 +734,15 @@ private void ensureLanguageCodesIsMutable() {
      * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** + * + * *
      * The languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -681,6 +750,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. */ @@ -688,6 +758,8 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** + * + * *
      * The languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -695,14 +767,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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -710,21 +784,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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -732,20 +808,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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -753,18 +831,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 languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -772,6 +851,7 @@ public Builder addAllLanguageCodes(
      * 
* * repeated string language_codes = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCodes() { @@ -781,6 +861,8 @@ public Builder clearLanguageCodes() { return this; } /** + * + * *
      * The languages that this voice supports, expressed as
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -788,15 +870,15 @@ 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(); @@ -805,18 +887,20 @@ public Builder addLanguageCodesBytes( private java.lang.Object name_ = ""; /** + * + * *
      * The name of this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; + * * @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; @@ -825,20 +909,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; + * * @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 { @@ -846,54 +931,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; + * * @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 this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of this voice.  Each distinct voice has a unique name.
      * 
* * string name = 2; + * * @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; @@ -901,51 +993,67 @@ public Builder setNameBytes( private int ssmlGender_ = 0; /** + * + * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @return The enum numeric value on the wire for ssmlGender. */ - @java.lang.Override public int getSsmlGenderValue() { + @java.lang.Override + public int getSsmlGenderValue() { return ssmlGender_; } /** + * + * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @param value The enum numeric value on the wire for ssmlGender to set. * @return This builder for chaining. */ public Builder setSsmlGenderValue(int value) { - + ssmlGender_ = value; onChanged(); return this; } /** + * + * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @return The ssmlGender. */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender result = com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.valueOf(ssmlGender_); - return result == null ? com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.UNRECOGNIZED : result; + com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender result = + com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.valueOf(ssmlGender_); + return result == null + ? com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.UNRECOGNIZED + : result; } /** + * + * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @param value The ssmlGender to set. * @return This builder for chaining. */ @@ -953,33 +1061,39 @@ public Builder setSsmlGender(com.google.cloud.texttospeech.v1beta1.SsmlVoiceGend if (value == null) { throw new NullPointerException(); } - + ssmlGender_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The gender of this voice.
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @return This builder for chaining. */ public Builder clearSsmlGender() { - + ssmlGender_ = 0; onChanged(); return this; } - private int naturalSampleRateHertz_ ; + private int naturalSampleRateHertz_; /** + * + * *
      * The natural sample rate (in hertz) for this voice.
      * 
* * int32 natural_sample_rate_hertz = 4; + * * @return The naturalSampleRateHertz. */ @java.lang.Override @@ -987,37 +1101,43 @@ public int getNaturalSampleRateHertz() { return naturalSampleRateHertz_; } /** + * + * *
      * The natural sample rate (in hertz) for this voice.
      * 
* * int32 natural_sample_rate_hertz = 4; + * * @param value The naturalSampleRateHertz to set. * @return This builder for chaining. */ public Builder setNaturalSampleRateHertz(int value) { - + naturalSampleRateHertz_ = value; onChanged(); return this; } /** + * + * *
      * The natural sample rate (in hertz) for this voice.
      * 
* * int32 natural_sample_rate_hertz = 4; + * * @return This builder for chaining. */ public Builder clearNaturalSampleRateHertz() { - + naturalSampleRateHertz_ = 0; 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); } @@ -1027,12 +1147,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.Voice) } // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.Voice) private static final com.google.cloud.texttospeech.v1beta1.Voice DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.Voice(); } @@ -1041,16 +1161,16 @@ public static com.google.cloud.texttospeech.v1beta1.Voice getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Voice parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Voice(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Voice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Voice(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1065,6 +1185,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.texttospeech.v1beta1.Voice getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceOrBuilder.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceOrBuilder.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceOrBuilder.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceOrBuilder.java index bff6a6c5..019ef4e9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceOrBuilder.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceOrBuilder.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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; -public interface VoiceOrBuilder extends +public interface VoiceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.Voice) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -15,11 +33,13 @@ public interface VoiceOrBuilder extends
    * 
* * repeated string language_codes = 1; + * * @return A list containing the languageCodes. */ - java.util.List - getLanguageCodesList(); + java.util.List getLanguageCodesList(); /** + * + * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -27,10 +47,13 @@ public interface VoiceOrBuilder extends
    * 
* * repeated string language_codes = 1; + * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** + * + * *
    * The languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -38,11 +61,14 @@ public interface VoiceOrBuilder 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 languages that this voice supports, expressed as
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags (e.g.
@@ -50,57 +76,71 @@ public interface VoiceOrBuilder 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); /** + * + * *
    * The name of this voice.  Each distinct voice has a unique name.
    * 
* * string name = 2; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of this voice.  Each distinct voice has a unique name.
    * 
* * string name = 2; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The gender of this voice.
    * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @return The enum numeric value on the wire for ssmlGender. */ int getSsmlGenderValue(); /** + * + * *
    * The gender of this voice.
    * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @return The ssmlGender. */ com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender(); /** + * + * *
    * The natural sample rate (in hertz) for this voice.
    * 
* * int32 natural_sample_rate_hertz = 4; + * * @return The naturalSampleRateHertz. */ int getNaturalSampleRateHertz(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java similarity index 76% rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java index 2fdb67ee..fd3483d0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java +++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.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/texttospeech/v1beta1/cloud_tts.proto package com.google.cloud.texttospeech.v1beta1; /** + * + * *
  * Description of which voice to use for a synthesis request.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.VoiceSelectionParams} */ -public final class VoiceSelectionParams extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VoiceSelectionParams extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.texttospeech.v1beta1.VoiceSelectionParams) VoiceSelectionParamsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VoiceSelectionParams.newBuilder() to construct. private VoiceSelectionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VoiceSelectionParams() { languageCode_ = ""; name_ = ""; @@ -27,16 +45,15 @@ private VoiceSelectionParams() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VoiceSelectionParams(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VoiceSelectionParams( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,72 +72,83 @@ private VoiceSelectionParams( 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(); - name_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); + languageCode_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - ssmlGender_ = rawValue; - break; - } - case 34: { - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder subBuilder = null; - if (customVoice_ != null) { - subBuilder = customVoice_.toBuilder(); + name_ = s; + break; } - customVoice_ = input.readMessage(com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customVoice_); - customVoice_ = subBuilder.buildPartial(); + case 24: + { + int rawValue = input.readEnum(); + + ssmlGender_ = rawValue; + break; } + case 34: + { + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder subBuilder = null; + if (customVoice_ != null) { + subBuilder = customVoice_.toBuilder(); + } + customVoice_ = + input.readMessage( + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customVoice_); + customVoice_ = 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.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.class, com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder.class); + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.class, + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** + * + * *
    * Required. The language (and potentially also the region) of the voice expressed as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -136,6 +164,7 @@ private VoiceSelectionParams(
    * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ @java.lang.Override @@ -144,14 +173,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; } } /** + * + * *
    * Required. The language (and potentially also the region) of the voice expressed as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -167,16 +197,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -187,12 +216,15 @@ public java.lang.String getLanguageCode() { public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** + * + * *
    * The name of the voice. If not set, the service will choose a
    * voice based on the other parameters such as language_code and gender.
    * 
* * string name = 2; + * * @return The name. */ @java.lang.Override @@ -201,30 +233,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; } } /** + * + * *
    * The name of the voice. If not set, the service will choose a
    * voice based on the other parameters such as language_code and gender.
    * 
* * string name = 2; + * * @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 { @@ -235,6 +267,8 @@ public java.lang.String getName() { public static final int SSML_GENDER_FIELD_NUMBER = 3; private int ssmlGender_; /** + * + * *
    * The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
@@ -244,12 +278,16 @@ public java.lang.String getName() {
    * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @return The enum numeric value on the wire for ssmlGender. */ - @java.lang.Override public int getSsmlGenderValue() { + @java.lang.Override + public int getSsmlGenderValue() { return ssmlGender_; } /** + * + * *
    * The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
@@ -259,17 +297,24 @@ public java.lang.String getName() {
    * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @return The ssmlGender. */ - @java.lang.Override public com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender() { + @java.lang.Override + public com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender result = com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.valueOf(ssmlGender_); - return result == null ? com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.UNRECOGNIZED : result; + com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender result = + com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.valueOf(ssmlGender_); + return result == null + ? com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.UNRECOGNIZED + : result; } public static final int CUSTOM_VOICE_FIELD_NUMBER = 4; private com.google.cloud.texttospeech.v1beta1.CustomVoiceParams customVoice_; /** + * + * *
    * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
    * the service will choose the custom voice matching the specified
@@ -277,6 +322,7 @@ public java.lang.String getName() {
    * 
* * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4; + * * @return Whether the customVoice field is set. */ @java.lang.Override @@ -284,6 +330,8 @@ public boolean hasCustomVoice() { return customVoice_ != null; } /** + * + * *
    * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
    * the service will choose the custom voice matching the specified
@@ -291,13 +339,18 @@ public boolean hasCustomVoice() {
    * 
* * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4; + * * @return The customVoice. */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams getCustomVoice() { - return customVoice_ == null ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDefaultInstance() : customVoice_; + return customVoice_ == null + ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDefaultInstance() + : customVoice_; } /** + * + * *
    * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
    * the service will choose the custom voice matching the specified
@@ -307,11 +360,13 @@ public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams getCustomVoice()
    * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4;
    */
   @java.lang.Override
-  public com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder getCustomVoiceOrBuilder() {
+  public com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder
+      getCustomVoiceOrBuilder() {
     return getCustomVoice();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -323,15 +378,16 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
     }
-    if (ssmlGender_ != com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) {
+    if (ssmlGender_
+        != com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED
+            .getNumber()) {
       output.writeEnum(3, ssmlGender_);
     }
     if (customVoice_ != null) {
@@ -352,13 +408,13 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
     }
-    if (ssmlGender_ != com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(3, ssmlGender_);
+    if (ssmlGender_
+        != com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.SSML_VOICE_GENDER_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, ssmlGender_);
     }
     if (customVoice_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getCustomVoice());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCustomVoice());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -368,22 +424,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.texttospeech.v1beta1.VoiceSelectionParams)) {
       return super.equals(obj);
     }
-    com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams other = (com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams) obj;
+    com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams other =
+        (com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams) obj;
 
-    if (!getLanguageCode()
-        .equals(other.getLanguageCode())) return false;
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getLanguageCode().equals(other.getLanguageCode())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (ssmlGender_ != other.ssmlGender_) return false;
     if (hasCustomVoice() != other.hasCustomVoice()) return false;
     if (hasCustomVoice()) {
-      if (!getCustomVoice()
-          .equals(other.getCustomVoice())) return false;
+      if (!getCustomVoice().equals(other.getCustomVoice())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -412,117 +466,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Description of which voice to use for a synthesis request.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.VoiceSelectionParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.texttospeech.v1beta1.VoiceSelectionParams) com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_fieldAccessorTable + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.class, com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder.class); + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.class, + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder.class); } // Construct using com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.newBuilder() @@ -530,16 +594,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(); @@ -559,9 +622,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto.internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.texttospeech.v1beta1.TextToSpeechProto + .internal_static_google_cloud_texttospeech_v1beta1_VoiceSelectionParams_descriptor; } @java.lang.Override @@ -580,7 +643,8 @@ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams build() { @java.lang.Override public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams buildPartial() { - com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams result = new com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams(this); + com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams result = + new com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams(this); result.languageCode_ = languageCode_; result.name_ = name_; result.ssmlGender_ = ssmlGender_; @@ -597,38 +661,39 @@ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams 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.texttospeech.v1beta1.VoiceSelectionParams) { - return mergeFrom((com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams)other); + return mergeFrom((com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams) other); } else { super.mergeFrom(other); return this; @@ -636,7 +701,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams other) { - if (other == com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.getDefaultInstance()) return this; + if (other == com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.getDefaultInstance()) + return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -670,7 +736,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -682,6 +749,8 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** + * + * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -697,13 +766,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -712,6 +781,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -727,15 +798,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -743,6 +813,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -758,20 +830,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; } /** + * + * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -787,15 +861,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Required. The language (and potentially also the region) of the voice expressed as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -811,16 +888,16 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -828,19 +905,21 @@ public Builder setLanguageCodeBytes( private java.lang.Object name_ = ""; /** + * + * *
      * The name of the voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; + * * @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; @@ -849,21 +928,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; + * * @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 { @@ -871,57 +951,64 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; + * * @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 voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the voice. If not set, the service will choose a
      * voice based on the other parameters such as language_code and gender.
      * 
* * string name = 2; + * * @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; @@ -929,6 +1016,8 @@ public Builder setNameBytes( private int ssmlGender_ = 0; /** + * + * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -938,12 +1027,16 @@ public Builder setNameBytes(
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @return The enum numeric value on the wire for ssmlGender. */ - @java.lang.Override public int getSsmlGenderValue() { + @java.lang.Override + public int getSsmlGenderValue() { return ssmlGender_; } /** + * + * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -953,16 +1046,19 @@ public Builder setNameBytes(
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @param value The enum numeric value on the wire for ssmlGender to set. * @return This builder for chaining. */ public Builder setSsmlGenderValue(int value) { - + ssmlGender_ = value; onChanged(); return this; } /** + * + * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -972,15 +1068,21 @@ public Builder setSsmlGenderValue(int value) {
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @return The ssmlGender. */ @java.lang.Override public com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender() { @SuppressWarnings("deprecation") - com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender result = com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.valueOf(ssmlGender_); - return result == null ? com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.UNRECOGNIZED : result; + com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender result = + com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.valueOf(ssmlGender_); + return result == null + ? com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender.UNRECOGNIZED + : result; } /** + * + * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -990,6 +1092,7 @@ public com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender() {
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @param value The ssmlGender to set. * @return This builder for chaining. */ @@ -997,12 +1100,14 @@ public Builder setSsmlGender(com.google.cloud.texttospeech.v1beta1.SsmlVoiceGend if (value == null) { throw new NullPointerException(); } - + ssmlGender_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
@@ -1012,10 +1117,11 @@ public Builder setSsmlGender(com.google.cloud.texttospeech.v1beta1.SsmlVoiceGend
      * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @return This builder for chaining. */ public Builder clearSsmlGender() { - + ssmlGender_ = 0; onChanged(); return this; @@ -1023,8 +1129,13 @@ public Builder clearSsmlGender() { private com.google.cloud.texttospeech.v1beta1.CustomVoiceParams customVoice_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.texttospeech.v1beta1.CustomVoiceParams, com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder, com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder> customVoiceBuilder_; + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams, + com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder, + com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder> + customVoiceBuilder_; /** + * + * *
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1032,12 +1143,15 @@ public Builder clearSsmlGender() {
      * 
* * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4; + * * @return Whether the customVoice field is set. */ public boolean hasCustomVoice() { return customVoiceBuilder_ != null || customVoice_ != null; } /** + * + * *
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1045,16 +1159,21 @@ public boolean hasCustomVoice() {
      * 
* * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4; + * * @return The customVoice. */ public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams getCustomVoice() { if (customVoiceBuilder_ == null) { - return customVoice_ == null ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDefaultInstance() : customVoice_; + return customVoice_ == null + ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDefaultInstance() + : customVoice_; } else { return customVoiceBuilder_.getMessage(); } } /** + * + * *
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1077,6 +1196,8 @@ public Builder setCustomVoice(com.google.cloud.texttospeech.v1beta1.CustomVoiceP
       return this;
     }
     /**
+     *
+     *
      * 
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1097,6 +1218,8 @@ public Builder setCustomVoice(
       return this;
     }
     /**
+     *
+     *
      * 
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1109,7 +1232,9 @@ public Builder mergeCustomVoice(com.google.cloud.texttospeech.v1beta1.CustomVoic
       if (customVoiceBuilder_ == null) {
         if (customVoice_ != null) {
           customVoice_ =
-            com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.newBuilder(customVoice_).mergeFrom(value).buildPartial();
+              com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.newBuilder(customVoice_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           customVoice_ = value;
         }
@@ -1121,6 +1246,8 @@ public Builder mergeCustomVoice(com.google.cloud.texttospeech.v1beta1.CustomVoic
       return this;
     }
     /**
+     *
+     *
      * 
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1141,6 +1268,8 @@ public Builder clearCustomVoice() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1150,11 +1279,13 @@ public Builder clearCustomVoice() {
      * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4;
      */
     public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder getCustomVoiceBuilder() {
-      
+
       onChanged();
       return getCustomVoiceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1163,15 +1294,19 @@ public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder getCustom
      *
      * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4;
      */
-    public com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder getCustomVoiceOrBuilder() {
+    public com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder
+        getCustomVoiceOrBuilder() {
       if (customVoiceBuilder_ != null) {
         return customVoiceBuilder_.getMessageOrBuilder();
       } else {
-        return customVoice_ == null ?
-            com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDefaultInstance() : customVoice_;
+        return customVoice_ == null
+            ? com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.getDefaultInstance()
+            : customVoice_;
       }
     }
     /**
+     *
+     *
      * 
      * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
      * the service will choose the custom voice matching the specified
@@ -1181,21 +1316,24 @@ public com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder getCusto
      * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.texttospeech.v1beta1.CustomVoiceParams, com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder, com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder> 
+            com.google.cloud.texttospeech.v1beta1.CustomVoiceParams,
+            com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder,
+            com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder>
         getCustomVoiceFieldBuilder() {
       if (customVoiceBuilder_ == null) {
-        customVoiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.texttospeech.v1beta1.CustomVoiceParams, com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder, com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder>(
-                getCustomVoice(),
-                getParentForChildren(),
-                isClean());
+        customVoiceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.texttospeech.v1beta1.CustomVoiceParams,
+                com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.Builder,
+                com.google.cloud.texttospeech.v1beta1.CustomVoiceParamsOrBuilder>(
+                getCustomVoice(), getParentForChildren(), isClean());
         customVoice_ = null;
       }
       return customVoiceBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1205,12 +1343,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.texttospeech.v1beta1.VoiceSelectionParams)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.texttospeech.v1beta1.VoiceSelectionParams)
   private static final com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams();
   }
@@ -1219,16 +1357,16 @@ public static com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public VoiceSelectionParams parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new VoiceSelectionParams(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public VoiceSelectionParams parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new VoiceSelectionParams(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1243,6 +1381,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java
similarity index 85%
rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java
rename to proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java
index 50303ab3..d1c6eb1d 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java
+++ b/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.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/texttospeech/v1beta1/cloud_tts.proto
 
 package com.google.cloud.texttospeech.v1beta1;
 
-public interface VoiceSelectionParamsOrBuilder extends
+public interface VoiceSelectionParamsOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.texttospeech.v1beta1.VoiceSelectionParams)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The language (and potentially also the region) of the voice expressed as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -23,10 +41,13 @@ public interface VoiceSelectionParamsOrBuilder extends
    * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Required. The language (and potentially also the region) of the voice expressed as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
@@ -42,34 +63,41 @@ public interface VoiceSelectionParamsOrBuilder extends
    * 
* * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * The name of the voice. If not set, the service will choose a
    * voice based on the other parameters such as language_code and gender.
    * 
* * string name = 2; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the voice. If not set, the service will choose a
    * voice based on the other parameters such as language_code and gender.
    * 
* * string name = 2; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
@@ -79,10 +107,13 @@ public interface VoiceSelectionParamsOrBuilder extends
    * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @return The enum numeric value on the wire for ssmlGender. */ int getSsmlGenderValue(); /** + * + * *
    * The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
@@ -92,11 +123,14 @@ public interface VoiceSelectionParamsOrBuilder extends
    * 
* * .google.cloud.texttospeech.v1beta1.SsmlVoiceGender ssml_gender = 3; + * * @return The ssmlGender. */ com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender(); /** + * + * *
    * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
    * the service will choose the custom voice matching the specified
@@ -104,10 +138,13 @@ public interface VoiceSelectionParamsOrBuilder extends
    * 
* * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4; + * * @return Whether the customVoice field is set. */ boolean hasCustomVoice(); /** + * + * *
    * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
    * the service will choose the custom voice matching the specified
@@ -115,10 +152,13 @@ public interface VoiceSelectionParamsOrBuilder extends
    * 
* * .google.cloud.texttospeech.v1beta1.CustomVoiceParams custom_voice = 4; + * * @return The customVoice. */ com.google.cloud.texttospeech.v1beta1.CustomVoiceParams getCustomVoice(); /** + * + * *
    * The configuration for a custom voice. If [CustomVoiceParams.model] is set,
    * the service will choose the custom voice matching the specified
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto b/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto
similarity index 100%
rename from owl-bot-staging/v1beta1/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto
rename to proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto