From 1952db9fff203473afa3084409e571a847c7e115 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 10 Sep 2019 00:55:45 -0700 Subject: [PATCH] Regenerate texttospeech client --- .../v1beta1/TextToSpeechGrpc.java | 12 +- .../cloud/texttospeech/v1/AudioConfig.java | 491 ++++++++++-------- .../texttospeech/v1/AudioConfigOrBuilder.java | 137 ++--- .../cloud/texttospeech/v1/AudioEncoding.java | 4 +- .../texttospeech/v1/ListVoicesRequest.java | 28 +- .../v1/ListVoicesRequestOrBuilder.java | 8 +- .../v1/SynthesizeSpeechRequest.java | 144 +++-- .../v1/SynthesizeSpeechRequestOrBuilder.java | 36 +- .../v1/SynthesizeSpeechResponse.java | 12 +- .../v1/SynthesizeSpeechResponseOrBuilder.java | 3 +- .../texttospeech/v1/TextToSpeechProto.java | 98 ++-- .../texttospeech/v1/VoiceSelectionParams.java | 70 +-- .../v1/VoiceSelectionParamsOrBuilder.java | 20 +- .../cloud/texttospeech/v1/cloud_tts.proto | 208 ++++---- .../texttospeech/v1beta1/AudioConfig.java | 439 ++++++++++------ .../v1beta1/AudioConfigOrBuilder.java | 121 +++-- .../texttospeech/v1beta1/AudioEncoding.java | 4 +- .../v1beta1/ListVoicesRequest.java | 28 +- .../v1beta1/ListVoicesRequestOrBuilder.java | 8 +- .../v1beta1/SynthesizeSpeechRequest.java | 144 +++-- .../SynthesizeSpeechRequestOrBuilder.java | 36 +- .../v1beta1/SynthesizeSpeechResponse.java | 12 +- .../SynthesizeSpeechResponseOrBuilder.java | 3 +- .../v1beta1/TextToSpeechProto.java | 102 ++-- .../v1beta1/VoiceSelectionParams.java | 70 +-- .../VoiceSelectionParamsOrBuilder.java | 20 +- .../texttospeech/v1beta1/cloud_tts.proto | 209 ++++---- .../texttospeech/v1/TextToSpeechClient.java | 2 +- .../v1/stub/TextToSpeechStubSettings.java | 2 +- .../v1beta1/TextToSpeechClient.java | 8 +- .../stub/TextToSpeechStubSettings.java | 2 +- .../google-cloud-texttospeech/synth.metadata | 9 +- 32 files changed, 1478 insertions(+), 1012 deletions(-) diff --git a/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java b/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java index 748993cc14d4..5b7572661d8e 100644 --- a/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java +++ b/google-api-grpc/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java @@ -171,8 +171,7 @@ public abstract static class TextToSpeechImplBase implements io.grpc.BindableSer * * *
-     * Returns a list of [Voice][google.cloud.texttospeech.v1beta1.Voice]
-     * supported for synthesis.
+     * Returns a list of Voice supported for synthesis.
      * 
*/ public void listVoices( @@ -243,8 +242,7 @@ protected TextToSpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
-     * Returns a list of [Voice][google.cloud.texttospeech.v1beta1.Voice]
-     * supported for synthesis.
+     * Returns a list of Voice supported for synthesis.
      * 
*/ public void listVoices( @@ -303,8 +301,7 @@ protected TextToSpeechBlockingStub build( * * *
-     * Returns a list of [Voice][google.cloud.texttospeech.v1beta1.Voice]
-     * supported for synthesis.
+     * Returns a list of Voice supported for synthesis.
      * 
*/ public com.google.cloud.texttospeech.v1beta1.ListVoicesResponse listVoices( @@ -355,8 +352,7 @@ protected TextToSpeechFutureStub build( * * *
-     * Returns a list of [Voice][google.cloud.texttospeech.v1beta1.Voice]
-     * supported for synthesis.
+     * Returns a list of Voice supported for synthesis.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java index 6d7bb65e4054..50488b094438 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java @@ -132,10 +132,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The format of the requested audio byte stream.
+   * Required. The format of the audio byte stream.
    * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getAudioEncodingValue() { return audioEncoding_; @@ -144,10 +146,12 @@ public int getAudioEncodingValue() { * * *
-   * Required. The format of the requested audio byte stream.
+   * Required. The format of the audio byte stream.
    * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.AudioEncoding getAudioEncoding() { @SuppressWarnings("deprecation") @@ -162,13 +166,15 @@ public com.google.cloud.texttospeech.v1.AudioEncoding getAudioEncoding() { * * *
-   * Optional 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 fast, and
-   * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-   * other values < 0.25 or > 4.0 will return an error.
+   * 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
+   * fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
+   * speed. Any other values < 0.25 or > 4.0 will return an error.
    * 
* - * double speaking_rate = 2; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public double getSpeakingRate() { return speakingRate_; @@ -180,12 +186,14 @@ public double getSpeakingRate() { * * *
-   * Optional 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.
+   * 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; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public double getPitch() { return pitch_; @@ -197,17 +205,19 @@ public double getPitch() { * * *
-   * Optional volume gain (in dB) of the normal native volume supported by the
-   * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
-   * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
-   * will play at approximately half the amplitude of the normal native signal
-   * amplitude. A value of +6.0 (dB) will play at approximately twice the
-   * amplitude of the normal native signal amplitude. Strongly recommend not to
-   * exceed +10 (dB) as there's usually no effective increase in loudness for
-   * any value greater than that.
+   * 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
+   * set to a value of 0.0 (dB), will play at normal native signal amplitude. A
+   * value of -6.0 (dB) will play at approximately half the amplitude of the
+   * normal native signal amplitude. A value of +6.0 (dB) will play at
+   * approximately twice the amplitude of the normal native signal amplitude.
+   * Strongly recommend not to exceed +10 (dB) as there's usually no effective
+   * increase in loudness for any value greater than that.
    * 
* - * double volume_gain_db = 4; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public double getVolumeGainDb() { return volumeGainDb_; @@ -219,15 +229,16 @@ public double getVolumeGainDb() { * * *
-   * The synthesis sample rate (in hertz) for this audio. Optional.  If this is
-   * different from the voice's natural sample rate, then the synthesizer will
-   * honor this request by converting to the desired sample rate (which might
-   * result in worse audio quality), unless the specified sample rate is not
-   * supported for the encoding chosen, in which case it will fail the request
-   * and return [google.rpc.Code.INVALID_ARGUMENT][].
+   * Optional. The synthesis sample rate (in hertz) for this audio. When this is
+   * specified in SynthesizeSpeechRequest, if this is different from the voice's
+   * natural sample rate, then the synthesizer will honor this request by
+   * converting to the desired sample rate (which might result in worse audio
+   * quality), unless the specified sample rate is not supported for the
+   * encoding chosen, in which case it will fail the request and return
+   * [google.rpc.Code.INVALID_ARGUMENT][].
    * 
* - * int32 sample_rate_hertz = 5; + * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public int getSampleRateHertz() { return sampleRateHertz_; @@ -239,16 +250,17 @@ public int getSampleRateHertz() { * * *
-   * An identifier which selects 'audio effects' profiles that are applied on
-   * (post synthesized) text to speech.
-   * Effects are applied on top of each other in the order they are given.
-   * See
-   * [audio-profiles](https:
-   * //cloud.google.com/text-to-speech/docs/audio-profiles)
-   * for current supported profile ids.
+   * Optional. Input only. An identifier which selects 'audio effects' profiles
+   * that are applied on (post synthesized) text to speech. Effects are applied
+   * on top of each other in the order they are given. See
+   * [audio
+   * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+   * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { return effectsProfileId_; @@ -257,16 +269,17 @@ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { * * *
-   * An identifier which selects 'audio effects' profiles that are applied on
-   * (post synthesized) text to speech.
-   * Effects are applied on top of each other in the order they are given.
-   * See
-   * [audio-profiles](https:
-   * //cloud.google.com/text-to-speech/docs/audio-profiles)
-   * for current supported profile ids.
+   * Optional. Input only. An identifier which selects 'audio effects' profiles
+   * that are applied on (post synthesized) text to speech. Effects are applied
+   * on top of each other in the order they are given. See
+   * [audio
+   * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+   * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public int getEffectsProfileIdCount() { return effectsProfileId_.size(); @@ -275,16 +288,17 @@ public int getEffectsProfileIdCount() { * * *
-   * An identifier which selects 'audio effects' profiles that are applied on
-   * (post synthesized) text to speech.
-   * Effects are applied on top of each other in the order they are given.
-   * See
-   * [audio-profiles](https:
-   * //cloud.google.com/text-to-speech/docs/audio-profiles)
-   * for current supported profile ids.
+   * Optional. Input only. An identifier which selects 'audio effects' profiles
+   * that are applied on (post synthesized) text to speech. Effects are applied
+   * on top of each other in the order they are given. See
+   * [audio
+   * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+   * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public java.lang.String getEffectsProfileId(int index) { return effectsProfileId_.get(index); @@ -293,16 +307,17 @@ public java.lang.String getEffectsProfileId(int index) { * * *
-   * An identifier which selects 'audio effects' profiles that are applied on
-   * (post synthesized) text to speech.
-   * Effects are applied on top of each other in the order they are given.
-   * See
-   * [audio-profiles](https:
-   * //cloud.google.com/text-to-speech/docs/audio-profiles)
-   * for current supported profile ids.
+   * Optional. Input only. An identifier which selects 'audio effects' profiles
+   * that are applied on (post synthesized) text to speech. Effects are applied
+   * on top of each other in the order they are given. See
+   * [audio
+   * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+   * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { return effectsProfileId_.getByteString(index); @@ -739,10 +754,12 @@ public Builder mergeFrom( * * *
-     * Required. The format of the requested audio byte stream.
+     * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getAudioEncodingValue() { return audioEncoding_; @@ -751,10 +768,12 @@ public int getAudioEncodingValue() { * * *
-     * Required. The format of the requested audio byte stream.
+     * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudioEncodingValue(int value) { audioEncoding_ = value; @@ -765,10 +784,12 @@ public Builder setAudioEncodingValue(int value) { * * *
-     * Required. The format of the requested audio byte stream.
+     * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.AudioEncoding getAudioEncoding() { @SuppressWarnings("deprecation") @@ -780,10 +801,12 @@ public com.google.cloud.texttospeech.v1.AudioEncoding getAudioEncoding() { * * *
-     * Required. The format of the requested audio byte stream.
+     * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudioEncoding(com.google.cloud.texttospeech.v1.AudioEncoding value) { if (value == null) { @@ -798,10 +821,12 @@ public Builder setAudioEncoding(com.google.cloud.texttospeech.v1.AudioEncoding v * * *
-     * Required. The format of the requested audio byte stream.
+     * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudioEncoding() { @@ -815,13 +840,15 @@ public Builder clearAudioEncoding() { * * *
-     * Optional 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 fast, and
-     * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-     * other values < 0.25 or > 4.0 will return an error.
+     * 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
+     * fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
+     * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 2; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public double getSpeakingRate() { return speakingRate_; @@ -830,13 +857,15 @@ public double getSpeakingRate() { * * *
-     * Optional 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 fast, and
-     * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-     * other values < 0.25 or > 4.0 will return an error.
+     * 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
+     * fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
+     * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 2; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSpeakingRate(double value) { @@ -848,13 +877,15 @@ public Builder setSpeakingRate(double value) { * * *
-     * Optional 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 fast, and
-     * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-     * other values < 0.25 or > 4.0 will return an error.
+     * 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
+     * fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
+     * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 2; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSpeakingRate() { @@ -868,12 +899,14 @@ public Builder clearSpeakingRate() { * * *
-     * Optional 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.
+     * 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; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public double getPitch() { return pitch_; @@ -882,12 +915,14 @@ public double getPitch() { * * *
-     * Optional 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.
+     * 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; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPitch(double value) { @@ -899,12 +934,14 @@ public Builder setPitch(double value) { * * *
-     * Optional 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.
+     * 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; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPitch() { @@ -918,17 +955,19 @@ public Builder clearPitch() { * * *
-     * Optional volume gain (in dB) of the normal native volume supported by the
-     * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
-     * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
-     * will play at approximately half the amplitude of the normal native signal
-     * amplitude. A value of +6.0 (dB) will play at approximately twice the
-     * amplitude of the normal native signal amplitude. Strongly recommend not to
-     * exceed +10 (dB) as there's usually no effective increase in loudness for
-     * any value greater than that.
+     * 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
+     * set to a value of 0.0 (dB), will play at normal native signal amplitude. A
+     * value of -6.0 (dB) will play at approximately half the amplitude of the
+     * normal native signal amplitude. A value of +6.0 (dB) will play at
+     * approximately twice the amplitude of the normal native signal amplitude.
+     * Strongly recommend not to exceed +10 (dB) as there's usually no effective
+     * increase in loudness for any value greater than that.
      * 
* - * double volume_gain_db = 4; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public double getVolumeGainDb() { return volumeGainDb_; @@ -937,17 +976,19 @@ public double getVolumeGainDb() { * * *
-     * Optional volume gain (in dB) of the normal native volume supported by the
-     * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
-     * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
-     * will play at approximately half the amplitude of the normal native signal
-     * amplitude. A value of +6.0 (dB) will play at approximately twice the
-     * amplitude of the normal native signal amplitude. Strongly recommend not to
-     * exceed +10 (dB) as there's usually no effective increase in loudness for
-     * any value greater than that.
+     * 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
+     * set to a value of 0.0 (dB), will play at normal native signal amplitude. A
+     * value of -6.0 (dB) will play at approximately half the amplitude of the
+     * normal native signal amplitude. A value of +6.0 (dB) will play at
+     * approximately twice the amplitude of the normal native signal amplitude.
+     * Strongly recommend not to exceed +10 (dB) as there's usually no effective
+     * increase in loudness for any value greater than that.
      * 
* - * double volume_gain_db = 4; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setVolumeGainDb(double value) { @@ -959,17 +1000,19 @@ public Builder setVolumeGainDb(double value) { * * *
-     * Optional volume gain (in dB) of the normal native volume supported by the
-     * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
-     * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
-     * will play at approximately half the amplitude of the normal native signal
-     * amplitude. A value of +6.0 (dB) will play at approximately twice the
-     * amplitude of the normal native signal amplitude. Strongly recommend not to
-     * exceed +10 (dB) as there's usually no effective increase in loudness for
-     * any value greater than that.
+     * 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
+     * set to a value of 0.0 (dB), will play at normal native signal amplitude. A
+     * value of -6.0 (dB) will play at approximately half the amplitude of the
+     * normal native signal amplitude. A value of +6.0 (dB) will play at
+     * approximately twice the amplitude of the normal native signal amplitude.
+     * Strongly recommend not to exceed +10 (dB) as there's usually no effective
+     * increase in loudness for any value greater than that.
      * 
* - * double volume_gain_db = 4; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearVolumeGainDb() { @@ -983,15 +1026,16 @@ public Builder clearVolumeGainDb() { * * *
-     * The synthesis sample rate (in hertz) for this audio. Optional.  If this is
-     * different from the voice's natural sample rate, then the synthesizer will
-     * honor this request by converting to the desired sample rate (which might
-     * result in worse audio quality), unless the specified sample rate is not
-     * supported for the encoding chosen, in which case it will fail the request
-     * and return [google.rpc.Code.INVALID_ARGUMENT][].
+     * Optional. The synthesis sample rate (in hertz) for this audio. When this is
+     * specified in SynthesizeSpeechRequest, if this is different from the voice's
+     * natural sample rate, then the synthesizer will honor this request by
+     * converting to the desired sample rate (which might result in worse audio
+     * quality), unless the specified sample rate is not supported for the
+     * encoding chosen, in which case it will fail the request and return
+     * [google.rpc.Code.INVALID_ARGUMENT][].
      * 
* - * int32 sample_rate_hertz = 5; + * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public int getSampleRateHertz() { return sampleRateHertz_; @@ -1000,15 +1044,16 @@ public int getSampleRateHertz() { * * *
-     * The synthesis sample rate (in hertz) for this audio. Optional.  If this is
-     * different from the voice's natural sample rate, then the synthesizer will
-     * honor this request by converting to the desired sample rate (which might
-     * result in worse audio quality), unless the specified sample rate is not
-     * supported for the encoding chosen, in which case it will fail the request
-     * and return [google.rpc.Code.INVALID_ARGUMENT][].
+     * Optional. The synthesis sample rate (in hertz) for this audio. When this is
+     * specified in SynthesizeSpeechRequest, if this is different from the voice's
+     * natural sample rate, then the synthesizer will honor this request by
+     * converting to the desired sample rate (which might result in worse audio
+     * quality), unless the specified sample rate is not supported for the
+     * encoding chosen, in which case it will fail the request and return
+     * [google.rpc.Code.INVALID_ARGUMENT][].
      * 
* - * int32 sample_rate_hertz = 5; + * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSampleRateHertz(int value) { @@ -1020,15 +1065,16 @@ public Builder setSampleRateHertz(int value) { * * *
-     * The synthesis sample rate (in hertz) for this audio. Optional.  If this is
-     * different from the voice's natural sample rate, then the synthesizer will
-     * honor this request by converting to the desired sample rate (which might
-     * result in worse audio quality), unless the specified sample rate is not
-     * supported for the encoding chosen, in which case it will fail the request
-     * and return [google.rpc.Code.INVALID_ARGUMENT][].
+     * Optional. The synthesis sample rate (in hertz) for this audio. When this is
+     * specified in SynthesizeSpeechRequest, if this is different from the voice's
+     * natural sample rate, then the synthesizer will honor this request by
+     * converting to the desired sample rate (which might result in worse audio
+     * quality), unless the specified sample rate is not supported for the
+     * encoding chosen, in which case it will fail the request and return
+     * [google.rpc.Code.INVALID_ARGUMENT][].
      * 
* - * int32 sample_rate_hertz = 5; + * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSampleRateHertz() { @@ -1050,16 +1096,17 @@ private void ensureEffectsProfileIdIsMutable() { * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
-     * See
-     * [audio-profiles](https:
-     * //cloud.google.com/text-to-speech/docs/audio-profiles)
-     * for current supported profile ids.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { return effectsProfileId_.getUnmodifiableView(); @@ -1068,16 +1115,17 @@ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
-     * See
-     * [audio-profiles](https:
-     * //cloud.google.com/text-to-speech/docs/audio-profiles)
-     * for current supported profile ids.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public int getEffectsProfileIdCount() { return effectsProfileId_.size(); @@ -1086,16 +1134,17 @@ public int getEffectsProfileIdCount() { * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
-     * See
-     * [audio-profiles](https:
-     * //cloud.google.com/text-to-speech/docs/audio-profiles)
-     * for current supported profile ids.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public java.lang.String getEffectsProfileId(int index) { return effectsProfileId_.get(index); @@ -1104,16 +1153,17 @@ public java.lang.String getEffectsProfileId(int index) { * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
-     * See
-     * [audio-profiles](https:
-     * //cloud.google.com/text-to-speech/docs/audio-profiles)
-     * for current supported profile ids.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { return effectsProfileId_.getByteString(index); @@ -1122,16 +1172,17 @@ public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
-     * See
-     * [audio-profiles](https:
-     * //cloud.google.com/text-to-speech/docs/audio-profiles)
-     * for current supported profile ids.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEffectsProfileId(int index, java.lang.String value) { if (value == null) { @@ -1146,16 +1197,17 @@ public Builder setEffectsProfileId(int index, java.lang.String value) { * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
-     * See
-     * [audio-profiles](https:
-     * //cloud.google.com/text-to-speech/docs/audio-profiles)
-     * for current supported profile ids.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addEffectsProfileId(java.lang.String value) { if (value == null) { @@ -1170,16 +1222,17 @@ public Builder addEffectsProfileId(java.lang.String value) { * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
-     * See
-     * [audio-profiles](https:
-     * //cloud.google.com/text-to-speech/docs/audio-profiles)
-     * for current supported profile ids.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllEffectsProfileId(java.lang.Iterable values) { ensureEffectsProfileIdIsMutable(); @@ -1191,16 +1244,17 @@ public Builder addAllEffectsProfileId(java.lang.Iterable value * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
-     * See
-     * [audio-profiles](https:
-     * //cloud.google.com/text-to-speech/docs/audio-profiles)
-     * for current supported profile ids.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEffectsProfileId() { effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1212,16 +1266,17 @@ public Builder clearEffectsProfileId() { * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
-     * See
-     * [audio-profiles](https:
-     * //cloud.google.com/text-to-speech/docs/audio-profiles)
-     * for current supported profile ids.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addEffectsProfileIdBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java index 3af4c9f58147..37f63c6572e8 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java @@ -12,20 +12,24 @@ public interface AudioConfigOrBuilder * * *
-   * Required. The format of the requested audio byte stream.
+   * Required. The format of the audio byte stream.
    * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getAudioEncodingValue(); /** * * *
-   * Required. The format of the requested audio byte stream.
+   * Required. The format of the audio byte stream.
    * 
* - * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1.AudioEncoding getAudioEncoding(); @@ -33,13 +37,15 @@ public interface AudioConfigOrBuilder * * *
-   * Optional 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 fast, and
-   * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-   * other values < 0.25 or > 4.0 will return an error.
+   * 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
+   * fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
+   * speed. Any other values < 0.25 or > 4.0 will return an error.
    * 
* - * double speaking_rate = 2; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ double getSpeakingRate(); @@ -47,12 +53,14 @@ public interface AudioConfigOrBuilder * * *
-   * Optional 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.
+   * 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; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ double getPitch(); @@ -60,17 +68,19 @@ public interface AudioConfigOrBuilder * * *
-   * Optional volume gain (in dB) of the normal native volume supported by the
-   * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
-   * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
-   * will play at approximately half the amplitude of the normal native signal
-   * amplitude. A value of +6.0 (dB) will play at approximately twice the
-   * amplitude of the normal native signal amplitude. Strongly recommend not to
-   * exceed +10 (dB) as there's usually no effective increase in loudness for
-   * any value greater than that.
+   * 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
+   * set to a value of 0.0 (dB), will play at normal native signal amplitude. A
+   * value of -6.0 (dB) will play at approximately half the amplitude of the
+   * normal native signal amplitude. A value of +6.0 (dB) will play at
+   * approximately twice the amplitude of the normal native signal amplitude.
+   * Strongly recommend not to exceed +10 (dB) as there's usually no effective
+   * increase in loudness for any value greater than that.
    * 
* - * double volume_gain_db = 4; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ double getVolumeGainDb(); @@ -78,15 +88,16 @@ public interface AudioConfigOrBuilder * * *
-   * The synthesis sample rate (in hertz) for this audio. Optional.  If this is
-   * different from the voice's natural sample rate, then the synthesizer will
-   * honor this request by converting to the desired sample rate (which might
-   * result in worse audio quality), unless the specified sample rate is not
-   * supported for the encoding chosen, in which case it will fail the request
-   * and return [google.rpc.Code.INVALID_ARGUMENT][].
+   * Optional. The synthesis sample rate (in hertz) for this audio. When this is
+   * specified in SynthesizeSpeechRequest, if this is different from the voice's
+   * natural sample rate, then the synthesizer will honor this request by
+   * converting to the desired sample rate (which might result in worse audio
+   * quality), unless the specified sample rate is not supported for the
+   * encoding chosen, in which case it will fail the request and return
+   * [google.rpc.Code.INVALID_ARGUMENT][].
    * 
* - * int32 sample_rate_hertz = 5; + * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getSampleRateHertz(); @@ -94,64 +105,68 @@ public interface AudioConfigOrBuilder * * *
-   * An identifier which selects 'audio effects' profiles that are applied on
-   * (post synthesized) text to speech.
-   * Effects are applied on top of each other in the order they are given.
-   * See
-   * [audio-profiles](https:
-   * //cloud.google.com/text-to-speech/docs/audio-profiles)
-   * for current supported profile ids.
+   * Optional. Input only. An identifier which selects 'audio effects' profiles
+   * that are applied on (post synthesized) text to speech. Effects are applied
+   * on top of each other in the order they are given. See
+   * [audio
+   * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+   * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getEffectsProfileIdList(); /** * * *
-   * An identifier which selects 'audio effects' profiles that are applied on
-   * (post synthesized) text to speech.
-   * Effects are applied on top of each other in the order they are given.
-   * See
-   * [audio-profiles](https:
-   * //cloud.google.com/text-to-speech/docs/audio-profiles)
-   * for current supported profile ids.
+   * Optional. Input only. An identifier which selects 'audio effects' profiles
+   * that are applied on (post synthesized) text to speech. Effects are applied
+   * on top of each other in the order they are given. See
+   * [audio
+   * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+   * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ int getEffectsProfileIdCount(); /** * * *
-   * An identifier which selects 'audio effects' profiles that are applied on
-   * (post synthesized) text to speech.
-   * Effects are applied on top of each other in the order they are given.
-   * See
-   * [audio-profiles](https:
-   * //cloud.google.com/text-to-speech/docs/audio-profiles)
-   * for current supported profile ids.
+   * Optional. Input only. An identifier which selects 'audio effects' profiles
+   * that are applied on (post synthesized) text to speech. Effects are applied
+   * on top of each other in the order they are given. See
+   * [audio
+   * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+   * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ java.lang.String getEffectsProfileId(int index); /** * * *
-   * An identifier which selects 'audio effects' profiles that are applied on
-   * (post synthesized) text to speech.
-   * Effects are applied on top of each other in the order they are given.
-   * See
-   * [audio-profiles](https:
-   * //cloud.google.com/text-to-speech/docs/audio-profiles)
-   * for current supported profile ids.
+   * Optional. Input only. An identifier which selects 'audio effects' profiles
+   * that are applied on (post synthesized) text to speech. Effects are applied
+   * on top of each other in the order they are given. See
+   * [audio
+   * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+   * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.ByteString getEffectsProfileIdBytes(int index); } diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java index e246ed493499..8ff69fab9450 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioEncoding.java @@ -39,7 +39,7 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * MP3 audio.
+   * MP3 audio at 32kbps.
    * 
* * MP3 = 2; @@ -86,7 +86,7 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * MP3 audio.
+   * MP3 audio at 32kbps.
    * 
* * MP3 = 2; diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java index 4a19ffa508a9..7ac33fdb6cd7 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequest.java @@ -97,7 +97,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Optional (but recommended)
+   * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -107,7 +107,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * supported "yue-*" voices.
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -124,7 +124,7 @@ public java.lang.String getLanguageCode() { * * *
-   * Optional (but recommended)
+   * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -134,7 +134,7 @@ public java.lang.String getLanguageCode() {
    * supported "yue-*" voices.
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -471,7 +471,7 @@ public Builder mergeFrom( * * *
-     * Optional (but recommended)
+     * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -481,7 +481,7 @@ public Builder mergeFrom(
      * supported "yue-*" voices.
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -498,7 +498,7 @@ public java.lang.String getLanguageCode() { * * *
-     * Optional (but recommended)
+     * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -508,7 +508,7 @@ public java.lang.String getLanguageCode() {
      * supported "yue-*" voices.
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -525,7 +525,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * *
-     * Optional (but recommended)
+     * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -535,7 +535,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * supported "yue-*" voices.
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { @@ -550,7 +550,7 @@ public Builder setLanguageCode(java.lang.String value) { * * *
-     * Optional (but recommended)
+     * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -560,7 +560,7 @@ public Builder setLanguageCode(java.lang.String value) {
      * supported "yue-*" voices.
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearLanguageCode() { @@ -572,7 +572,7 @@ public Builder clearLanguageCode() { * * *
-     * Optional (but recommended)
+     * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -582,7 +582,7 @@ public Builder clearLanguageCode() {
      * supported "yue-*" voices.
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java index 90b206bd8d91..9939a8892ae8 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/ListVoicesRequestOrBuilder.java @@ -12,7 +12,7 @@ public interface ListVoicesRequestOrBuilder * * *
-   * Optional (but recommended)
+   * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -22,14 +22,14 @@ public interface ListVoicesRequestOrBuilder
    * supported "yue-*" voices.
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLanguageCode(); /** * * *
-   * Optional (but recommended)
+   * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -39,7 +39,7 @@ public interface ListVoicesRequestOrBuilder
    * supported "yue-*" voices.
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java index b9beddb8cc95..7a40b42d1f03 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequest.java @@ -140,7 +140,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasInput() { return input_ != null; @@ -152,7 +154,9 @@ public boolean hasInput() { * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.SynthesisInput getInput() { return input_ == null @@ -166,7 +170,9 @@ public 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.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder getInputOrBuilder() { return getInput(); @@ -181,7 +187,9 @@ public com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder getInputOrBuilde * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasVoice() { return voice_ != null; @@ -193,7 +201,9 @@ public boolean hasVoice() { * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.VoiceSelectionParams getVoice() { return voice_ == null @@ -207,7 +217,9 @@ public com.google.cloud.texttospeech.v1.VoiceSelectionParams getVoice() { * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { return getVoice(); @@ -222,7 +234,9 @@ public com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder getVoiceOr * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasAudioConfig() { return audioConfig_ != null; @@ -234,7 +248,9 @@ public boolean hasAudioConfig() { * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.AudioConfig getAudioConfig() { return audioConfig_ == null @@ -248,7 +264,9 @@ public com.google.cloud.texttospeech.v1.AudioConfig getAudioConfig() { * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.AudioConfigOrBuilder getAudioConfigOrBuilder() { return getAudioConfig(); @@ -654,7 +672,9 @@ public Builder mergeFrom( * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasInput() { return inputBuilder_ != null || input_ != null; @@ -666,7 +686,9 @@ public boolean hasInput() { * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.SynthesisInput getInput() { if (inputBuilder_ == null) { @@ -684,7 +706,9 @@ public 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.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInput(com.google.cloud.texttospeech.v1.SynthesisInput value) { if (inputBuilder_ == null) { @@ -706,7 +730,9 @@ public Builder setInput(com.google.cloud.texttospeech.v1.SynthesisInput value) { * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInput( com.google.cloud.texttospeech.v1.SynthesisInput.Builder builderForValue) { @@ -726,7 +752,9 @@ public Builder setInput( * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1; + * + * .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) { @@ -752,7 +780,9 @@ public Builder mergeInput(com.google.cloud.texttospeech.v1.SynthesisInput value) * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInput() { if (inputBuilder_ == null) { @@ -772,7 +802,9 @@ public Builder clearInput() { * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.SynthesisInput.Builder getInputBuilder() { @@ -786,7 +818,9 @@ public com.google.cloud.texttospeech.v1.SynthesisInput.Builder getInputBuilder() * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { @@ -804,7 +838,9 @@ public com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder getInputOrBuilde * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.texttospeech.v1.SynthesisInput, @@ -836,7 +872,9 @@ public com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder getInputOrBuilde * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasVoice() { return voiceBuilder_ != null || voice_ != null; @@ -848,7 +886,9 @@ public boolean hasVoice() { * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.VoiceSelectionParams getVoice() { if (voiceBuilder_ == null) { @@ -866,7 +906,9 @@ public com.google.cloud.texttospeech.v1.VoiceSelectionParams getVoice() { * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2; + * + * .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) { @@ -888,7 +930,9 @@ public Builder setVoice(com.google.cloud.texttospeech.v1.VoiceSelectionParams va * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setVoice( com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder builderForValue) { @@ -908,7 +952,9 @@ public Builder setVoice( * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2; + * + * .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) { @@ -934,7 +980,9 @@ public Builder mergeVoice(com.google.cloud.texttospeech.v1.VoiceSelectionParams * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearVoice() { if (voiceBuilder_ == null) { @@ -954,7 +1002,9 @@ public Builder clearVoice() { * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder getVoiceBuilder() { @@ -968,7 +1018,9 @@ public com.google.cloud.texttospeech.v1.VoiceSelectionParams.Builder getVoiceBui * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { if (voiceBuilder_ != null) { @@ -986,7 +1038,9 @@ public com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder getVoiceOr * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.texttospeech.v1.VoiceSelectionParams, @@ -1018,7 +1072,9 @@ public com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder getVoiceOr * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasAudioConfig() { return audioConfigBuilder_ != null || audioConfig_ != null; @@ -1030,7 +1086,9 @@ public boolean hasAudioConfig() { * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.AudioConfig getAudioConfig() { if (audioConfigBuilder_ == null) { @@ -1048,7 +1106,9 @@ public com.google.cloud.texttospeech.v1.AudioConfig getAudioConfig() { * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3; + * + * .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) { @@ -1070,7 +1130,9 @@ public Builder setAudioConfig(com.google.cloud.texttospeech.v1.AudioConfig value * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudioConfig( com.google.cloud.texttospeech.v1.AudioConfig.Builder builderForValue) { @@ -1090,7 +1152,9 @@ public Builder setAudioConfig( * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3; + * + * .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) { @@ -1116,7 +1180,9 @@ public Builder mergeAudioConfig(com.google.cloud.texttospeech.v1.AudioConfig val * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudioConfig() { if (audioConfigBuilder_ == null) { @@ -1136,7 +1202,9 @@ public Builder clearAudioConfig() { * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.AudioConfig.Builder getAudioConfigBuilder() { @@ -1150,7 +1218,9 @@ public com.google.cloud.texttospeech.v1.AudioConfig.Builder getAudioConfigBuilde * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1.AudioConfigOrBuilder getAudioConfigOrBuilder() { if (audioConfigBuilder_ != null) { @@ -1168,7 +1238,9 @@ public com.google.cloud.texttospeech.v1.AudioConfigOrBuilder getAudioConfigOrBui * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.texttospeech.v1.AudioConfig, diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java index 97a2de6cd493..07fc5f840476 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechRequestOrBuilder.java @@ -15,7 +15,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasInput(); /** @@ -25,7 +27,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1.SynthesisInput getInput(); /** @@ -35,7 +39,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1.SynthesisInputOrBuilder getInputOrBuilder(); @@ -46,7 +52,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasVoice(); /** @@ -56,7 +64,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1.VoiceSelectionParams getVoice(); /** @@ -66,7 +76,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder(); @@ -77,7 +89,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasAudioConfig(); /** @@ -87,7 +101,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1.AudioConfig getAudioConfig(); /** @@ -97,7 +113,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1.AudioConfigOrBuilder getAudioConfigOrBuilder(); } diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java index 84f5a07f250b..045feada5014 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponse.java @@ -96,7 +96,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * The audio data bytes encoded as specified in the request, including the
-   * header (For LINEAR16 audio, we include the WAV header). Note: as
+   * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
+   * For LINEAR16 audio, we include the WAV header. Note: as
    * with all bytes fields, protobuffers use a pure binary representation,
    * whereas JSON representations use base64.
    * 
@@ -431,7 +432,8 @@ public Builder mergeFrom( * *
      * The audio data bytes encoded as specified in the request, including the
-     * header (For LINEAR16 audio, we include the WAV header). Note: as
+     * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
+     * For LINEAR16 audio, we include the WAV header. Note: as
      * with all bytes fields, protobuffers use a pure binary representation,
      * whereas JSON representations use base64.
      * 
@@ -446,7 +448,8 @@ public com.google.protobuf.ByteString getAudioContent() { * *
      * The audio data bytes encoded as specified in the request, including the
-     * header (For LINEAR16 audio, we include the WAV header). Note: as
+     * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
+     * For LINEAR16 audio, we include the WAV header. Note: as
      * with all bytes fields, protobuffers use a pure binary representation,
      * whereas JSON representations use base64.
      * 
@@ -467,7 +470,8 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) { * *
      * The audio data bytes encoded as specified in the request, including the
-     * header (For LINEAR16 audio, we include the WAV header). Note: as
+     * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
+     * For LINEAR16 audio, we include the WAV header. Note: as
      * with all bytes fields, protobuffers use a pure binary representation,
      * whereas JSON representations use base64.
      * 
diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java index 97d563799a75..10dc28b72329 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeSpeechResponseOrBuilder.java @@ -13,7 +13,8 @@ public interface SynthesizeSpeechResponseOrBuilder * *
    * The audio data bytes encoded as specified in the request, including the
-   * header (For LINEAR16 audio, we include the WAV header). Note: as
+   * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
+   * For LINEAR16 audio, we include the WAV header. Note: as
    * with all bytes fields, protobuffers use a pure binary representation,
    * whereas JSON representations use base64.
    * 
diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java index 3140454662c5..badfbe3acd9a 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java @@ -55,48 +55,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n,google/cloud/texttospeech/v1/cloud_tts" + ".proto\022\034google.cloud.texttospeech.v1\032\034go" - + "ogle/api/annotations.proto\"*\n\021ListVoices" - + "Request\022\025\n\rlanguage_code\030\001 \001(\t\"I\n\022ListVo" - + "icesResponse\0223\n\006voices\030\001 \003(\0132#.google.cl" - + "oud.texttospeech.v1.Voice\"\224\001\n\005Voice\022\026\n\016l" - + "anguage_codes\030\001 \003(\t\022\014\n\004name\030\002 \001(\t\022B\n\013ssm" - + "l_gender\030\003 \001(\0162-.google.cloud.texttospee" - + "ch.v1.SsmlVoiceGender\022!\n\031natural_sample_" - + "rate_hertz\030\004 \001(\005\"\332\001\n\027SynthesizeSpeechReq" - + "uest\022;\n\005input\030\001 \001(\0132,.google.cloud.textt" - + "ospeech.v1.SynthesisInput\022A\n\005voice\030\002 \001(\013" - + "22.google.cloud.texttospeech.v1.VoiceSel" - + "ectionParams\022?\n\014audio_config\030\003 \001(\0132).goo" - + "gle.cloud.texttospeech.v1.AudioConfig\"@\n" - + "\016SynthesisInput\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030" - + "\002 \001(\tH\000B\016\n\014input_source\"\177\n\024VoiceSelectio" - + "nParams\022\025\n\rlanguage_code\030\001 \001(\t\022\014\n\004name\030\002" - + " \001(\t\022B\n\013ssml_gender\030\003 \001(\0162-.google.cloud" - + ".texttospeech.v1.SsmlVoiceGender\"\307\001\n\013Aud" - + "ioConfig\022C\n\016audio_encoding\030\001 \001(\0162+.googl" - + "e.cloud.texttospeech.v1.AudioEncoding\022\025\n" - + "\rspeaking_rate\030\002 \001(\001\022\r\n\005pitch\030\003 \001(\001\022\026\n\016v" - + "olume_gain_db\030\004 \001(\001\022\031\n\021sample_rate_hertz" - + "\030\005 \001(\005\022\032\n\022effects_profile_id\030\006 \003(\t\"1\n\030Sy" - + "nthesizeSpeechResponse\022\025\n\raudio_content\030" - + "\001 \001(\014*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*T\n\rAudioEncoding\022\036\n\032AUDIO" - + "_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\007\n" - + "\003MP3\020\002\022\014\n\010OGG_OPUS\020\0032\270\002\n\014TextToSpeech\022\203\001" - + "\n\nListVoices\022/.google.cloud.texttospeech" - + ".v1.ListVoicesRequest\0320.google.cloud.tex" - + "ttospeech.v1.ListVoicesResponse\"\022\202\323\344\223\002\014\022" - + "\n/v1/voices\022\241\001\n\020SynthesizeSpeech\0225.googl" - + "e.cloud.texttospeech.v1.SynthesizeSpeech" - + "Request\0326.google.cloud.texttospeech.v1.S" - + "ynthesizeSpeechResponse\"\036\202\323\344\223\002\030\"\023/v1/tex" - + "t:synthesize:\001*B\302\001\n com.google.cloud.tex" - + "ttospeech.v1B\021TextToSpeechProtoP\001ZHgoogl" - + "e.golang.org/genproto/googleapis/cloud/t" - + "exttospeech/v1;texttospeech\370\001\001\252\002\034Google." - + "Cloud.TextToSpeech.V1\312\002\034Google\\Cloud\\Tex" - + "tToSpeech\\V1b\006proto3" + + "ogle/api/annotations.proto\032\027google/api/c" + + "lient.proto\032\037google/api/field_behavior.p" + + "roto\"/\n\021ListVoicesRequest\022\032\n\rlanguage_co" + + "de\030\001 \001(\tB\003\340A\001\"I\n\022ListVoicesResponse\0223\n\006v" + + "oices\030\001 \003(\0132#.google.cloud.texttospeech." + + "v1.Voice\"\224\001\n\005Voice\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.SsmlVoiceGe" + + "nder\022!\n\031natural_sample_rate_hertz\030\004 \001(\005\"" + + "\351\001\n\027SynthesizeSpeechRequest\022@\n\005input\030\001 \001" + + "(\0132,.google.cloud.texttospeech.v1.Synthe" + + "sisInputB\003\340A\002\022F\n\005voice\030\002 \001(\01322.google.cl" + + "oud.texttospeech.v1.VoiceSelectionParams" + + "B\003\340A\002\022D\n\014audio_config\030\003 \001(\0132).google.clo" + + "ud.texttospeech.v1.AudioConfigB\003\340A\002\"@\n\016S" + + "ynthesisInput\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 " + + "\001(\tH\000B\016\n\014input_source\"\204\001\n\024VoiceSelection" + + "Params\022\032\n\rlanguage_code\030\001 \001(\tB\003\340A\002\022\014\n\004na" + + "me\030\002 \001(\t\022B\n\013ssml_gender\030\003 \001(\0162-.google.c" + + "loud.texttospeech.v1.SsmlVoiceGender\"\361\001\n" + + "\013AudioConfig\022H\n\016audio_encoding\030\001 \001(\0162+.g" + + "oogle.cloud.texttospeech.v1.AudioEncodin" + + "gB\003\340A\002\022\035\n\rspeaking_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\022effects_profile_id\030\006 \003(\tB\006\340A\004\340A\001" + + "\"1\n\030SynthesizeSpeechResponse\022\025\n\raudio_co" + + "ntent\030\001 \001(\014*W\n\017SsmlVoiceGender\022!\n\035SSML_V" + + "OICE_GENDER_UNSPECIFIED\020\000\022\010\n\004MALE\020\001\022\n\n\006F" + + "EMALE\020\002\022\013\n\007NEUTRAL\020\003*T\n\rAudioEncoding\022\036\n" + + "\032AUDIO_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR1" + + "6\020\001\022\007\n\003MP3\020\002\022\014\n\010OGG_OPUS\020\0032\264\003\n\014TextToSpe" + + "ech\022\223\001\n\nListVoices\022/.google.cloud.textto" + + "speech.v1.ListVoicesRequest\0320.google.clo" + + "ud.texttospeech.v1.ListVoicesResponse\"\"\202" + + "\323\344\223\002\014\022\n/v1/voices\332A\rlanguage_code\022\274\001\n\020Sy" + + "nthesizeSpeech\0225.google.cloud.texttospee" + + "ch.v1.SynthesizeSpeechRequest\0326.google.c" + + "loud.texttospeech.v1.SynthesizeSpeechRes" + + "ponse\"9\202\323\344\223\002\030\"\023/v1/text:synthesize:\001*\332A\030" + + "input,voice,audio_config\032O\312A\033texttospeec" + + "h.googleapis.com\322A.https://www.googleapi" + + "s.com/auth/cloud-platformB\302\001\n com.google" + + ".cloud.texttospeech.v1B\021TextToSpeechProt" + + "oP\001ZHgoogle.golang.org/genproto/googleap" + + "is/cloud/texttospeech/v1;texttospeech\370\001\001" + + "\252\002\034Google.Cloud.TextToSpeech.V1\312\002\034Google" + + "\\Cloud\\TextToSpeech\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -110,6 +116,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), }, assigner); internal_static_google_cloud_texttospeech_v1_ListVoicesRequest_descriptor = @@ -183,10 +191,16 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( }); 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); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java index 93dd772c4abb..dec6be15fbca 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParams.java @@ -113,9 +113,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The language (and optionally also the region) of the voice expressed as a
+   * 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.
-   * "en-US". Required. This should not include a script tag (e.g. use
+   * "en-US". This should not include a script tag (e.g. use
    * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
    * from the input provided in the SynthesisInput.  The TTS service
    * will use this parameter to help choose an appropriate voice.  Note that
@@ -126,7 +126,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * Bokmal) instead of "no" (Norwegian)".
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -143,9 +143,9 @@ public java.lang.String getLanguageCode() { * * *
-   * The language (and optionally also the region) of the voice expressed as a
+   * 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.
-   * "en-US". Required. This should not include a script tag (e.g. use
+   * "en-US". This should not include a script tag (e.g. use
    * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
    * from the input provided in the SynthesisInput.  The TTS service
    * will use this parameter to help choose an appropriate voice.  Note that
@@ -156,7 +156,7 @@ public java.lang.String getLanguageCode() {
    * Bokmal) instead of "no" (Norwegian)".
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -176,7 +176,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * *
-   * The name of the voice. Optional; if not set, the service will choose a
+   * 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.
    * 
* @@ -197,7 +197,7 @@ public java.lang.String getName() { * * *
-   * The name of the voice. Optional; if not set, the service will choose a
+   * 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.
    * 
* @@ -221,7 +221,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The preferred gender of the voice. Optional; if not set, the service will
+   * 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
    * name. Note that this is only a preference, not requirement; if a
    * voice of the appropriate gender is not available, the synthesizer should
@@ -237,7 +237,7 @@ public int getSsmlGenderValue() {
    *
    *
    * 
-   * The preferred gender of the voice. Optional; if not set, the service will
+   * 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
    * name. Note that this is only a preference, not requirement; if a
    * voice of the appropriate gender is not available, the synthesizer should
@@ -612,9 +612,9 @@ public Builder mergeFrom(
      *
      *
      * 
-     * The language (and optionally also the region) of the voice expressed as a
+     * 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.
-     * "en-US". Required. This should not include a script tag (e.g. use
+     * "en-US". This should not include a script tag (e.g. use
      * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
      * from the input provided in the SynthesisInput.  The TTS service
      * will use this parameter to help choose an appropriate voice.  Note that
@@ -625,7 +625,7 @@ public Builder mergeFrom(
      * Bokmal) instead of "no" (Norwegian)".
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -642,9 +642,9 @@ public java.lang.String getLanguageCode() { * * *
-     * The language (and optionally also the region) of the voice expressed as a
+     * 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.
-     * "en-US". Required. This should not include a script tag (e.g. use
+     * "en-US". This should not include a script tag (e.g. use
      * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
      * from the input provided in the SynthesisInput.  The TTS service
      * will use this parameter to help choose an appropriate voice.  Note that
@@ -655,7 +655,7 @@ public java.lang.String getLanguageCode() {
      * Bokmal) instead of "no" (Norwegian)".
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -672,9 +672,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * *
-     * The language (and optionally also the region) of the voice expressed as a
+     * 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.
-     * "en-US". Required. This should not include a script tag (e.g. use
+     * "en-US". This should not include a script tag (e.g. use
      * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
      * from the input provided in the SynthesisInput.  The TTS service
      * will use this parameter to help choose an appropriate voice.  Note that
@@ -685,7 +685,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * Bokmal) instead of "no" (Norwegian)".
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { @@ -700,9 +700,9 @@ public Builder setLanguageCode(java.lang.String value) { * * *
-     * The language (and optionally also the region) of the voice expressed as a
+     * 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.
-     * "en-US". Required. This should not include a script tag (e.g. use
+     * "en-US". This should not include a script tag (e.g. use
      * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
      * from the input provided in the SynthesisInput.  The TTS service
      * will use this parameter to help choose an appropriate voice.  Note that
@@ -713,7 +713,7 @@ public Builder setLanguageCode(java.lang.String value) {
      * Bokmal) instead of "no" (Norwegian)".
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearLanguageCode() { @@ -725,9 +725,9 @@ public Builder clearLanguageCode() { * * *
-     * The language (and optionally also the region) of the voice expressed as a
+     * 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.
-     * "en-US". Required. This should not include a script tag (e.g. use
+     * "en-US". This should not include a script tag (e.g. use
      * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
      * from the input provided in the SynthesisInput.  The TTS service
      * will use this parameter to help choose an appropriate voice.  Note that
@@ -738,7 +738,7 @@ public Builder clearLanguageCode() {
      * Bokmal) instead of "no" (Norwegian)".
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -756,7 +756,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * * *
-     * The name of the voice. Optional; if not set, the service will choose a
+     * 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.
      * 
* @@ -777,7 +777,7 @@ public java.lang.String getName() { * * *
-     * The name of the voice. Optional; if not set, the service will choose a
+     * 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.
      * 
* @@ -798,7 +798,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The name of the voice. Optional; if not set, the service will choose a
+     * 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.
      * 
* @@ -817,7 +817,7 @@ public Builder setName(java.lang.String value) { * * *
-     * The name of the voice. Optional; if not set, the service will choose a
+     * 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.
      * 
* @@ -833,7 +833,7 @@ public Builder clearName() { * * *
-     * The name of the voice. Optional; if not set, the service will choose a
+     * 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.
      * 
* @@ -855,7 +855,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The preferred gender of the voice. Optional; if not set, the service will
+     * 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
      * name. Note that this is only a preference, not requirement; if a
      * voice of the appropriate gender is not available, the synthesizer should
@@ -871,7 +871,7 @@ public int getSsmlGenderValue() {
      *
      *
      * 
-     * The preferred gender of the voice. Optional; if not set, the service will
+     * 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
      * name. Note that this is only a preference, not requirement; if a
      * voice of the appropriate gender is not available, the synthesizer should
@@ -889,7 +889,7 @@ public Builder setSsmlGenderValue(int value) {
      *
      *
      * 
-     * The preferred gender of the voice. Optional; if not set, the service will
+     * 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
      * name. Note that this is only a preference, not requirement; if a
      * voice of the appropriate gender is not available, the synthesizer should
@@ -910,7 +910,7 @@ public com.google.cloud.texttospeech.v1.SsmlVoiceGender getSsmlGender() {
      *
      *
      * 
-     * The preferred gender of the voice. Optional; if not set, the service will
+     * 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
      * name. Note that this is only a preference, not requirement; if a
      * voice of the appropriate gender is not available, the synthesizer should
@@ -932,7 +932,7 @@ public Builder setSsmlGender(com.google.cloud.texttospeech.v1.SsmlVoiceGender va
      *
      *
      * 
-     * The preferred gender of the voice. Optional; if not set, the service will
+     * 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
      * name. Note that this is only a preference, not requirement; if a
      * voice of the appropriate gender is not available, the synthesizer should
diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java
index e62ac4e9a811..71dad05394ab 100644
--- a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/VoiceSelectionParamsOrBuilder.java
@@ -12,9 +12,9 @@ public interface VoiceSelectionParamsOrBuilder
    *
    *
    * 
-   * The language (and optionally also the region) of the voice expressed as a
+   * 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.
-   * "en-US". Required. This should not include a script tag (e.g. use
+   * "en-US". This should not include a script tag (e.g. use
    * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
    * from the input provided in the SynthesisInput.  The TTS service
    * will use this parameter to help choose an appropriate voice.  Note that
@@ -25,16 +25,16 @@ public interface VoiceSelectionParamsOrBuilder
    * Bokmal) instead of "no" (Norwegian)".
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ java.lang.String getLanguageCode(); /** * * *
-   * The language (and optionally also the region) of the voice expressed as a
+   * 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.
-   * "en-US". Required. This should not include a script tag (e.g. use
+   * "en-US". This should not include a script tag (e.g. use
    * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
    * from the input provided in the SynthesisInput.  The TTS service
    * will use this parameter to help choose an appropriate voice.  Note that
@@ -45,7 +45,7 @@ public interface VoiceSelectionParamsOrBuilder
    * Bokmal) instead of "no" (Norwegian)".
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.ByteString getLanguageCodeBytes(); @@ -53,7 +53,7 @@ public interface VoiceSelectionParamsOrBuilder * * *
-   * The name of the voice. Optional; if not set, the service will choose a
+   * 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.
    * 
* @@ -64,7 +64,7 @@ public interface VoiceSelectionParamsOrBuilder * * *
-   * The name of the voice. Optional; if not set, the service will choose a
+   * 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.
    * 
* @@ -76,7 +76,7 @@ public interface VoiceSelectionParamsOrBuilder * * *
-   * The preferred gender of the voice. Optional; if not set, the service will
+   * 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
    * name. Note that this is only a preference, not requirement; if a
    * voice of the appropriate gender is not available, the synthesizer should
@@ -90,7 +90,7 @@ public interface VoiceSelectionParamsOrBuilder
    *
    *
    * 
-   * The preferred gender of the voice. Optional; if not set, the service will
+   * 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
    * name. Note that this is only a preference, not requirement; if a
    * voice of the appropriate gender is not available, the synthesizer should
diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto
index dd9fa6ce221a..6263da4ab085 100644
--- a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto
+++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC.
+// Copyright 2019 Google LLC.
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -18,6 +18,8 @@ syntax = "proto3";
 package google.cloud.texttospeech.v1;
 
 import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
 
 option cc_enable_arenas = true;
 option csharp_namespace = "Google.Cloud.TextToSpeech.V1";
@@ -29,27 +31,31 @@ option php_namespace = "Google\\Cloud\\TextToSpeech\\V1";
 
 // Service that implements Google Cloud Text-to-Speech API.
 service TextToSpeech {
+  option (google.api.default_host) = "texttospeech.googleapis.com";
+  option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
   // Returns a list of Voice supported for synthesis.
   rpc ListVoices(ListVoicesRequest) returns (ListVoicesResponse) {
     option (google.api.http) = {
       get: "/v1/voices"
     };
+    option (google.api.method_signature) = "language_code";
   }
 
   // Synthesizes speech synchronously: receive results after all text input
   // has been processed.
-  rpc SynthesizeSpeech(SynthesizeSpeechRequest)
-      returns (SynthesizeSpeechResponse) {
+  rpc SynthesizeSpeech(SynthesizeSpeechRequest) returns (SynthesizeSpeechResponse) {
     option (google.api.http) = {
       post: "/v1/text:synthesize"
       body: "*"
     };
+    option (google.api.method_signature) = "input,voice,audio_config";
   }
 }
 
 // The top-level message sent by the client for the `ListVoices` method.
 message ListVoicesRequest {
-  // Optional (but recommended)
+  // Optional. Recommended.
   // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -57,7 +63,47 @@ message ListVoicesRequest {
   // "no-*" (Norwegian) and "nb-*" (Norwegian Bokmal) voices; specifying "zh"
   // will also get supported "cmn-*" voices; specifying "zh-hk" will also get
   // supported "yue-*" voices.
-  string language_code = 1;
+  string language_code = 1 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Gender of the voice as described in
+// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
+enum SsmlVoiceGender {
+  // An unspecified gender.
+  // In VoiceSelectionParams, this means that the client doesn't care which
+  // gender the selected voice will have. In the Voice field of
+  // ListVoicesResponse, this may mean that the voice doesn't fit any of the
+  // other categories in this enum, or that the gender of the voice isn't known.
+  SSML_VOICE_GENDER_UNSPECIFIED = 0;
+
+  // A male voice.
+  MALE = 1;
+
+  // A female voice.
+  FEMALE = 2;
+
+  // A gender-neutral voice.
+  NEUTRAL = 3;
+}
+
+// Configuration to set up audio encoder. The encoding determines the output
+// audio format that we'd like.
+enum AudioEncoding {
+  // Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
+  AUDIO_ENCODING_UNSPECIFIED = 0;
+
+  // Uncompressed 16-bit signed little-endian samples (Linear PCM).
+  // Audio content returned as LINEAR16 also contains a WAV header.
+  LINEAR16 = 1;
+
+  // MP3 audio at 32kbps.
+  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
+  // Chrome and Firefox). The quality of the encoding is considerably higher
+  // than MP3 while using approximately the same bitrate.
+  OGG_OPUS = 3;
 }
 
 // The message returned to the client by the `ListVoices` method.
@@ -86,13 +132,13 @@ message Voice {
 // The top-level message sent by the client for the `SynthesizeSpeech` method.
 message SynthesizeSpeechRequest {
   // Required. The Synthesizer requires either plain text or SSML as input.
-  SynthesisInput input = 1;
+  SynthesisInput input = 1 [(google.api.field_behavior) = REQUIRED];
 
   // Required. The desired voice of the synthesized audio.
-  VoiceSelectionParams voice = 2;
+  VoiceSelectionParams voice = 2 [(google.api.field_behavior) = REQUIRED];
 
   // Required. The configuration of the synthesized audio.
-  AudioConfig audio_config = 3;
+  AudioConfig audio_config = 3 [(google.api.field_behavior) = REQUIRED];
 }
 
 // Contains text input to be synthesized. Either `text` or `ssml` must be
@@ -115,9 +161,9 @@ message SynthesisInput {
 
 // Description of which voice to use for a synthesis request.
 message VoiceSelectionParams {
-  // The language (and optionally also the region) of the voice expressed as a
+  // 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.
-  // "en-US". Required. This should not include a script tag (e.g. use
+  // "en-US". This should not include a script tag (e.g. use
   // "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
   // from the input provided in the SynthesisInput.  The TTS service
   // will use this parameter to help choose an appropriate voice.  Note that
@@ -126,13 +172,13 @@ message VoiceSelectionParams {
   // (e.g. using en-US rather than en-CA if there isn't a Canadian voice
   // available), or even a different language, e.g. using "nb" (Norwegian
   // Bokmal) instead of "no" (Norwegian)".
-  string language_code = 1;
+  string language_code = 1 [(google.api.field_behavior) = REQUIRED];
 
-  // The name of the voice. Optional; if not set, the service will choose a
+  // 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;
 
-  // The preferred gender of the voice. Optional; if not set, the service will
+  // 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
   // name. Note that this is only a preference, not requirement; if a
   // voice of the appropriate gender is not available, the synthesizer should
@@ -142,94 +188,66 @@ message VoiceSelectionParams {
 
 // Description of audio data to be synthesized.
 message AudioConfig {
-  // Required. The format of the requested audio byte stream.
-  AudioEncoding audio_encoding = 1;
-
-  // Optional 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 fast, and
-  // 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-  // other values < 0.25 or > 4.0 will return an error.
-  double speaking_rate = 2;
-
-  // Optional 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;
-
-  // Optional volume gain (in dB) of the normal native volume supported by the
-  // specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
-  // 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
-  // will play at approximately half the amplitude of the normal native signal
-  // amplitude. A value of +6.0 (dB) will play at approximately twice the
-  // amplitude of the normal native signal amplitude. Strongly recommend not to
-  // exceed +10 (dB) as there's usually no effective increase in loudness for
-  // any value greater than that.
-  double volume_gain_db = 4;
-
-  // The synthesis sample rate (in hertz) for this audio. Optional.  If this is
-  // different from the voice's natural sample rate, then the synthesizer will
-  // honor this request by converting to the desired sample rate (which might
-  // result in worse audio quality), unless the specified sample rate is not
-  // supported for the encoding chosen, in which case it will fail the request
-  // and return [google.rpc.Code.INVALID_ARGUMENT][].
-  int32 sample_rate_hertz = 5;
-
-  // An identifier which selects 'audio effects' profiles that are applied on
-  // (post synthesized) text to speech.
-  // Effects are applied on top of each other in the order they are given.
-  // See
-  //
-  // [audio-profiles](https:
-  // //cloud.google.com/text-to-speech/docs/audio-profiles)
-  // for current supported profile ids.
-  repeated string effects_profile_id = 6;
+  // Required. The format of the audio byte stream.
+  AudioEncoding audio_encoding = 1 [(google.api.field_behavior) = REQUIRED];
+
+  // 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
+  // fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
+  // 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
+  ];
+
+  // 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
+  ];
+
+  // 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
+  // set to a value of 0.0 (dB), will play at normal native signal amplitude. A
+  // value of -6.0 (dB) will play at approximately half the amplitude of the
+  // normal native signal amplitude. A value of +6.0 (dB) will play at
+  // approximately twice the amplitude of the normal native signal amplitude.
+  // Strongly recommend not to exceed +10 (dB) as there's usually no effective
+  // 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
+  ];
+
+  // Optional. The synthesis sample rate (in hertz) for this audio. When this is
+  // specified in SynthesizeSpeechRequest, if this is different from the voice's
+  // natural sample rate, then the synthesizer will honor this request by
+  // converting to the desired sample rate (which might result in worse audio
+  // quality), unless the specified sample rate is not supported for the
+  // encoding chosen, in which case it will fail the request and return
+  // [google.rpc.Code.INVALID_ARGUMENT][].
+  int32 sample_rate_hertz = 5 [(google.api.field_behavior) = OPTIONAL];
+
+  // Optional. Input only. An identifier which selects 'audio effects' profiles
+  // that are applied on (post synthesized) text to speech. Effects are applied
+  // on top of each other in the order they are given. See
+  // [audio
+  // profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+  // current supported profile ids.
+  repeated string effects_profile_id = 6 [
+    (google.api.field_behavior) = INPUT_ONLY,
+    (google.api.field_behavior) = OPTIONAL
+  ];
 }
 
 // The message returned to the client by the `SynthesizeSpeech` method.
 message SynthesizeSpeechResponse {
   // The audio data bytes encoded as specified in the request, including the
-  // header (For LINEAR16 audio, we include the WAV header). Note: as
+  // header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
+  // For LINEAR16 audio, we include the WAV header. Note: as
   // with all bytes fields, protobuffers use a pure binary representation,
   // whereas JSON representations use base64.
   bytes audio_content = 1;
 }
-
-// Gender of the voice as described in
-// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
-enum SsmlVoiceGender {
-  // An unspecified gender.
-  // In VoiceSelectionParams, this means that the client doesn't care which
-  // gender the selected voice will have. In the Voice field of
-  // ListVoicesResponse, this may mean that the voice doesn't fit any of the
-  // other categories in this enum, or that the gender of the voice isn't known.
-  SSML_VOICE_GENDER_UNSPECIFIED = 0;
-
-  // A male voice.
-  MALE = 1;
-
-  // A female voice.
-  FEMALE = 2;
-
-  // A gender-neutral voice.
-  NEUTRAL = 3;
-}
-
-// Configuration to set up audio encoder. The encoding determines the output
-// audio format that we'd like.
-enum AudioEncoding {
-  // Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
-  AUDIO_ENCODING_UNSPECIFIED = 0;
-
-  // Uncompressed 16-bit signed little-endian samples (Linear PCM).
-  // Audio content returned as LINEAR16 also contains a WAV header.
-  LINEAR16 = 1;
-
-  // MP3 audio.
-  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
-  // Chrome and Firefox). The quality of the encoding is considerably higher
-  // than MP3 while using approximately the same bitrate.
-  OGG_OPUS = 3;
-}
diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java
index fc977a58d551..4c27a904b5ac 100644
--- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java
+++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java
@@ -132,10 +132,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    *
    * 
-   * Required. The format of the requested audio byte stream.
+   * Required. The format of the audio byte stream.
    * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getAudioEncodingValue() { return audioEncoding_; @@ -144,10 +146,12 @@ public int getAudioEncodingValue() { * * *
-   * Required. The format of the requested audio byte stream.
+   * Required. The format of the audio byte stream.
    * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.AudioEncoding getAudioEncoding() { @SuppressWarnings("deprecation") @@ -164,13 +168,15 @@ public com.google.cloud.texttospeech.v1beta1.AudioEncoding getAudioEncoding() { * * *
-   * Optional 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 fast, and
-   * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-   * other values < 0.25 or > 4.0 will return an error.
+   * 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
+   * fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
+   * speed. Any other values < 0.25 or > 4.0 will return an error.
    * 
* - * double speaking_rate = 2; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public double getSpeakingRate() { return speakingRate_; @@ -182,12 +188,14 @@ public double getSpeakingRate() { * * *
-   * Optional 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.
+   * 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; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public double getPitch() { return pitch_; @@ -199,17 +207,19 @@ public double getPitch() { * * *
-   * Optional volume gain (in dB) of the normal native volume supported by the
-   * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
-   * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
-   * will play at approximately half the amplitude of the normal native signal
-   * amplitude. A value of +6.0 (dB) will play at approximately twice the
-   * amplitude of the normal native signal amplitude. Strongly recommend not to
-   * exceed +10 (dB) as there's usually no effective increase in loudness for
-   * any value greater than that.
+   * 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
+   * set to a value of 0.0 (dB), will play at normal native signal amplitude. A
+   * value of -6.0 (dB) will play at approximately half the amplitude of the
+   * normal native signal amplitude. A value of +6.0 (dB) will play at
+   * approximately twice the amplitude of the normal native signal amplitude.
+   * Strongly recommend not to exceed +10 (dB) as there's usually no effective
+   * increase in loudness for any value greater than that.
    * 
* - * double volume_gain_db = 4; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public double getVolumeGainDb() { return volumeGainDb_; @@ -221,15 +231,16 @@ public double getVolumeGainDb() { * * *
-   * The synthesis sample rate (in hertz) for this audio. Optional.  If this is
-   * different from the voice's natural sample rate, then the synthesizer will
-   * honor this request by converting to the desired sample rate (which might
-   * result in worse audio quality), unless the specified sample rate is not
-   * supported for the encoding chosen, in which case it will fail the request
-   * and return [google.rpc.Code.INVALID_ARGUMENT][].
+   * Optional. The synthesis sample rate (in hertz) for this audio. When this is
+   * specified in SynthesizeSpeechRequest, if this is different from the voice's
+   * natural sample rate, then the synthesizer will honor this request by
+   * converting to the desired sample rate (which might result in worse audio
+   * quality), unless the specified sample rate is not supported for the
+   * encoding chosen, in which case it will fail the request and return
+   * [google.rpc.Code.INVALID_ARGUMENT][].
    * 
* - * int32 sample_rate_hertz = 5; + * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public int getSampleRateHertz() { return sampleRateHertz_; @@ -241,12 +252,17 @@ public int getSampleRateHertz() { * * *
-   * An identifier which selects 'audio effects' profiles that are applied on
-   * (post synthesized) text to speech.
-   * Effects are applied on top of each other in the order they are given.
+   * Optional. Input only. An identifier which selects 'audio effects' profiles
+   * that are applied on (post synthesized) text to speech. Effects are applied
+   * on top of each other in the order they are given. See
+   * [audio
+   * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+   * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { return effectsProfileId_; @@ -255,12 +271,17 @@ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { * * *
-   * An identifier which selects 'audio effects' profiles that are applied on
-   * (post synthesized) text to speech.
-   * Effects are applied on top of each other in the order they are given.
+   * Optional. Input only. An identifier which selects 'audio effects' profiles
+   * that are applied on (post synthesized) text to speech. Effects are applied
+   * on top of each other in the order they are given. See
+   * [audio
+   * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+   * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public int getEffectsProfileIdCount() { return effectsProfileId_.size(); @@ -269,12 +290,17 @@ public int getEffectsProfileIdCount() { * * *
-   * An identifier which selects 'audio effects' profiles that are applied on
-   * (post synthesized) text to speech.
-   * Effects are applied on top of each other in the order they are given.
+   * Optional. Input only. An identifier which selects 'audio effects' profiles
+   * that are applied on (post synthesized) text to speech. Effects are applied
+   * on top of each other in the order they are given. See
+   * [audio
+   * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+   * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public java.lang.String getEffectsProfileId(int index) { return effectsProfileId_.get(index); @@ -283,12 +309,17 @@ public java.lang.String getEffectsProfileId(int index) { * * *
-   * An identifier which selects 'audio effects' profiles that are applied on
-   * (post synthesized) text to speech.
-   * Effects are applied on top of each other in the order they are given.
+   * Optional. Input only. An identifier which selects 'audio effects' profiles
+   * that are applied on (post synthesized) text to speech. Effects are applied
+   * on top of each other in the order they are given. See
+   * [audio
+   * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+   * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { return effectsProfileId_.getByteString(index); @@ -729,10 +760,12 @@ public Builder mergeFrom( * * *
-     * Required. The format of the requested audio byte stream.
+     * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getAudioEncodingValue() { return audioEncoding_; @@ -741,10 +774,12 @@ public int getAudioEncodingValue() { * * *
-     * Required. The format of the requested audio byte stream.
+     * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudioEncodingValue(int value) { audioEncoding_ = value; @@ -755,10 +790,12 @@ public Builder setAudioEncodingValue(int value) { * * *
-     * Required. The format of the requested audio byte stream.
+     * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.AudioEncoding getAudioEncoding() { @SuppressWarnings("deprecation") @@ -772,10 +809,12 @@ public com.google.cloud.texttospeech.v1beta1.AudioEncoding getAudioEncoding() { * * *
-     * Required. The format of the requested audio byte stream.
+     * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudioEncoding(com.google.cloud.texttospeech.v1beta1.AudioEncoding value) { if (value == null) { @@ -790,10 +829,12 @@ public Builder setAudioEncoding(com.google.cloud.texttospeech.v1beta1.AudioEncod * * *
-     * Required. The format of the requested audio byte stream.
+     * Required. The format of the audio byte stream.
      * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudioEncoding() { @@ -807,13 +848,15 @@ public Builder clearAudioEncoding() { * * *
-     * Optional 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 fast, and
-     * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-     * other values < 0.25 or > 4.0 will return an error.
+     * 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
+     * fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
+     * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 2; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public double getSpeakingRate() { return speakingRate_; @@ -822,13 +865,15 @@ public double getSpeakingRate() { * * *
-     * Optional 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 fast, and
-     * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-     * other values < 0.25 or > 4.0 will return an error.
+     * 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
+     * fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
+     * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 2; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSpeakingRate(double value) { @@ -840,13 +885,15 @@ public Builder setSpeakingRate(double value) { * * *
-     * Optional 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 fast, and
-     * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-     * other values < 0.25 or > 4.0 will return an error.
+     * 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
+     * fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
+     * speed. Any other values < 0.25 or > 4.0 will return an error.
      * 
* - * double speaking_rate = 2; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSpeakingRate() { @@ -860,12 +907,14 @@ public Builder clearSpeakingRate() { * * *
-     * Optional 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.
+     * 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; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public double getPitch() { return pitch_; @@ -874,12 +923,14 @@ public double getPitch() { * * *
-     * Optional 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.
+     * 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; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPitch(double value) { @@ -891,12 +942,14 @@ public Builder setPitch(double value) { * * *
-     * Optional 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.
+     * 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; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPitch() { @@ -910,17 +963,19 @@ public Builder clearPitch() { * * *
-     * Optional volume gain (in dB) of the normal native volume supported by the
-     * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
-     * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
-     * will play at approximately half the amplitude of the normal native signal
-     * amplitude. A value of +6.0 (dB) will play at approximately twice the
-     * amplitude of the normal native signal amplitude. Strongly recommend not to
-     * exceed +10 (dB) as there's usually no effective increase in loudness for
-     * any value greater than that.
+     * 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
+     * set to a value of 0.0 (dB), will play at normal native signal amplitude. A
+     * value of -6.0 (dB) will play at approximately half the amplitude of the
+     * normal native signal amplitude. A value of +6.0 (dB) will play at
+     * approximately twice the amplitude of the normal native signal amplitude.
+     * Strongly recommend not to exceed +10 (dB) as there's usually no effective
+     * increase in loudness for any value greater than that.
      * 
* - * double volume_gain_db = 4; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public double getVolumeGainDb() { return volumeGainDb_; @@ -929,17 +984,19 @@ public double getVolumeGainDb() { * * *
-     * Optional volume gain (in dB) of the normal native volume supported by the
-     * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
-     * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
-     * will play at approximately half the amplitude of the normal native signal
-     * amplitude. A value of +6.0 (dB) will play at approximately twice the
-     * amplitude of the normal native signal amplitude. Strongly recommend not to
-     * exceed +10 (dB) as there's usually no effective increase in loudness for
-     * any value greater than that.
+     * 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
+     * set to a value of 0.0 (dB), will play at normal native signal amplitude. A
+     * value of -6.0 (dB) will play at approximately half the amplitude of the
+     * normal native signal amplitude. A value of +6.0 (dB) will play at
+     * approximately twice the amplitude of the normal native signal amplitude.
+     * Strongly recommend not to exceed +10 (dB) as there's usually no effective
+     * increase in loudness for any value greater than that.
      * 
* - * double volume_gain_db = 4; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setVolumeGainDb(double value) { @@ -951,17 +1008,19 @@ public Builder setVolumeGainDb(double value) { * * *
-     * Optional volume gain (in dB) of the normal native volume supported by the
-     * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
-     * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
-     * will play at approximately half the amplitude of the normal native signal
-     * amplitude. A value of +6.0 (dB) will play at approximately twice the
-     * amplitude of the normal native signal amplitude. Strongly recommend not to
-     * exceed +10 (dB) as there's usually no effective increase in loudness for
-     * any value greater than that.
+     * 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
+     * set to a value of 0.0 (dB), will play at normal native signal amplitude. A
+     * value of -6.0 (dB) will play at approximately half the amplitude of the
+     * normal native signal amplitude. A value of +6.0 (dB) will play at
+     * approximately twice the amplitude of the normal native signal amplitude.
+     * Strongly recommend not to exceed +10 (dB) as there's usually no effective
+     * increase in loudness for any value greater than that.
      * 
* - * double volume_gain_db = 4; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearVolumeGainDb() { @@ -975,15 +1034,16 @@ public Builder clearVolumeGainDb() { * * *
-     * The synthesis sample rate (in hertz) for this audio. Optional.  If this is
-     * different from the voice's natural sample rate, then the synthesizer will
-     * honor this request by converting to the desired sample rate (which might
-     * result in worse audio quality), unless the specified sample rate is not
-     * supported for the encoding chosen, in which case it will fail the request
-     * and return [google.rpc.Code.INVALID_ARGUMENT][].
+     * Optional. The synthesis sample rate (in hertz) for this audio. When this is
+     * specified in SynthesizeSpeechRequest, if this is different from the voice's
+     * natural sample rate, then the synthesizer will honor this request by
+     * converting to the desired sample rate (which might result in worse audio
+     * quality), unless the specified sample rate is not supported for the
+     * encoding chosen, in which case it will fail the request and return
+     * [google.rpc.Code.INVALID_ARGUMENT][].
      * 
* - * int32 sample_rate_hertz = 5; + * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public int getSampleRateHertz() { return sampleRateHertz_; @@ -992,15 +1052,16 @@ public int getSampleRateHertz() { * * *
-     * The synthesis sample rate (in hertz) for this audio. Optional.  If this is
-     * different from the voice's natural sample rate, then the synthesizer will
-     * honor this request by converting to the desired sample rate (which might
-     * result in worse audio quality), unless the specified sample rate is not
-     * supported for the encoding chosen, in which case it will fail the request
-     * and return [google.rpc.Code.INVALID_ARGUMENT][].
+     * Optional. The synthesis sample rate (in hertz) for this audio. When this is
+     * specified in SynthesizeSpeechRequest, if this is different from the voice's
+     * natural sample rate, then the synthesizer will honor this request by
+     * converting to the desired sample rate (which might result in worse audio
+     * quality), unless the specified sample rate is not supported for the
+     * encoding chosen, in which case it will fail the request and return
+     * [google.rpc.Code.INVALID_ARGUMENT][].
      * 
* - * int32 sample_rate_hertz = 5; + * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSampleRateHertz(int value) { @@ -1012,15 +1073,16 @@ public Builder setSampleRateHertz(int value) { * * *
-     * The synthesis sample rate (in hertz) for this audio. Optional.  If this is
-     * different from the voice's natural sample rate, then the synthesizer will
-     * honor this request by converting to the desired sample rate (which might
-     * result in worse audio quality), unless the specified sample rate is not
-     * supported for the encoding chosen, in which case it will fail the request
-     * and return [google.rpc.Code.INVALID_ARGUMENT][].
+     * Optional. The synthesis sample rate (in hertz) for this audio. When this is
+     * specified in SynthesizeSpeechRequest, if this is different from the voice's
+     * natural sample rate, then the synthesizer will honor this request by
+     * converting to the desired sample rate (which might result in worse audio
+     * quality), unless the specified sample rate is not supported for the
+     * encoding chosen, in which case it will fail the request and return
+     * [google.rpc.Code.INVALID_ARGUMENT][].
      * 
* - * int32 sample_rate_hertz = 5; + * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSampleRateHertz() { @@ -1042,12 +1104,17 @@ private void ensureEffectsProfileIdIsMutable() { * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { return effectsProfileId_.getUnmodifiableView(); @@ -1056,12 +1123,17 @@ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() { * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public int getEffectsProfileIdCount() { return effectsProfileId_.size(); @@ -1070,12 +1142,17 @@ public int getEffectsProfileIdCount() { * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public java.lang.String getEffectsProfileId(int index) { return effectsProfileId_.get(index); @@ -1084,12 +1161,17 @@ public java.lang.String getEffectsProfileId(int index) { * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { return effectsProfileId_.getByteString(index); @@ -1098,12 +1180,17 @@ public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) { * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEffectsProfileId(int index, java.lang.String value) { if (value == null) { @@ -1118,12 +1205,17 @@ public Builder setEffectsProfileId(int index, java.lang.String value) { * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addEffectsProfileId(java.lang.String value) { if (value == null) { @@ -1138,12 +1230,17 @@ public Builder addEffectsProfileId(java.lang.String value) { * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllEffectsProfileId(java.lang.Iterable values) { ensureEffectsProfileIdIsMutable(); @@ -1155,12 +1252,17 @@ public Builder addAllEffectsProfileId(java.lang.Iterable value * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEffectsProfileId() { effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1172,12 +1274,17 @@ public Builder clearEffectsProfileId() { * * *
-     * An identifier which selects 'audio effects' profiles that are applied on
-     * (post synthesized) text to speech.
-     * Effects are applied on top of each other in the order they are given.
+     * Optional. Input only. An identifier which selects 'audio effects' profiles
+     * that are applied on (post synthesized) text to speech. Effects are applied
+     * on top of each other in the order they are given. See
+     * [audio
+     * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+     * current supported profile ids.
      * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addEffectsProfileIdBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java index 9960b17ce95c..672f9c20e91d 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java @@ -12,20 +12,24 @@ public interface AudioConfigOrBuilder * * *
-   * Required. The format of the requested audio byte stream.
+   * Required. The format of the audio byte stream.
    * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getAudioEncodingValue(); /** * * *
-   * Required. The format of the requested audio byte stream.
+   * Required. The format of the audio byte stream.
    * 
* - * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1; + * + * .google.cloud.texttospeech.v1beta1.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1beta1.AudioEncoding getAudioEncoding(); @@ -33,13 +37,15 @@ public interface AudioConfigOrBuilder * * *
-   * Optional 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 fast, and
-   * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-   * other values < 0.25 or > 4.0 will return an error.
+   * 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
+   * fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
+   * speed. Any other values < 0.25 or > 4.0 will return an error.
    * 
* - * double speaking_rate = 2; + * + * double speaking_rate = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ double getSpeakingRate(); @@ -47,12 +53,14 @@ public interface AudioConfigOrBuilder * * *
-   * Optional 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.
+   * 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; + * + * double pitch = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ double getPitch(); @@ -60,17 +68,19 @@ public interface AudioConfigOrBuilder * * *
-   * Optional volume gain (in dB) of the normal native volume supported by the
-   * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
-   * 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
-   * will play at approximately half the amplitude of the normal native signal
-   * amplitude. A value of +6.0 (dB) will play at approximately twice the
-   * amplitude of the normal native signal amplitude. Strongly recommend not to
-   * exceed +10 (dB) as there's usually no effective increase in loudness for
-   * any value greater than that.
+   * 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
+   * set to a value of 0.0 (dB), will play at normal native signal amplitude. A
+   * value of -6.0 (dB) will play at approximately half the amplitude of the
+   * normal native signal amplitude. A value of +6.0 (dB) will play at
+   * approximately twice the amplitude of the normal native signal amplitude.
+   * Strongly recommend not to exceed +10 (dB) as there's usually no effective
+   * increase in loudness for any value greater than that.
    * 
* - * double volume_gain_db = 4; + * + * double volume_gain_db = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ double getVolumeGainDb(); @@ -78,15 +88,16 @@ public interface AudioConfigOrBuilder * * *
-   * The synthesis sample rate (in hertz) for this audio. Optional.  If this is
-   * different from the voice's natural sample rate, then the synthesizer will
-   * honor this request by converting to the desired sample rate (which might
-   * result in worse audio quality), unless the specified sample rate is not
-   * supported for the encoding chosen, in which case it will fail the request
-   * and return [google.rpc.Code.INVALID_ARGUMENT][].
+   * Optional. The synthesis sample rate (in hertz) for this audio. When this is
+   * specified in SynthesizeSpeechRequest, if this is different from the voice's
+   * natural sample rate, then the synthesizer will honor this request by
+   * converting to the desired sample rate (which might result in worse audio
+   * quality), unless the specified sample rate is not supported for the
+   * encoding chosen, in which case it will fail the request and return
+   * [google.rpc.Code.INVALID_ARGUMENT][].
    * 
* - * int32 sample_rate_hertz = 5; + * int32 sample_rate_hertz = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getSampleRateHertz(); @@ -94,48 +105,68 @@ public interface AudioConfigOrBuilder * * *
-   * An identifier which selects 'audio effects' profiles that are applied on
-   * (post synthesized) text to speech.
-   * Effects are applied on top of each other in the order they are given.
+   * Optional. Input only. An identifier which selects 'audio effects' profiles
+   * that are applied on (post synthesized) text to speech. Effects are applied
+   * on top of each other in the order they are given. See
+   * [audio
+   * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+   * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getEffectsProfileIdList(); /** * * *
-   * An identifier which selects 'audio effects' profiles that are applied on
-   * (post synthesized) text to speech.
-   * Effects are applied on top of each other in the order they are given.
+   * Optional. Input only. An identifier which selects 'audio effects' profiles
+   * that are applied on (post synthesized) text to speech. Effects are applied
+   * on top of each other in the order they are given. See
+   * [audio
+   * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+   * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ int getEffectsProfileIdCount(); /** * * *
-   * An identifier which selects 'audio effects' profiles that are applied on
-   * (post synthesized) text to speech.
-   * Effects are applied on top of each other in the order they are given.
+   * Optional. Input only. An identifier which selects 'audio effects' profiles
+   * that are applied on (post synthesized) text to speech. Effects are applied
+   * on top of each other in the order they are given. See
+   * [audio
+   * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+   * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ java.lang.String getEffectsProfileId(int index); /** * * *
-   * An identifier which selects 'audio effects' profiles that are applied on
-   * (post synthesized) text to speech.
-   * Effects are applied on top of each other in the order they are given.
+   * Optional. Input only. An identifier which selects 'audio effects' profiles
+   * that are applied on (post synthesized) text to speech. Effects are applied
+   * on top of each other in the order they are given. See
+   * [audio
+   * profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+   * current supported profile ids.
    * 
* - * repeated string effects_profile_id = 6; + * + * repeated string effects_profile_id = 6 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.ByteString getEffectsProfileIdBytes(int index); } diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java index d588ca4c4b3c..00ed8f12ad90 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java @@ -39,7 +39,7 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * MP3 audio.
+   * MP3 audio at 32kbps.
    * 
* * MP3 = 2; @@ -86,7 +86,7 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * MP3 audio.
+   * MP3 audio at 32kbps.
    * 
* * MP3 = 2; diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java index f9b0a145d6e3..246aee33c3da 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java @@ -97,7 +97,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Optional (but recommended)
+   * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -107,7 +107,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * supported "yue-*" voices.
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -124,7 +124,7 @@ public java.lang.String getLanguageCode() { * * *
-   * Optional (but recommended)
+   * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -134,7 +134,7 @@ public java.lang.String getLanguageCode() {
    * supported "yue-*" voices.
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -472,7 +472,7 @@ public Builder mergeFrom( * * *
-     * Optional (but recommended)
+     * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -482,7 +482,7 @@ public Builder mergeFrom(
      * supported "yue-*" voices.
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -499,7 +499,7 @@ public java.lang.String getLanguageCode() { * * *
-     * Optional (but recommended)
+     * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -509,7 +509,7 @@ public java.lang.String getLanguageCode() {
      * supported "yue-*" voices.
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -526,7 +526,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * *
-     * Optional (but recommended)
+     * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -536,7 +536,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * supported "yue-*" voices.
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { @@ -551,7 +551,7 @@ public Builder setLanguageCode(java.lang.String value) { * * *
-     * Optional (but recommended)
+     * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -561,7 +561,7 @@ public Builder setLanguageCode(java.lang.String value) {
      * supported "yue-*" voices.
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearLanguageCode() { @@ -573,7 +573,7 @@ public Builder clearLanguageCode() { * * *
-     * Optional (but recommended)
+     * Optional. Recommended.
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -583,7 +583,7 @@ public Builder clearLanguageCode() {
      * supported "yue-*" voices.
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java index afb7d5545832..6fb6b95d7a00 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java @@ -12,7 +12,7 @@ public interface ListVoicesRequestOrBuilder * * *
-   * Optional (but recommended)
+   * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -22,14 +22,14 @@ public interface ListVoicesRequestOrBuilder
    * supported "yue-*" voices.
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLanguageCode(); /** * * *
-   * Optional (but recommended)
+   * Optional. Recommended.
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -39,7 +39,7 @@ public interface ListVoicesRequestOrBuilder
    * supported "yue-*" voices.
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java index c75394d3dfa5..2dffbd6a3586 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java @@ -142,7 +142,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. The Synthesizer requires either plain text or SSML as input. *
* - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasInput() { return input_ != null; @@ -154,7 +156,9 @@ public boolean hasInput() { * Required. The Synthesizer requires either plain text or SSML as input. *
* - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.SynthesisInput getInput() { return input_ == null @@ -168,7 +172,9 @@ public 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.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder getInputOrBuilder() { return getInput(); @@ -183,7 +189,9 @@ public com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder getInputOrB * Required. The desired voice of the synthesized audio. *
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasVoice() { return voice_ != null; @@ -195,7 +203,9 @@ public boolean hasVoice() { * Required. The desired voice of the synthesized audio. *
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams getVoice() { return voice_ == null @@ -209,7 +219,9 @@ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams getVoice() { * Required. The desired voice of the synthesized audio. *
* - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { return getVoice(); @@ -224,7 +236,9 @@ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder getVo * Required. The configuration of the synthesized audio. *
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasAudioConfig() { return audioConfig_ != null; @@ -236,7 +250,9 @@ public boolean hasAudioConfig() { * Required. The configuration of the synthesized audio. *
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.AudioConfig getAudioConfig() { return audioConfig_ == null @@ -250,7 +266,9 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfig getAudioConfig() { * Required. The configuration of the synthesized audio. *
* - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfigOrBuilder() { return getAudioConfig(); @@ -659,7 +677,9 @@ public Builder mergeFrom( * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasInput() { return inputBuilder_ != null || input_ != null; @@ -671,7 +691,9 @@ public boolean hasInput() { * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.SynthesisInput getInput() { if (inputBuilder_ == null) { @@ -689,7 +711,9 @@ public 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.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInput(com.google.cloud.texttospeech.v1beta1.SynthesisInput value) { if (inputBuilder_ == null) { @@ -711,7 +735,9 @@ public Builder setInput(com.google.cloud.texttospeech.v1beta1.SynthesisInput val * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInput( com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder builderForValue) { @@ -731,7 +757,9 @@ public Builder setInput( * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1; + * + * .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) { @@ -757,7 +785,9 @@ public Builder mergeInput(com.google.cloud.texttospeech.v1beta1.SynthesisInput v * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInput() { if (inputBuilder_ == null) { @@ -777,7 +807,9 @@ public Builder clearInput() { * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder getInputBuilder() { @@ -791,7 +823,9 @@ public com.google.cloud.texttospeech.v1beta1.SynthesisInput.Builder getInputBuil * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { @@ -809,7 +843,9 @@ public com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder getInputOrB * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.texttospeech.v1beta1.SynthesisInput, @@ -841,7 +877,9 @@ public com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder getInputOrB * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasVoice() { return voiceBuilder_ != null || voice_ != null; @@ -853,7 +891,9 @@ public boolean hasVoice() { * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams getVoice() { if (voiceBuilder_ == null) { @@ -871,7 +911,9 @@ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams getVoice() { * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2; + * + * .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) { @@ -893,7 +935,9 @@ public Builder setVoice(com.google.cloud.texttospeech.v1beta1.VoiceSelectionPara * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setVoice( com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder builderForValue) { @@ -913,7 +957,9 @@ public Builder setVoice( * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2; + * + * .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) { @@ -939,7 +985,9 @@ public Builder mergeVoice(com.google.cloud.texttospeech.v1beta1.VoiceSelectionPa * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearVoice() { if (voiceBuilder_ == null) { @@ -959,7 +1007,9 @@ public Builder clearVoice() { * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder getVoiceBuilder() { @@ -973,7 +1023,9 @@ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams.Builder getVoi * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { if (voiceBuilder_ != null) { @@ -991,7 +1043,9 @@ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder getVo * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams, @@ -1023,7 +1077,9 @@ public com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder getVo * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasAudioConfig() { return audioConfigBuilder_ != null || audioConfig_ != null; @@ -1035,7 +1091,9 @@ public boolean hasAudioConfig() { * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.AudioConfig getAudioConfig() { if (audioConfigBuilder_ == null) { @@ -1053,7 +1111,9 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfig getAudioConfig() { * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3; + * + * .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) { @@ -1075,7 +1135,9 @@ public Builder setAudioConfig(com.google.cloud.texttospeech.v1beta1.AudioConfig * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudioConfig( com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder builderForValue) { @@ -1095,7 +1157,9 @@ public Builder setAudioConfig( * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3; + * + * .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) { @@ -1121,7 +1185,9 @@ public Builder mergeAudioConfig(com.google.cloud.texttospeech.v1beta1.AudioConfi * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudioConfig() { if (audioConfigBuilder_ == null) { @@ -1141,7 +1207,9 @@ public Builder clearAudioConfig() { * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder getAudioConfigBuilder() { @@ -1155,7 +1223,9 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfig.Builder getAudioConfigB * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfigOrBuilder() { if (audioConfigBuilder_ != null) { @@ -1173,7 +1243,9 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfig * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.texttospeech.v1beta1.AudioConfig, diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java index 054bb3c6ea05..cbf98ad82821 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequestOrBuilder.java @@ -15,7 +15,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasInput(); /** @@ -25,7 +27,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1beta1.SynthesisInput getInput(); /** @@ -35,7 +39,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The Synthesizer requires either plain text or SSML as input. * * - * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1; + * + * .google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1beta1.SynthesisInputOrBuilder getInputOrBuilder(); @@ -46,7 +52,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasVoice(); /** @@ -56,7 +64,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1beta1.VoiceSelectionParams getVoice(); /** @@ -66,7 +76,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The desired voice of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2; + * + * .google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder(); @@ -77,7 +89,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasAudioConfig(); /** @@ -87,7 +101,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1beta1.AudioConfig getAudioConfig(); /** @@ -97,7 +113,9 @@ public interface SynthesizeSpeechRequestOrBuilder * Required. The configuration of the synthesized audio. * * - * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3; + * + * .google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfigOrBuilder(); } diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java index c88fdcb5faa3..c70ae3d1e047 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponse.java @@ -96,7 +96,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * The audio data bytes encoded as specified in the request, including the
-   * header (For LINEAR16 audio, we include the WAV header). Note: as
+   * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
+   * For LINEAR16 audio, we include the WAV header. Note: as
    * with all bytes fields, protobuffers use a pure binary representation,
    * whereas JSON representations use base64.
    * 
@@ -434,7 +435,8 @@ public Builder mergeFrom( * *
      * The audio data bytes encoded as specified in the request, including the
-     * header (For LINEAR16 audio, we include the WAV header). Note: as
+     * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
+     * For LINEAR16 audio, we include the WAV header. Note: as
      * with all bytes fields, protobuffers use a pure binary representation,
      * whereas JSON representations use base64.
      * 
@@ -449,7 +451,8 @@ public com.google.protobuf.ByteString getAudioContent() { * *
      * The audio data bytes encoded as specified in the request, including the
-     * header (For LINEAR16 audio, we include the WAV header). Note: as
+     * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
+     * For LINEAR16 audio, we include the WAV header. Note: as
      * with all bytes fields, protobuffers use a pure binary representation,
      * whereas JSON representations use base64.
      * 
@@ -470,7 +473,8 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) { * *
      * The audio data bytes encoded as specified in the request, including the
-     * header (For LINEAR16 audio, we include the WAV header). Note: as
+     * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
+     * For LINEAR16 audio, we include the WAV header. Note: as
      * with all bytes fields, protobuffers use a pure binary representation,
      * whereas JSON representations use base64.
      * 
diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java index 35ebcb785937..e76373cfa4c6 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechResponseOrBuilder.java @@ -13,7 +13,8 @@ public interface SynthesizeSpeechResponseOrBuilder * *
    * The audio data bytes encoded as specified in the request, including the
-   * header (For LINEAR16 audio, we include the WAV header). Note: as
+   * header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
+   * For LINEAR16 audio, we include the WAV header. Note: as
    * with all bytes fields, protobuffers use a pure binary representation,
    * whereas JSON representations use base64.
    * 
diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java index c80ae37ba318..e287482aeece 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechProto.java @@ -55,49 +55,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/texttospeech/v1beta1/clou" + "d_tts.proto\022!google.cloud.texttospeech.v" - + "1beta1\032\034google/api/annotations.proto\"*\n\021" - + "ListVoicesRequest\022\025\n\rlanguage_code\030\001 \001(\t" - + "\"N\n\022ListVoicesResponse\0228\n\006voices\030\001 \003(\0132(" - + ".google.cloud.texttospeech.v1beta1.Voice" - + "\"\231\001\n\005Voice\022\026\n\016language_codes\030\001 \003(\t\022\014\n\004na" - + "me\030\002 \001(\t\022G\n\013ssml_gender\030\003 \001(\01622.google.c" - + "loud.texttospeech.v1beta1.SsmlVoiceGende" - + "r\022!\n\031natural_sample_rate_hertz\030\004 \001(\005\"\351\001\n" - + "\027SynthesizeSpeechRequest\022@\n\005input\030\001 \001(\0132" - + "1.google.cloud.texttospeech.v1beta1.Synt" - + "hesisInput\022F\n\005voice\030\002 \001(\01327.google.cloud" - + ".texttospeech.v1beta1.VoiceSelectionPara" - + "ms\022D\n\014audio_config\030\003 \001(\0132..google.cloud." - + "texttospeech.v1beta1.AudioConfig\"@\n\016Synt" - + "hesisInput\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\t" - + "H\000B\016\n\014input_source\"\204\001\n\024VoiceSelectionPar" - + "ams\022\025\n\rlanguage_code\030\001 \001(\t\022\014\n\004name\030\002 \001(\t" - + "\022G\n\013ssml_gender\030\003 \001(\01622.google.cloud.tex" - + "ttospeech.v1beta1.SsmlVoiceGender\"\314\001\n\013Au" - + "dioConfig\022H\n\016audio_encoding\030\001 \001(\01620.goog" - + "le.cloud.texttospeech.v1beta1.AudioEncod" - + "ing\022\025\n\rspeaking_rate\030\002 \001(\001\022\r\n\005pitch\030\003 \001(" - + "\001\022\026\n\016volume_gain_db\030\004 \001(\001\022\031\n\021sample_rate" - + "_hertz\030\005 \001(\005\022\032\n\022effects_profile_id\030\006 \003(\t" - + "\"1\n\030SynthesizeSpeechResponse\022\025\n\raudio_co" - + "ntent\030\001 \001(\014*W\n\017SsmlVoiceGender\022!\n\035SSML_V" - + "OICE_GENDER_UNSPECIFIED\020\000\022\010\n\004MALE\020\001\022\n\n\006F" - + "EMALE\020\002\022\013\n\007NEUTRAL\020\003*T\n\rAudioEncoding\022\036\n" - + "\032AUDIO_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR1" - + "6\020\001\022\007\n\003MP3\020\002\022\014\n\010OGG_OPUS\020\0032\326\002\n\014TextToSpe" - + "ech\022\222\001\n\nListVoices\0224.google.cloud.textto" - + "speech.v1beta1.ListVoicesRequest\0325.googl" - + "e.cloud.texttospeech.v1beta1.ListVoicesR" - + "esponse\"\027\202\323\344\223\002\021\022\017/v1beta1/voices\022\260\001\n\020Syn" - + "thesizeSpeech\022:.google.cloud.texttospeec" - + "h.v1beta1.SynthesizeSpeechRequest\032;.goog" - + "le.cloud.texttospeech.v1beta1.Synthesize" - + "SpeechResponse\"#\202\323\344\223\002\035\"\030/v1beta1/text:sy" - + "nthesize:\001*B\216\001\n%com.google.cloud.texttos" - + "peech.v1beta1B\021TextToSpeechProtoP\001ZMgoog" - + "le.golang.org/genproto/googleapis/cloud/" - + "texttospeech/v1beta1;texttospeech\370\001\001b\006pr" - + "oto3" + + "1beta1\032\034google/api/annotations.proto\032\027go" + + "ogle/api/client.proto\032\037google/api/field_" + + "behavior.proto\"/\n\021ListVoicesRequest\022\032\n\rl" + + "anguage_code\030\001 \001(\tB\003\340A\001\"N\n\022ListVoicesRes" + + "ponse\0228\n\006voices\030\001 \003(\0132(.google.cloud.tex" + + "ttospeech.v1beta1.Voice\"\231\001\n\005Voice\022\026\n\016lan" + + "guage_codes\030\001 \003(\t\022\014\n\004name\030\002 \001(\t\022G\n\013ssml_" + + "gender\030\003 \001(\01622.google.cloud.texttospeech" + + ".v1beta1.SsmlVoiceGender\022!\n\031natural_samp" + + "le_rate_hertz\030\004 \001(\005\"\370\001\n\027SynthesizeSpeech" + + "Request\022E\n\005input\030\001 \001(\01321.google.cloud.te" + + "xttospeech.v1beta1.SynthesisInputB\003\340A\002\022K" + + "\n\005voice\030\002 \001(\01327.google.cloud.texttospeec" + + "h.v1beta1.VoiceSelectionParamsB\003\340A\002\022I\n\014a" + + "udio_config\030\003 \001(\0132..google.cloud.texttos" + + "peech.v1beta1.AudioConfigB\003\340A\002\"@\n\016Synthe" + + "sisInput\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000" + + "B\016\n\014input_source\"\211\001\n\024VoiceSelectionParam" + + "s\022\032\n\rlanguage_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." + + "texttospeech.v1beta1.SsmlVoiceGender\"\366\001\n" + + "\013AudioConfig\022M\n\016audio_encoding\030\001 \001(\01620.g" + + "oogle.cloud.texttospeech.v1beta1.AudioEn" + + "codingB\003\340A\002\022\035\n\rspeaking_rate\030\002 \001(\001B\006\340A\004\340" + + "A\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\022effects_profile_id\030\006 \003(\tB\006\340" + + "A\004\340A\001\"1\n\030SynthesizeSpeechResponse\022\025\n\raud" + + "io_content\030\001 \001(\014*W\n\017SsmlVoiceGender\022!\n\035S" + + "SML_VOICE_GENDER_UNSPECIFIED\020\000\022\010\n\004MALE\020\001" + + "\022\n\n\006FEMALE\020\002\022\013\n\007NEUTRAL\020\003*T\n\rAudioEncodi" + + "ng\022\036\n\032AUDIO_ENCODING_UNSPECIFIED\020\000\022\014\n\010LI" + + "NEAR16\020\001\022\007\n\003MP3\020\002\022\014\n\010OGG_OPUS\020\0032\322\003\n\014Text" + + "ToSpeech\022\242\001\n\nListVoices\0224.google.cloud.t" + + "exttospeech.v1beta1.ListVoicesRequest\0325." + + "google.cloud.texttospeech.v1beta1.ListVo" + + "icesResponse\"\'\202\323\344\223\002\021\022\017/v1beta1/voices\332A\r" + + "language_code\022\313\001\n\020SynthesizeSpeech\022:.goo" + + "gle.cloud.texttospeech.v1beta1.Synthesiz" + + "eSpeechRequest\032;.google.cloud.texttospee" + + "ch.v1beta1.SynthesizeSpeechResponse\">\202\323\344" + + "\223\002\035\"\030/v1beta1/text:synthesize:\001*\332A\030input" + + ",voice,audio_config\032O\312A\033texttospeech.goo" + + "gleapis.com\322A.https://www.googleapis.com" + + "/auth/cloud-platformB\326\001\n%com.google.clou" + + "d.texttospeech.v1beta1B\021TextToSpeechProt" + + "oP\001ZMgoogle.golang.org/genproto/googleap" + + "is/cloud/texttospeech/v1beta1;texttospee" + + "ch\370\001\001\252\002!Google.Cloud.TextToSpeech.V1beta" + + "1\312\002!Google\\Cloud\\TextToSpeech\\V1beta1b\006p" + + "roto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -111,6 +119,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), }, assigner); internal_static_google_cloud_texttospeech_v1beta1_ListVoicesRequest_descriptor = @@ -184,10 +194,16 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( }); 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); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java index 971c83298e5d..402947be1c22 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java @@ -113,9 +113,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The language (and optionally also the region) of the voice expressed as a
+   * 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.
-   * "en-US". Required. This should not include a script tag (e.g. use
+   * "en-US". This should not include a script tag (e.g. use
    * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
    * from the input provided in the SynthesisInput.  The TTS service
    * will use this parameter to help choose an appropriate voice.  Note that
@@ -126,7 +126,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * Bokmal) instead of "no" (Norwegian)".
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -143,9 +143,9 @@ public java.lang.String getLanguageCode() { * * *
-   * The language (and optionally also the region) of the voice expressed as a
+   * 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.
-   * "en-US". Required. This should not include a script tag (e.g. use
+   * "en-US". This should not include a script tag (e.g. use
    * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
    * from the input provided in the SynthesisInput.  The TTS service
    * will use this parameter to help choose an appropriate voice.  Note that
@@ -156,7 +156,7 @@ public java.lang.String getLanguageCode() {
    * Bokmal) instead of "no" (Norwegian)".
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -176,7 +176,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * *
-   * The name of the voice. Optional; if not set, the service will choose a
+   * 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.
    * 
* @@ -197,7 +197,7 @@ public java.lang.String getName() { * * *
-   * The name of the voice. Optional; if not set, the service will choose a
+   * 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.
    * 
* @@ -221,7 +221,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * The preferred gender of the voice. Optional; if not set, the service will
+   * 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
    * name. Note that this is only a preference, not requirement; if a
    * voice of the appropriate gender is not available, the synthesizer should
@@ -237,7 +237,7 @@ public int getSsmlGenderValue() {
    *
    *
    * 
-   * The preferred gender of the voice. Optional; if not set, the service will
+   * 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
    * name. Note that this is only a preference, not requirement; if a
    * voice of the appropriate gender is not available, the synthesizer should
@@ -614,9 +614,9 @@ public Builder mergeFrom(
      *
      *
      * 
-     * The language (and optionally also the region) of the voice expressed as a
+     * 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.
-     * "en-US". Required. This should not include a script tag (e.g. use
+     * "en-US". This should not include a script tag (e.g. use
      * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
      * from the input provided in the SynthesisInput.  The TTS service
      * will use this parameter to help choose an appropriate voice.  Note that
@@ -627,7 +627,7 @@ public Builder mergeFrom(
      * Bokmal) instead of "no" (Norwegian)".
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; @@ -644,9 +644,9 @@ public java.lang.String getLanguageCode() { * * *
-     * The language (and optionally also the region) of the voice expressed as a
+     * 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.
-     * "en-US". Required. This should not include a script tag (e.g. use
+     * "en-US". This should not include a script tag (e.g. use
      * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
      * from the input provided in the SynthesisInput.  The TTS service
      * will use this parameter to help choose an appropriate voice.  Note that
@@ -657,7 +657,7 @@ public java.lang.String getLanguageCode() {
      * Bokmal) instead of "no" (Norwegian)".
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; @@ -674,9 +674,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * *
-     * The language (and optionally also the region) of the voice expressed as a
+     * 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.
-     * "en-US". Required. This should not include a script tag (e.g. use
+     * "en-US". This should not include a script tag (e.g. use
      * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
      * from the input provided in the SynthesisInput.  The TTS service
      * will use this parameter to help choose an appropriate voice.  Note that
@@ -687,7 +687,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * Bokmal) instead of "no" (Norwegian)".
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { @@ -702,9 +702,9 @@ public Builder setLanguageCode(java.lang.String value) { * * *
-     * The language (and optionally also the region) of the voice expressed as a
+     * 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.
-     * "en-US". Required. This should not include a script tag (e.g. use
+     * "en-US". This should not include a script tag (e.g. use
      * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
      * from the input provided in the SynthesisInput.  The TTS service
      * will use this parameter to help choose an appropriate voice.  Note that
@@ -715,7 +715,7 @@ public Builder setLanguageCode(java.lang.String value) {
      * Bokmal) instead of "no" (Norwegian)".
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearLanguageCode() { @@ -727,9 +727,9 @@ public Builder clearLanguageCode() { * * *
-     * The language (and optionally also the region) of the voice expressed as a
+     * 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.
-     * "en-US". Required. This should not include a script tag (e.g. use
+     * "en-US". This should not include a script tag (e.g. use
      * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
      * from the input provided in the SynthesisInput.  The TTS service
      * will use this parameter to help choose an appropriate voice.  Note that
@@ -740,7 +740,7 @@ public Builder clearLanguageCode() {
      * Bokmal) instead of "no" (Norwegian)".
      * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -758,7 +758,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * * *
-     * The name of the voice. Optional; if not set, the service will choose a
+     * 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.
      * 
* @@ -779,7 +779,7 @@ public java.lang.String getName() { * * *
-     * The name of the voice. Optional; if not set, the service will choose a
+     * 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.
      * 
* @@ -800,7 +800,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The name of the voice. Optional; if not set, the service will choose a
+     * 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.
      * 
* @@ -819,7 +819,7 @@ public Builder setName(java.lang.String value) { * * *
-     * The name of the voice. Optional; if not set, the service will choose a
+     * 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.
      * 
* @@ -835,7 +835,7 @@ public Builder clearName() { * * *
-     * The name of the voice. Optional; if not set, the service will choose a
+     * 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.
      * 
* @@ -857,7 +857,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The preferred gender of the voice. Optional; if not set, the service will
+     * 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
      * name. Note that this is only a preference, not requirement; if a
      * voice of the appropriate gender is not available, the synthesizer should
@@ -873,7 +873,7 @@ public int getSsmlGenderValue() {
      *
      *
      * 
-     * The preferred gender of the voice. Optional; if not set, the service will
+     * 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
      * name. Note that this is only a preference, not requirement; if a
      * voice of the appropriate gender is not available, the synthesizer should
@@ -891,7 +891,7 @@ public Builder setSsmlGenderValue(int value) {
      *
      *
      * 
-     * The preferred gender of the voice. Optional; if not set, the service will
+     * 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
      * name. Note that this is only a preference, not requirement; if a
      * voice of the appropriate gender is not available, the synthesizer should
@@ -912,7 +912,7 @@ public com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender getSsmlGender() {
      *
      *
      * 
-     * The preferred gender of the voice. Optional; if not set, the service will
+     * 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
      * name. Note that this is only a preference, not requirement; if a
      * voice of the appropriate gender is not available, the synthesizer should
@@ -934,7 +934,7 @@ public Builder setSsmlGender(com.google.cloud.texttospeech.v1beta1.SsmlVoiceGend
      *
      *
      * 
-     * The preferred gender of the voice. Optional; if not set, the service will
+     * 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
      * name. Note that this is only a preference, not requirement; if a
      * voice of the appropriate gender is not available, the synthesizer should
diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java
index 3366ea18ea2d..b37aa99d4892 100644
--- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java
@@ -12,9 +12,9 @@ public interface VoiceSelectionParamsOrBuilder
    *
    *
    * 
-   * The language (and optionally also the region) of the voice expressed as a
+   * 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.
-   * "en-US". Required. This should not include a script tag (e.g. use
+   * "en-US". This should not include a script tag (e.g. use
    * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
    * from the input provided in the SynthesisInput.  The TTS service
    * will use this parameter to help choose an appropriate voice.  Note that
@@ -25,16 +25,16 @@ public interface VoiceSelectionParamsOrBuilder
    * Bokmal) instead of "no" (Norwegian)".
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ java.lang.String getLanguageCode(); /** * * *
-   * The language (and optionally also the region) of the voice expressed as a
+   * 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.
-   * "en-US". Required. This should not include a script tag (e.g. use
+   * "en-US". This should not include a script tag (e.g. use
    * "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
    * from the input provided in the SynthesisInput.  The TTS service
    * will use this parameter to help choose an appropriate voice.  Note that
@@ -45,7 +45,7 @@ public interface VoiceSelectionParamsOrBuilder
    * Bokmal) instead of "no" (Norwegian)".
    * 
* - * string language_code = 1; + * string language_code = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.ByteString getLanguageCodeBytes(); @@ -53,7 +53,7 @@ public interface VoiceSelectionParamsOrBuilder * * *
-   * The name of the voice. Optional; if not set, the service will choose a
+   * 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.
    * 
* @@ -64,7 +64,7 @@ public interface VoiceSelectionParamsOrBuilder * * *
-   * The name of the voice. Optional; if not set, the service will choose a
+   * 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.
    * 
* @@ -76,7 +76,7 @@ public interface VoiceSelectionParamsOrBuilder * * *
-   * The preferred gender of the voice. Optional; if not set, the service will
+   * 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
    * name. Note that this is only a preference, not requirement; if a
    * voice of the appropriate gender is not available, the synthesizer should
@@ -90,7 +90,7 @@ public interface VoiceSelectionParamsOrBuilder
    *
    *
    * 
-   * The preferred gender of the voice. Optional; if not set, the service will
+   * 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
    * name. Note that this is only a preference, not requirement; if a
    * voice of the appropriate gender is not available, the synthesizer should
diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto
index 791499c4dda0..443ff6d56f61 100644
--- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto
+++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google Inc.
+// Copyright 2019 Google LLC.
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -11,43 +11,51 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
+//
 
 syntax = "proto3";
 
 package google.cloud.texttospeech.v1beta1;
 
 import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
 
 option cc_enable_arenas = true;
+option csharp_namespace = "Google.Cloud.TextToSpeech.V1beta1";
 option go_package = "google.golang.org/genproto/googleapis/cloud/texttospeech/v1beta1;texttospeech";
 option java_multiple_files = true;
 option java_outer_classname = "TextToSpeechProto";
 option java_package = "com.google.cloud.texttospeech.v1beta1";
+option php_namespace = "Google\\Cloud\\TextToSpeech\\V1beta1";
 
 // Service that implements Google Cloud Text-to-Speech API.
 service TextToSpeech {
-  // Returns a list of [Voice][google.cloud.texttospeech.v1beta1.Voice]
-  // supported for synthesis.
+  option (google.api.default_host) = "texttospeech.googleapis.com";
+  option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+
+  // Returns a list of Voice supported for synthesis.
   rpc ListVoices(ListVoicesRequest) returns (ListVoicesResponse) {
     option (google.api.http) = {
       get: "/v1beta1/voices"
     };
+    option (google.api.method_signature) = "language_code";
   }
 
   // Synthesizes speech synchronously: receive results after all text input
   // has been processed.
-  rpc SynthesizeSpeech(SynthesizeSpeechRequest)
-      returns (SynthesizeSpeechResponse) {
+  rpc SynthesizeSpeech(SynthesizeSpeechRequest) returns (SynthesizeSpeechResponse) {
     option (google.api.http) = {
       post: "/v1beta1/text:synthesize"
       body: "*"
     };
+    option (google.api.method_signature) = "input,voice,audio_config";
   }
 }
 
 // The top-level message sent by the client for the `ListVoices` method.
 message ListVoicesRequest {
-  // Optional (but recommended)
+  // Optional. Recommended.
   // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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
@@ -55,7 +63,47 @@ message ListVoicesRequest {
   // "no-*" (Norwegian) and "nb-*" (Norwegian Bokmal) voices; specifying "zh"
   // will also get supported "cmn-*" voices; specifying "zh-hk" will also get
   // supported "yue-*" voices.
-  string language_code = 1;
+  string language_code = 1 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Gender of the voice as described in
+// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
+enum SsmlVoiceGender {
+  // An unspecified gender.
+  // In VoiceSelectionParams, this means that the client doesn't care which
+  // gender the selected voice will have. In the Voice field of
+  // ListVoicesResponse, this may mean that the voice doesn't fit any of the
+  // other categories in this enum, or that the gender of the voice isn't known.
+  SSML_VOICE_GENDER_UNSPECIFIED = 0;
+
+  // A male voice.
+  MALE = 1;
+
+  // A female voice.
+  FEMALE = 2;
+
+  // A gender-neutral voice.
+  NEUTRAL = 3;
+}
+
+// Configuration to set up audio encoder. The encoding determines the output
+// audio format that we'd like.
+enum AudioEncoding {
+  // Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
+  AUDIO_ENCODING_UNSPECIFIED = 0;
+
+  // Uncompressed 16-bit signed little-endian samples (Linear PCM).
+  // Audio content returned as LINEAR16 also contains a WAV header.
+  LINEAR16 = 1;
+
+  // MP3 audio at 32kbps.
+  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
+  // Chrome and Firefox). The quality of the encoding is considerably higher
+  // than MP3 while using approximately the same bitrate.
+  OGG_OPUS = 3;
 }
 
 // The message returned to the client by the `ListVoices` method.
@@ -84,13 +132,13 @@ message Voice {
 // The top-level message sent by the client for the `SynthesizeSpeech` method.
 message SynthesizeSpeechRequest {
   // Required. The Synthesizer requires either plain text or SSML as input.
-  SynthesisInput input = 1;
+  SynthesisInput input = 1 [(google.api.field_behavior) = REQUIRED];
 
   // Required. The desired voice of the synthesized audio.
-  VoiceSelectionParams voice = 2;
+  VoiceSelectionParams voice = 2 [(google.api.field_behavior) = REQUIRED];
 
   // Required. The configuration of the synthesized audio.
-  AudioConfig audio_config = 3;
+  AudioConfig audio_config = 3 [(google.api.field_behavior) = REQUIRED];
 }
 
 // Contains text input to be synthesized. Either `text` or `ssml` must be
@@ -113,9 +161,9 @@ message SynthesisInput {
 
 // Description of which voice to use for a synthesis request.
 message VoiceSelectionParams {
-  // The language (and optionally also the region) of the voice expressed as a
+  // 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.
-  // "en-US". Required. This should not include a script tag (e.g. use
+  // "en-US". This should not include a script tag (e.g. use
   // "cmn-cn" rather than "cmn-Hant-cn"), because the script will be inferred
   // from the input provided in the SynthesisInput.  The TTS service
   // will use this parameter to help choose an appropriate voice.  Note that
@@ -124,13 +172,13 @@ message VoiceSelectionParams {
   // (e.g. using en-US rather than en-CA if there isn't a Canadian voice
   // available), or even a different language, e.g. using "nb" (Norwegian
   // Bokmal) instead of "no" (Norwegian)".
-  string language_code = 1;
+  string language_code = 1 [(google.api.field_behavior) = REQUIRED];
 
-  // The name of the voice. Optional; if not set, the service will choose a
+  // 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;
 
-  // The preferred gender of the voice. Optional; if not set, the service will
+  // 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
   // name. Note that this is only a preference, not requirement; if a
   // voice of the appropriate gender is not available, the synthesizer should
@@ -140,89 +188,66 @@ message VoiceSelectionParams {
 
 // Description of audio data to be synthesized.
 message AudioConfig {
-  // Required. The format of the requested audio byte stream.
-  AudioEncoding audio_encoding = 1;
-
-  // Optional 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 fast, and
-  // 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
-  // other values < 0.25 or > 4.0 will return an error.
-  double speaking_rate = 2;
-
-  // Optional 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;
-
-  // Optional volume gain (in dB) of the normal native volume supported by the
-  // specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
-  // 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
-  // will play at approximately half the amplitude of the normal native signal
-  // amplitude. A value of +6.0 (dB) will play at approximately twice the
-  // amplitude of the normal native signal amplitude. Strongly recommend not to
-  // exceed +10 (dB) as there's usually no effective increase in loudness for
-  // any value greater than that.
-  double volume_gain_db = 4;
-
-  // The synthesis sample rate (in hertz) for this audio. Optional.  If this is
-  // different from the voice's natural sample rate, then the synthesizer will
-  // honor this request by converting to the desired sample rate (which might
-  // result in worse audio quality), unless the specified sample rate is not
-  // supported for the encoding chosen, in which case it will fail the request
-  // and return [google.rpc.Code.INVALID_ARGUMENT][].
-  int32 sample_rate_hertz = 5;
-
-  // An identifier which selects 'audio effects' profiles that are applied on
-  // (post synthesized) text to speech.
-  // Effects are applied on top of each other in the order they are given.
-  repeated string effects_profile_id = 6;
+  // Required. The format of the audio byte stream.
+  AudioEncoding audio_encoding = 1 [(google.api.field_behavior) = REQUIRED];
+
+  // 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
+  // fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
+  // 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
+  ];
+
+  // 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
+  ];
+
+  // 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
+  // set to a value of 0.0 (dB), will play at normal native signal amplitude. A
+  // value of -6.0 (dB) will play at approximately half the amplitude of the
+  // normal native signal amplitude. A value of +6.0 (dB) will play at
+  // approximately twice the amplitude of the normal native signal amplitude.
+  // Strongly recommend not to exceed +10 (dB) as there's usually no effective
+  // 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
+  ];
+
+  // Optional. The synthesis sample rate (in hertz) for this audio. When this is
+  // specified in SynthesizeSpeechRequest, if this is different from the voice's
+  // natural sample rate, then the synthesizer will honor this request by
+  // converting to the desired sample rate (which might result in worse audio
+  // quality), unless the specified sample rate is not supported for the
+  // encoding chosen, in which case it will fail the request and return
+  // [google.rpc.Code.INVALID_ARGUMENT][].
+  int32 sample_rate_hertz = 5 [(google.api.field_behavior) = OPTIONAL];
+
+  // Optional. Input only. An identifier which selects 'audio effects' profiles
+  // that are applied on (post synthesized) text to speech. Effects are applied
+  // on top of each other in the order they are given. See
+  // [audio
+  // profiles](https://cloud.google.com/text-to-speech/docs/audio-profiles) for
+  // current supported profile ids.
+  repeated string effects_profile_id = 6 [
+    (google.api.field_behavior) = INPUT_ONLY,
+    (google.api.field_behavior) = OPTIONAL
+  ];
 }
 
 // The message returned to the client by the `SynthesizeSpeech` method.
 message SynthesizeSpeechResponse {
   // The audio data bytes encoded as specified in the request, including the
-  // header (For LINEAR16 audio, we include the WAV header). Note: as
+  // header for encodings that are wrapped in containers (e.g. MP3, OGG_OPUS).
+  // For LINEAR16 audio, we include the WAV header. Note: as
   // with all bytes fields, protobuffers use a pure binary representation,
   // whereas JSON representations use base64.
   bytes audio_content = 1;
 }
-
-// Gender of the voice as described in
-// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
-enum SsmlVoiceGender {
-  // An unspecified gender.
-  // In VoiceSelectionParams, this means that the client doesn't care which
-  // gender the selected voice will have. In the Voice field of
-  // ListVoicesResponse, this may mean that the voice doesn't fit any of the
-  // other categories in this enum, or that the gender of the voice isn't known.
-  SSML_VOICE_GENDER_UNSPECIFIED = 0;
-
-  // A male voice.
-  MALE = 1;
-
-  // A female voice.
-  FEMALE = 2;
-
-  // A gender-neutral voice.
-  NEUTRAL = 3;
-}
-
-// Configuration to set up audio encoder. The encoding determines the output
-// audio format that we'd like.
-enum AudioEncoding {
-  // Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
-  AUDIO_ENCODING_UNSPECIFIED = 0;
-
-  // Uncompressed 16-bit signed little-endian samples (Linear PCM).
-  // Audio content returned as LINEAR16 also contains a WAV header.
-  LINEAR16 = 1;
-
-  // MP3 audio.
-  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
-  // Chrome and Firefox). The quality of the encoding is considerably higher
-  // than MP3 while using approximately the same bitrate.
-  OGG_OPUS = 3;
-}
diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java
index e3359a41362a..f370311ee2f1 100644
--- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java
+++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java
@@ -156,7 +156,7 @@ public TextToSpeechStub getStub() {
    * }
    * 
* - * @param languageCode Optional (but recommended) + * @param languageCode Optional. Recommended. * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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-*" voices; when specifying diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java index d9fc3b294e45..a15b94f703d0 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java @@ -244,7 +244,7 @@ private static Builder initDefaults(Builder builder) { builder .synthesizeSpeechSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); return builder; diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java index 8ee19702beef..d9d24e1dbd30 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java @@ -145,7 +145,7 @@ public TextToSpeechStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Returns a list of [Voice][google.cloud.texttospeech.v1beta1.Voice] supported for synthesis. + * Returns a list of Voice supported for synthesis. * *

Sample code: * @@ -156,7 +156,7 @@ public TextToSpeechStub getStub() { * } *

* - * @param languageCode Optional (but recommended) + * @param languageCode Optional. Recommended. * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. 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-*" voices; when specifying @@ -174,7 +174,7 @@ public final ListVoicesResponse listVoices(String languageCode) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Returns a list of [Voice][google.cloud.texttospeech.v1beta1.Voice] supported for synthesis. + * Returns a list of Voice supported for synthesis. * *

Sample code: * @@ -194,7 +194,7 @@ public final ListVoicesResponse listVoices(ListVoicesRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Returns a list of [Voice][google.cloud.texttospeech.v1beta1.Voice] supported for synthesis. + * Returns a list of Voice supported for synthesis. * *

Sample code: * diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java index ec0019efd938..006e1db21858 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java @@ -244,7 +244,7 @@ private static Builder initDefaults(Builder builder) { builder .synthesizeSpeechSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); return builder; diff --git a/google-cloud-clients/google-cloud-texttospeech/synth.metadata b/google-cloud-clients/google-cloud-texttospeech/synth.metadata index 526498841617..7796b276d472 100644 --- a/google-cloud-clients/google-cloud-texttospeech/synth.metadata +++ b/google-cloud-clients/google-cloud-texttospeech/synth.metadata @@ -1,19 +1,18 @@ { - "updateTime": "2019-08-06T07:58:56.725594Z", + "updateTime": "2019-09-10T07:55:44.791288Z", "sources": [ { "generator": { "name": "artman", - "version": "0.32.1", - "dockerImage": "googleapis/artman@sha256:a684d40ba9a4e15946f5f2ca6b4bd9fe301192f522e9de4fff622118775f309b" + "version": "0.36.2", + "dockerImage": "googleapis/artman@sha256:0e6f3a668cd68afc768ecbe08817cf6e56a0e64fcbdb1c58c3b97492d12418a1" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e699b0cba64ffddfae39633417180f1f65875896", - "internalRef": "261759677" + "sha": "26e189ad03ba63591fb26eecb6aaade7ad39f57a" } } ],