diff --git a/java-texttospeech/README.md b/java-texttospeech/README.md index 107b858c1805..6562f4943108 100644 --- a/java-texttospeech/README.md +++ b/java-texttospeech/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-texttospeech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.33.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/HttpJsonTextToSpeechLongAudioSynthesizeStub.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/HttpJsonTextToSpeechLongAudioSynthesizeStub.java index ee46736034ee..4a491033c5f1 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/HttpJsonTextToSpeechLongAudioSynthesizeStub.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/HttpJsonTextToSpeechLongAudioSynthesizeStub.java @@ -16,6 +16,7 @@ package com.google.cloud.texttospeech.v1.stub; +import com.google.api.HttpRule; import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; @@ -35,6 +36,7 @@ import com.google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata; import com.google.cloud.texttospeech.v1.SynthesizeLongAudioRequest; import com.google.cloud.texttospeech.v1.SynthesizeLongAudioResponse; +import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.protobuf.TypeRegistry; import java.io.IOException; @@ -71,7 +73,7 @@ public class HttpJsonTextToSpeechLongAudioSynthesizeStub .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1/{parent=projects/*/locations/*/voices/*}:SynthesizeLongAudio", + "/v1/{parent=projects/*/locations/*}:synthesizeLongAudio", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = @@ -154,7 +156,22 @@ protected HttpJsonTextToSpeechLongAudioSynthesizeStub( throws IOException { this.callableFactory = callableFactory; this.httpJsonOperationsStub = - HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*}/operations") + .build()) + .build()); HttpJsonCallSettings synthesizeLongAudioTransportSettings = diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/HttpJsonTextToSpeechLongAudioSynthesizeStub.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/HttpJsonTextToSpeechLongAudioSynthesizeStub.java index 51fbd1c1f61c..9e96eef92b42 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/HttpJsonTextToSpeechLongAudioSynthesizeStub.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/HttpJsonTextToSpeechLongAudioSynthesizeStub.java @@ -16,6 +16,7 @@ package com.google.cloud.texttospeech.v1beta1.stub; +import com.google.api.HttpRule; import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; @@ -35,6 +36,7 @@ import com.google.cloud.texttospeech.v1beta1.SynthesizeLongAudioMetadata; import com.google.cloud.texttospeech.v1beta1.SynthesizeLongAudioRequest; import com.google.cloud.texttospeech.v1beta1.SynthesizeLongAudioResponse; +import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.protobuf.TypeRegistry; import java.io.IOException; @@ -71,7 +73,7 @@ public class HttpJsonTextToSpeechLongAudioSynthesizeStub .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1beta1/{parent=projects/*/locations/*/voices/*}:SynthesizeLongAudio", + "/v1beta1/{parent=projects/*/locations/*}:synthesizeLongAudio", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = @@ -154,7 +156,22 @@ protected HttpJsonTextToSpeechLongAudioSynthesizeStub( throws IOException { this.callableFactory = callableFactory; this.httpJsonOperationsStub = - HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1beta1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1beta1/{name=projects/*/locations/*}/operations") + .build()) + .build()); HttpJsonCallSettings synthesizeLongAudioTransportSettings = diff --git a/java-texttospeech/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeClientHttpJsonTest.java b/java-texttospeech/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeClientHttpJsonTest.java index dfb4deec7c52..1d72c2fc0196 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeClientHttpJsonTest.java +++ b/java-texttospeech/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesizeClientHttpJsonTest.java @@ -86,7 +86,7 @@ public void synthesizeLongAudioTest() throws Exception { SynthesizeLongAudioRequest request = SynthesizeLongAudioRequest.newBuilder() - .setParent("projects/project-5698/locations/location-5698/voices/voice-5698") + .setParent("projects/project-5833/locations/location-5833") .setInput(SynthesisInput.newBuilder().build()) .setAudioConfig(AudioConfig.newBuilder().build()) .setOutputGcsUri("outputGcsUri-489598154") @@ -121,7 +121,7 @@ public void synthesizeLongAudioExceptionTest() throws Exception { try { SynthesizeLongAudioRequest request = SynthesizeLongAudioRequest.newBuilder() - .setParent("projects/project-5698/locations/location-5698/voices/voice-5698") + .setParent("projects/project-5833/locations/location-5833") .setInput(SynthesisInput.newBuilder().build()) .setAudioConfig(AudioConfig.newBuilder().build()) .setOutputGcsUri("outputGcsUri-489598154") diff --git a/java-texttospeech/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeClientHttpJsonTest.java b/java-texttospeech/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeClientHttpJsonTest.java index 3f9003b117a1..5643e144e7fb 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeClientHttpJsonTest.java +++ b/java-texttospeech/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesizeClientHttpJsonTest.java @@ -86,7 +86,7 @@ public void synthesizeLongAudioTest() throws Exception { SynthesizeLongAudioRequest request = SynthesizeLongAudioRequest.newBuilder() - .setParent("projects/project-5698/locations/location-5698/voices/voice-5698") + .setParent("projects/project-5833/locations/location-5833") .setInput(SynthesisInput.newBuilder().build()) .setAudioConfig(AudioConfig.newBuilder().build()) .setOutputGcsUri("outputGcsUri-489598154") @@ -121,7 +121,7 @@ public void synthesizeLongAudioExceptionTest() throws Exception { try { SynthesizeLongAudioRequest request = SynthesizeLongAudioRequest.newBuilder() - .setParent("projects/project-5698/locations/location-5698/voices/voice-5698") + .setParent("projects/project-5833/locations/location-5833") .setInput(SynthesisInput.newBuilder().build()) .setAudioConfig(AudioConfig.newBuilder().build()) .setOutputGcsUri("outputGcsUri-489598154") diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParams.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParams.java index f85815e6321e..d01df719b72e 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParams.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParams.java @@ -67,9 +67,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The usage of the synthesized audio. You must report your honest and
-   * correct usage of the service as it's regulated by contract and will cause
-   * significant difference in billing.
+   * Deprecated. The usage of the synthesized audio. Usage does not affect
+   * billing.
    * 
* * Protobuf enum {@code google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage} @@ -291,16 +290,19 @@ public com.google.protobuf.ByteString getModelBytes() { * * *
-   * Optional. The usage of the synthesized audio to be reported.
+   * Optional. Deprecated. The usage of the synthesized audio to be reported.
    * 
* * - * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See + * google/cloud/texttospeech/v1/cloud_tts.proto;l=291 * @return The enum numeric value on the wire for reportedUsage. */ @java.lang.Override + @java.lang.Deprecated public int getReportedUsageValue() { return reportedUsage_; } @@ -308,16 +310,19 @@ public int getReportedUsageValue() { * * *
-   * Optional. The usage of the synthesized audio to be reported.
+   * Optional. Deprecated. The usage of the synthesized audio to be reported.
    * 
* * - * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See + * google/cloud/texttospeech/v1/cloud_tts.proto;l=291 * @return The reportedUsage. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage getReportedUsage() { com.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage result = com.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage.forNumber(reportedUsage_); @@ -817,16 +822,19 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The usage of the synthesized audio to be reported.
+     * Optional. Deprecated. The usage of the synthesized audio to be reported.
      * 
* * - * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See + * google/cloud/texttospeech/v1/cloud_tts.proto;l=291 * @return The enum numeric value on the wire for reportedUsage. */ @java.lang.Override + @java.lang.Deprecated public int getReportedUsageValue() { return reportedUsage_; } @@ -834,16 +842,19 @@ public int getReportedUsageValue() { * * *
-     * Optional. The usage of the synthesized audio to be reported.
+     * Optional. Deprecated. The usage of the synthesized audio to be reported.
      * 
* * - * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See + * google/cloud/texttospeech/v1/cloud_tts.proto;l=291 * @param value The enum numeric value on the wire for reportedUsage to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setReportedUsageValue(int value) { reportedUsage_ = value; bitField0_ |= 0x00000002; @@ -854,16 +865,19 @@ public Builder setReportedUsageValue(int value) { * * *
-     * Optional. The usage of the synthesized audio to be reported.
+     * Optional. Deprecated. The usage of the synthesized audio to be reported.
      * 
* * - * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See + * google/cloud/texttospeech/v1/cloud_tts.proto;l=291 * @return The reportedUsage. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage getReportedUsage() { com.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage result = com.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage.forNumber( @@ -876,16 +890,19 @@ public com.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage getRepor * * *
-     * Optional. The usage of the synthesized audio to be reported.
+     * Optional. Deprecated. The usage of the synthesized audio to be reported.
      * 
* * - * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See + * google/cloud/texttospeech/v1/cloud_tts.proto;l=291 * @param value The reportedUsage to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setReportedUsage( com.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage value) { if (value == null) { @@ -900,15 +917,18 @@ public Builder setReportedUsage( * * *
-     * Optional. The usage of the synthesized audio to be reported.
+     * Optional. Deprecated. The usage of the synthesized audio to be reported.
      * 
* * - * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See + * google/cloud/texttospeech/v1/cloud_tts.proto;l=291 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearReportedUsage() { bitField0_ = (bitField0_ & ~0x00000002); reportedUsage_ = 0; diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParamsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParamsOrBuilder.java index 5c74fe650cf3..87006af53584 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParamsOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomVoiceParamsOrBuilder.java @@ -56,28 +56,34 @@ public interface CustomVoiceParamsOrBuilder * * *
-   * Optional. The usage of the synthesized audio to be reported.
+   * Optional. Deprecated. The usage of the synthesized audio to be reported.
    * 
* * - * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See + * google/cloud/texttospeech/v1/cloud_tts.proto;l=291 * @return The enum numeric value on the wire for reportedUsage. */ + @java.lang.Deprecated int getReportedUsageValue(); /** * * *
-   * Optional. The usage of the synthesized audio to be reported.
+   * Optional. Deprecated. The usage of the synthesized audio to be reported.
    * 
* * - * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1.CustomVoiceParams.reported_usage is deprecated. See + * google/cloud/texttospeech/v1/cloud_tts.proto;l=291 * @return The reportedUsage. */ + @java.lang.Deprecated com.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage getReportedUsage(); } diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeLongAudioMetadata.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeLongAudioMetadata.java index ec19b58c29c7..5ee06d3f5176 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeLongAudioMetadata.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeLongAudioMetadata.java @@ -112,14 +112,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-   * Time of the most recent processing update.
+   * Deprecated. Do not use.
    * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * + * @deprecated google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata.last_update_time is + * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=86 * @return Whether the lastUpdateTime field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasLastUpdateTime() { return lastUpdateTime_ != null; } @@ -127,14 +130,17 @@ public boolean hasLastUpdateTime() { * * *
-   * Time of the most recent processing update.
+   * Deprecated. Do not use.
    * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * + * @deprecated google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata.last_update_time is + * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=86 * @return The lastUpdateTime. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.Timestamp getLastUpdateTime() { return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() @@ -144,12 +150,13 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { * * *
-   * Time of the most recent processing update.
+   * Deprecated. Do not use.
    * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() @@ -774,13 +781,16 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * + * @deprecated google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata.last_update_time is + * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=86 * @return Whether the lastUpdateTime field is set. */ + @java.lang.Deprecated public boolean hasLastUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } @@ -788,13 +798,16 @@ public boolean hasLastUpdateTime() { * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * + * @deprecated google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata.last_update_time is + * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=86 * @return The lastUpdateTime. */ + @java.lang.Deprecated public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { return lastUpdateTime_ == null @@ -808,11 +821,12 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ + @java.lang.Deprecated public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (value == null) { @@ -830,11 +844,12 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ + @java.lang.Deprecated public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); @@ -849,11 +864,12 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ + @java.lang.Deprecated public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) @@ -874,11 +890,12 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ + @java.lang.Deprecated public Builder clearLastUpdateTime() { bitField0_ = (bitField0_ & ~0x00000002); lastUpdateTime_ = null; @@ -893,11 +910,12 @@ public Builder clearLastUpdateTime() { * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ + @java.lang.Deprecated public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); @@ -907,11 +925,12 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ + @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { if (lastUpdateTimeBuilder_ != null) { return lastUpdateTimeBuilder_.getMessageOrBuilder(); @@ -925,10 +944,10 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeLongAudioMetadataOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeLongAudioMetadataOrBuilder.java index 1be198e1cf71..daa5ab2e1f0e 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeLongAudioMetadataOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/SynthesizeLongAudioMetadataOrBuilder.java @@ -62,35 +62,42 @@ public interface SynthesizeLongAudioMetadataOrBuilder * * *
-   * Time of the most recent processing update.
+   * Deprecated. Do not use.
    * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * + * @deprecated google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata.last_update_time is + * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=86 * @return Whether the lastUpdateTime field is set. */ + @java.lang.Deprecated boolean hasLastUpdateTime(); /** * * *
-   * Time of the most recent processing update.
+   * Deprecated. Do not use.
    * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * + * @deprecated google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata.last_update_time is + * deprecated. See google/cloud/texttospeech/v1/cloud_tts_lrs.proto;l=86 * @return The lastUpdateTime. */ + @java.lang.Deprecated com.google.protobuf.Timestamp getLastUpdateTime(); /** * * *
-   * Time of the most recent processing update.
+   * Deprecated. Do not use.
    * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ + @java.lang.Deprecated com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); /** diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesisProto.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesisProto.java index e4756b9bd742..39b391a5b43a 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesisProto.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechLongAudioSynthesisProto.java @@ -63,26 +63,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gcs_uri\030\004 \001(\tB\004\342A\001\002\022G\n\005voice\030\005 \001(\01322.goo" + "gle.cloud.texttospeech.v1.VoiceSelection" + "ParamsB\004\342A\001\002\"\035\n\033SynthesizeLongAudioRespo" - + "nse\"\240\001\n\033SynthesizeLongAudioMetadata\022.\n\ns" + + "nse\"\244\001\n\033SynthesizeLongAudioMetadata\022.\n\ns" + "tart_time\030\001 \001(\0132\032.google.protobuf.Timest" - + "amp\0224\n\020last_update_time\030\002 \001(\0132\032.google.p" - + "rotobuf.Timestamp\022\033\n\023progress_percentage" - + "\030\003 \001(\0012\356\002\n\037TextToSpeechLongAudioSynthesi" - + "ze\022\371\001\n\023SynthesizeLongAudio\0228.google.clou" - + "d.texttospeech.v1.SynthesizeLongAudioReq" - + "uest\032\035.google.longrunning.Operation\"\210\001\312A" - + ":\n\033SynthesizeLongAudioResponse\022\033Synthesi" - + "zeLongAudioMetadata\202\323\344\223\002E\"@/v1/{parent=p" - + "rojects/*/locations/*/voices/*}:Synthesi" - + "zeLongAudio:\001*\032O\312A\033texttospeech.googleap" - + "is.com\322A.https://www.googleapis.com/auth" - + "/cloud-platformB\362\001\n com.google.cloud.tex" - + "ttospeech.v1B#TextToSpeechLongAudioSynth" - + "esisProtoP\001ZDcloud.google.com/go/texttos" - + "peech/apiv1/texttospeechpb;texttospeechp" - + "b\370\001\001\252\002\034Google.Cloud.TextToSpeech.V1\312\002\034Go" - + "ogle\\Cloud\\TextToSpeech\\V1\352\002\037Google::Clo" - + "ud::TextToSpeech::V1b\006proto3" + + "amp\0228\n\020last_update_time\030\002 \001(\0132\032.google.p" + + "rotobuf.TimestampB\002\030\001\022\033\n\023progress_percen" + + "tage\030\003 \001(\0012\237\003\n\037TextToSpeechLongAudioSynt" + + "hesize\022\252\002\n\023SynthesizeLongAudio\0228.google." + + "cloud.texttospeech.v1.SynthesizeLongAudi" + + "oRequest\032\035.google.longrunning.Operation\"" + + "\271\001\312At\n8google.cloud.texttospeech.v1.Synt" + + "hesizeLongAudioResponse\0228google.cloud.te" + + "xttospeech.v1.SynthesizeLongAudioMetadat" + + "a\202\323\344\223\002<\"7/v1/{parent=projects/*/location" + + "s/*}:synthesizeLongAudio:\001*\032O\312A\033texttosp" + + "eech.googleapis.com\322A.https://www.google" + + "apis.com/auth/cloud-platformB\362\001\n com.goo" + + "gle.cloud.texttospeech.v1B#TextToSpeechL" + + "ongAudioSynthesisProtoP\001ZDcloud.google.c" + + "om/go/texttospeech/apiv1/texttospeechpb;" + + "texttospeechpb\370\001\001\252\002\034Google.Cloud.TextToS" + + "peech.V1\312\002\034Google\\Cloud\\TextToSpeech\\V1\352" + + "\002\037Google::Cloud::TextToSpeech::V1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java index de4fb317a3cb..338dad376861 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java @@ -102,38 +102,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ng_rate\030\002 \001(\001B\005\342A\002\004\001\022\024\n\005pitch\030\003 \001(\001B\005\342A\002" + "\004\001\022\035\n\016volume_gain_db\030\004 \001(\001B\005\342A\002\004\001\022\037\n\021sam" + "ple_rate_hertz\030\005 \001(\005B\004\342A\001\001\022!\n\022effects_pr" - + "ofile_id\030\006 \003(\tB\005\342A\002\004\001\"\361\001\n\021CustomVoicePar" + + "ofile_id\030\006 \003(\tB\005\342A\002\004\001\"\363\001\n\021CustomVoicePar" + "ams\0223\n\005model\030\001 \001(\tB$\342A\001\002\372A\035\n\033automl.goog" - + "leapis.com/Model\022[\n\016reported_usage\030\003 \001(\016" + + "leapis.com/Model\022]\n\016reported_usage\030\003 \001(\016" + "2=.google.cloud.texttospeech.v1.CustomVo" - + "iceParams.ReportedUsageB\004\342A\001\001\"J\n\rReporte" - + "dUsage\022\036\n\032REPORTED_USAGE_UNSPECIFIED\020\000\022\014" - + "\n\010REALTIME\020\001\022\013\n\007OFFLINE\020\002\"1\n\030SynthesizeS" - + "peechResponse\022\025\n\raudio_content\030\001 \001(\014*W\n\017" - + "SsmlVoiceGender\022!\n\035SSML_VOICE_GENDER_UNS" - + "PECIFIED\020\000\022\010\n\004MALE\020\001\022\n\n\006FEMALE\020\002\022\013\n\007NEUT" - + "RAL\020\003*i\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\003\022\t\n\005MULAW\020\005\022\010\n\004ALAW\020\0062\264\003\n\014Tex" - + "tToSpeech\022\223\001\n\nListVoices\022/.google.cloud." - + "texttospeech.v1.ListVoicesRequest\0320.goog" - + "le.cloud.texttospeech.v1.ListVoicesRespo" - + "nse\"\"\332A\rlanguage_code\202\323\344\223\002\014\022\n/v1/voices\022" - + "\274\001\n\020SynthesizeSpeech\0225.google.cloud.text" - + "tospeech.v1.SynthesizeSpeechRequest\0326.go" - + "ogle.cloud.texttospeech.v1.SynthesizeSpe" - + "echResponse\"9\332A\030input,voice,audio_config" - + "\202\323\344\223\002\030\"\023/v1/text:synthesize:\001*\032O\312A\033textt" - + "ospeech.googleapis.com\322A.https://www.goo" - + "gleapis.com/auth/cloud-platformB\270\002\n com." - + "google.cloud.texttospeech.v1B\021TextToSpee" - + "chProtoP\001ZDcloud.google.com/go/texttospe" - + "ech/apiv1/texttospeechpb;texttospeechpb\370" - + "\001\001\252\002\034Google.Cloud.TextToSpeech.V1\312\002\034Goog" - + "le\\Cloud\\TextToSpeech\\V1\352\002\037Google::Cloud" - + "::TextToSpeech::V1\352AU\n\033automl.googleapis" - + ".com/Model\0226projects/{project}/locations" - + "/{location}/models/{model}b\006proto3" + + "iceParams.ReportedUsageB\006\030\001\342A\001\001\"J\n\rRepor" + + "tedUsage\022\036\n\032REPORTED_USAGE_UNSPECIFIED\020\000" + + "\022\014\n\010REALTIME\020\001\022\013\n\007OFFLINE\020\002\"1\n\030Synthesiz" + + "eSpeechResponse\022\025\n\raudio_content\030\001 \001(\014*W" + + "\n\017SsmlVoiceGender\022!\n\035SSML_VOICE_GENDER_U" + + "NSPECIFIED\020\000\022\010\n\004MALE\020\001\022\n\n\006FEMALE\020\002\022\013\n\007NE" + + "UTRAL\020\003*i\n\rAudioEncoding\022\036\n\032AUDIO_ENCODI" + + "NG_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\007\n\003MP3\020\002\022" + + "\014\n\010OGG_OPUS\020\003\022\t\n\005MULAW\020\005\022\010\n\004ALAW\020\0062\264\003\n\014T" + + "extToSpeech\022\223\001\n\nListVoices\022/.google.clou" + + "d.texttospeech.v1.ListVoicesRequest\0320.go" + + "ogle.cloud.texttospeech.v1.ListVoicesRes" + + "ponse\"\"\332A\rlanguage_code\202\323\344\223\002\014\022\n/v1/voice" + + "s\022\274\001\n\020SynthesizeSpeech\0225.google.cloud.te" + + "xttospeech.v1.SynthesizeSpeechRequest\0326." + + "google.cloud.texttospeech.v1.SynthesizeS" + + "peechResponse\"9\332A\030input,voice,audio_conf" + + "ig\202\323\344\223\002\030\"\023/v1/text:synthesize:\001*\032O\312A\033tex" + + "ttospeech.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platformB\270\002\n co" + + "m.google.cloud.texttospeech.v1B\021TextToSp" + + "eechProtoP\001ZDcloud.google.com/go/texttos" + + "peech/apiv1/texttospeechpb;texttospeechp" + + "b\370\001\001\252\002\034Google.Cloud.TextToSpeech.V1\312\002\034Go" + + "ogle\\Cloud\\TextToSpeech\\V1\352\002\037Google::Clo" + + "ud::TextToSpeech::V1\352AU\n\033automl.googleap" + + "is.com/Model\0226projects/{project}/locatio" + + "ns/{location}/models/{model}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto index 72fe71282b39..9ab65b1b767a 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -266,9 +266,8 @@ message AudioConfig { // Description of the custom voice to be synthesized. message CustomVoiceParams { - // The usage of the synthesized audio. You must report your honest and - // correct usage of the service as it's regulated by contract and will cause - // significant difference in billing. + // Deprecated. The usage of the synthesized audio. Usage does not affect + // billing. enum ReportedUsage { // Request with reported usage unspecified will be rejected. REPORTED_USAGE_UNSPECIFIED = 0; @@ -289,8 +288,9 @@ message CustomVoiceParams { (google.api.resource_reference) = { type: "automl.googleapis.com/Model" } ]; - // Optional. The usage of the synthesized audio to be reported. - ReportedUsage reported_usage = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Deprecated. The usage of the synthesized audio to be reported. + ReportedUsage reported_usage = 3 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } // The message returned to the client by the `SynthesizeSpeech` method. diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts_lrs.proto b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts_lrs.proto index a903eb63f0a6..67bc4bd86477 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts_lrs.proto +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts_lrs.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -42,12 +42,12 @@ service TextToSpeechLongAudioSynthesize { rpc SynthesizeLongAudio(SynthesizeLongAudioRequest) returns (google.longrunning.Operation) { option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*/voices/*}:SynthesizeLongAudio" + post: "/v1/{parent=projects/*/locations/*}:synthesizeLongAudio" body: "*" }; option (google.longrunning.operation_info) = { - response_type: "SynthesizeLongAudioResponse" - metadata_type: "SynthesizeLongAudioMetadata" + response_type: "google.cloud.texttospeech.v1.SynthesizeLongAudioResponse" + metadata_type: "google.cloud.texttospeech.v1.SynthesizeLongAudioMetadata" }; } } @@ -83,8 +83,8 @@ message SynthesizeLongAudioMetadata { // Time when the request was received. google.protobuf.Timestamp start_time = 1; - // Time of the most recent processing update. - google.protobuf.Timestamp last_update_time = 2; + // Deprecated. Do not use. + google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; // The progress of the most recent processing update in percentage, ie. 70.0%. double progress_percentage = 3; diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java index aed6558fe823..a24835c8592d 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java @@ -33,7 +33,8 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
+   * Not specified. Will return result
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
    * 
* * AUDIO_ENCODING_UNSPECIFIED = 0; @@ -112,7 +113,8 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
+   * Not specified. Will return result
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
    * 
* * AUDIO_ENCODING_UNSPECIFIED = 0; diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java index c474369baccd..6b5bc2e13120 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParams.java @@ -67,9 +67,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The usage of the synthesized audio. You must report your honest and
-   * correct usage of the service as it's regulated by contract and will cause
-   * significant difference in billing.
+   * Deprecated. The usage of the synthesized audio. Usage does not affect
+   * billing.
    * 
* * Protobuf enum {@code google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage} @@ -291,16 +290,19 @@ public com.google.protobuf.ByteString getModelBytes() { * * *
-   * Optional. The usage of the synthesized audio to be reported.
+   * Optional. Deprecated. The usage of the synthesized audio to be reported.
    * 
* * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=306 * @return The enum numeric value on the wire for reportedUsage. */ @java.lang.Override + @java.lang.Deprecated public int getReportedUsageValue() { return reportedUsage_; } @@ -308,16 +310,19 @@ public int getReportedUsageValue() { * * *
-   * Optional. The usage of the synthesized audio to be reported.
+   * Optional. Deprecated. The usage of the synthesized audio to be reported.
    * 
* * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=306 * @return The reportedUsage. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage getReportedUsage() { com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage result = com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage.forNumber( @@ -819,16 +824,19 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The usage of the synthesized audio to be reported.
+     * Optional. Deprecated. The usage of the synthesized audio to be reported.
      * 
* * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=306 * @return The enum numeric value on the wire for reportedUsage. */ @java.lang.Override + @java.lang.Deprecated public int getReportedUsageValue() { return reportedUsage_; } @@ -836,16 +844,19 @@ public int getReportedUsageValue() { * * *
-     * Optional. The usage of the synthesized audio to be reported.
+     * Optional. Deprecated. The usage of the synthesized audio to be reported.
      * 
* * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=306 * @param value The enum numeric value on the wire for reportedUsage to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setReportedUsageValue(int value) { reportedUsage_ = value; bitField0_ |= 0x00000002; @@ -856,16 +867,19 @@ public Builder setReportedUsageValue(int value) { * * *
-     * Optional. The usage of the synthesized audio to be reported.
+     * Optional. Deprecated. The usage of the synthesized audio to be reported.
      * 
* * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=306 * @return The reportedUsage. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage getReportedUsage() { com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage result = @@ -879,16 +893,19 @@ public Builder setReportedUsageValue(int value) { * * *
-     * Optional. The usage of the synthesized audio to be reported.
+     * Optional. Deprecated. The usage of the synthesized audio to be reported.
      * 
* * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=306 * @param value The reportedUsage to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setReportedUsage( com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage value) { if (value == null) { @@ -903,15 +920,18 @@ public Builder setReportedUsage( * * *
-     * Optional. The usage of the synthesized audio to be reported.
+     * Optional. Deprecated. The usage of the synthesized audio to be reported.
      * 
* * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=306 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearReportedUsage() { bitField0_ = (bitField0_ & ~0x00000002); reportedUsage_ = 0; diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java index 1245bfa57321..544e992b6115 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/CustomVoiceParamsOrBuilder.java @@ -56,28 +56,34 @@ public interface CustomVoiceParamsOrBuilder * * *
-   * Optional. The usage of the synthesized audio to be reported.
+   * Optional. Deprecated. The usage of the synthesized audio to be reported.
    * 
* * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=306 * @return The enum numeric value on the wire for reportedUsage. */ + @java.lang.Deprecated int getReportedUsageValue(); /** * * *
-   * Optional. The usage of the synthesized audio to be reported.
+   * Optional. Deprecated. The usage of the synthesized audio to be reported.
    * 
* * - * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.texttospeech.v1beta1.CustomVoiceParams.reported_usage is deprecated. + * See google/cloud/texttospeech/v1beta1/cloud_tts.proto;l=306 * @return The reportedUsage. */ + @java.lang.Deprecated com.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage getReportedUsage(); } diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java index 9ba6e1cd29a9..7994069d126b 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInput.java @@ -24,8 +24,8 @@ *
  * Contains text input to be synthesized. Either `text` or `ssml` must be
  * supplied. Supplying both or neither returns
- * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. The input size is limited to 5000
- * bytes.
+ * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. The
+ * input size is limited to 5000 bytes.
  * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.SynthesisInput} @@ -189,7 +189,8 @@ public com.google.protobuf.ByteString getTextBytes() { *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
-   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For
+   * more information, see
    * [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
    * 
* @@ -206,7 +207,8 @@ public boolean hasSsml() { *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
-   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For
+   * more information, see
    * [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
    * 
* @@ -236,7 +238,8 @@ public java.lang.String getSsml() { *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
-   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For
+   * more information, see
    * [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
    * 
* @@ -452,8 +455,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * Contains text input to be synthesized. Either `text` or `ssml` must be
    * supplied. Supplying both or neither returns
-   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. The input size is limited to 5000
-   * bytes.
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. The
+   * input size is limited to 5000 bytes.
    * 
* * Protobuf type {@code google.cloud.texttospeech.v1beta1.SynthesisInput} @@ -813,7 +816,8 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
-     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For
+     * more information, see
      * [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
      * 
* @@ -831,7 +835,8 @@ public boolean hasSsml() { *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
-     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For
+     * more information, see
      * [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
      * 
* @@ -862,7 +867,8 @@ public java.lang.String getSsml() { *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
-     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For
+     * more information, see
      * [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
      * 
* @@ -893,7 +899,8 @@ public com.google.protobuf.ByteString getSsmlBytes() { *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
-     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For
+     * more information, see
      * [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
      * 
* @@ -917,7 +924,8 @@ public Builder setSsml(java.lang.String value) { *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
-     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For
+     * more information, see
      * [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
      * 
* @@ -939,7 +947,8 @@ public Builder clearSsml() { *
      * The SSML document to be synthesized. The SSML document must be valid
      * and well-formed. Otherwise the RPC will fail and return
-     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see
+     * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For
+     * more information, see
      * [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
      * 
* diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java index 3bdc9b09efc2..dde0e0bd92b6 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesisInputOrBuilder.java @@ -66,7 +66,8 @@ public interface SynthesisInputOrBuilder *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
-   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For
+   * more information, see
    * [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
    * 
* @@ -81,7 +82,8 @@ public interface SynthesisInputOrBuilder *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
-   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For
+   * more information, see
    * [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
    * 
* @@ -96,7 +98,8 @@ public interface SynthesisInputOrBuilder *
    * The SSML document to be synthesized. The SSML document must be valid
    * and well-formed. Otherwise the RPC will fail and return
-   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see
+   * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For
+   * more information, see
    * [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
    * 
* diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeLongAudioMetadata.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeLongAudioMetadata.java index 1175817f6295..8e6cfc3412b1 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeLongAudioMetadata.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeLongAudioMetadata.java @@ -112,14 +112,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-   * Time of the most recent processing update.
+   * Deprecated. Do not use.
    * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * + * @deprecated google.cloud.texttospeech.v1beta1.SynthesizeLongAudioMetadata.last_update_time is + * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=86 * @return Whether the lastUpdateTime field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasLastUpdateTime() { return lastUpdateTime_ != null; } @@ -127,14 +130,17 @@ public boolean hasLastUpdateTime() { * * *
-   * Time of the most recent processing update.
+   * Deprecated. Do not use.
    * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * + * @deprecated google.cloud.texttospeech.v1beta1.SynthesizeLongAudioMetadata.last_update_time is + * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=86 * @return The lastUpdateTime. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.Timestamp getLastUpdateTime() { return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() @@ -144,12 +150,13 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { * * *
-   * Time of the most recent processing update.
+   * Deprecated. Do not use.
    * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() @@ -777,13 +784,16 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * + * @deprecated google.cloud.texttospeech.v1beta1.SynthesizeLongAudioMetadata.last_update_time is + * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=86 * @return Whether the lastUpdateTime field is set. */ + @java.lang.Deprecated public boolean hasLastUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } @@ -791,13 +801,16 @@ public boolean hasLastUpdateTime() { * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * + * @deprecated google.cloud.texttospeech.v1beta1.SynthesizeLongAudioMetadata.last_update_time is + * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=86 * @return The lastUpdateTime. */ + @java.lang.Deprecated public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { return lastUpdateTime_ == null @@ -811,11 +824,12 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ + @java.lang.Deprecated public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (value == null) { @@ -833,11 +847,12 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ + @java.lang.Deprecated public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); @@ -852,11 +867,12 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ + @java.lang.Deprecated public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) @@ -877,11 +893,12 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ + @java.lang.Deprecated public Builder clearLastUpdateTime() { bitField0_ = (bitField0_ & ~0x00000002); lastUpdateTime_ = null; @@ -896,11 +913,12 @@ public Builder clearLastUpdateTime() { * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ + @java.lang.Deprecated public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); @@ -910,11 +928,12 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ + @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { if (lastUpdateTimeBuilder_ != null) { return lastUpdateTimeBuilder_.getMessageOrBuilder(); @@ -928,10 +947,10 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * * *
-     * Time of the most recent processing update.
+     * Deprecated. Do not use.
      * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeLongAudioMetadataOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeLongAudioMetadataOrBuilder.java index 0fa3ac6aa48e..0c30628ec443 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeLongAudioMetadataOrBuilder.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeLongAudioMetadataOrBuilder.java @@ -62,35 +62,42 @@ public interface SynthesizeLongAudioMetadataOrBuilder * * *
-   * Time of the most recent processing update.
+   * Deprecated. Do not use.
    * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * + * @deprecated google.cloud.texttospeech.v1beta1.SynthesizeLongAudioMetadata.last_update_time is + * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=86 * @return Whether the lastUpdateTime field is set. */ + @java.lang.Deprecated boolean hasLastUpdateTime(); /** * * *
-   * Time of the most recent processing update.
+   * Deprecated. Do not use.
    * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; * + * @deprecated google.cloud.texttospeech.v1beta1.SynthesizeLongAudioMetadata.last_update_time is + * deprecated. See google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto;l=86 * @return The lastUpdateTime. */ + @java.lang.Deprecated com.google.protobuf.Timestamp getLastUpdateTime(); /** * * *
-   * Time of the most recent processing update.
+   * Deprecated. Do not use.
    * 
* - * .google.protobuf.Timestamp last_update_time = 2; + * .google.protobuf.Timestamp last_update_time = 2 [deprecated = true]; */ + @java.lang.Deprecated com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); /** diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesisProto.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesisProto.java index 801061522029..7a9715b4f290 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesisProto.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechLongAudioSynthesisProto.java @@ -63,28 +63,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ioConfigB\004\342A\001\002\022\034\n\016output_gcs_uri\030\004 \001(\tB\004" + "\342A\001\002\022L\n\005voice\030\005 \001(\01327.google.cloud.textt" + "ospeech.v1beta1.VoiceSelectionParamsB\004\342A" - + "\001\002\"\035\n\033SynthesizeLongAudioResponse\"\240\001\n\033Sy" + + "\001\002\"\035\n\033SynthesizeLongAudioResponse\"\244\001\n\033Sy" + "nthesizeLongAudioMetadata\022.\n\nstart_time\030" - + "\001 \001(\0132\032.google.protobuf.Timestamp\0224\n\020las" + + "\001 \001(\0132\032.google.protobuf.Timestamp\0228\n\020las" + "t_update_time\030\002 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022\033\n\023progress_percentage\030\003 \001(\0012\370\002\n" - + "\037TextToSpeechLongAudioSynthesize\022\203\002\n\023Syn" - + "thesizeLongAudio\022=.google.cloud.texttosp" - + "eech.v1beta1.SynthesizeLongAudioRequest\032" - + "\035.google.longrunning.Operation\"\215\001\312A:\n\033Sy" - + "nthesizeLongAudioResponse\022\033SynthesizeLon" - + "gAudioMetadata\202\323\344\223\002J\"E/v1beta1/{parent=p" - + "rojects/*/locations/*/voices/*}:Synthesi" - + "zeLongAudio:\001*\032O\312A\033texttospeech.googleap" - + "is.com\322A.https://www.googleapis.com/auth" - + "/cloud-platformB\213\002\n%com.google.cloud.tex" - + "ttospeech.v1beta1B#TextToSpeechLongAudio" - + "SynthesisProtoP\001ZIcloud.google.com/go/te" - + "xttospeech/apiv1beta1/texttospeechpb;tex" - + "ttospeechpb\370\001\001\252\002!Google.Cloud.TextToSpee" - + "ch.V1Beta1\312\002!Google\\Cloud\\TextToSpeech\\V" - + "1beta1\352\002$Google::Cloud::TextToSpeech::V1" - + "beta1b\006proto3" + + "mestampB\002\030\001\022\033\n\023progress_percentage\030\003 \001(\001" + + "2\263\003\n\037TextToSpeechLongAudioSynthesize\022\276\002\n" + + "\023SynthesizeLongAudio\022=.google.cloud.text" + + "tospeech.v1beta1.SynthesizeLongAudioRequ" + + "est\032\035.google.longrunning.Operation\"\310\001\312A~" + + "\n=google.cloud.texttospeech.v1beta1.Synt" + + "hesizeLongAudioResponse\022=google.cloud.te" + + "xttospeech.v1beta1.SynthesizeLongAudioMe" + + "tadata\202\323\344\223\002A\"\332A\030input,vo" - + "ice,audio_config\202\323\344\223\002\035\"\030/v1beta1/text:sy" - + "nthesize:\001*\032O\312A\033texttospeech.googleapis." - + "com\322A.https://www.googleapis.com/auth/cl" - + "oud-platformB\321\002\n%com.google.cloud.textto" - + "speech.v1beta1B\021TextToSpeechProtoP\001ZIclo" - + "ud.google.com/go/texttospeech/apiv1beta1" - + "/texttospeechpb;texttospeechpb\370\001\001\252\002!Goog" - + "le.Cloud.TextToSpeech.V1Beta1\312\002!Google\\C" - + "loud\\TextToSpeech\\V1beta1\352\002$Google::Clou" - + "d::TextToSpeech::V1beta1\352AU\n\033automl.goog" - + "leapis.com/Model\0226projects/{project}/loc" - + "ations/{location}/models/{model}b\006proto3" + + "dUsageB\006\030\001\342A\001\001\"J\n\rReportedUsage\022\036\n\032REPOR" + + "TED_USAGE_UNSPECIFIED\020\000\022\014\n\010REALTIME\020\001\022\013\n" + + "\007OFFLINE\020\002\"\271\001\n\030SynthesizeSpeechResponse\022" + + "\025\n\raudio_content\030\001 \001(\014\022@\n\ntimepoints\030\002 \003" + + "(\0132,.google.cloud.texttospeech.v1beta1.T" + + "imepoint\022D\n\014audio_config\030\004 \001(\0132..google." + + "cloud.texttospeech.v1beta1.AudioConfig\"4" + + "\n\tTimepoint\022\021\n\tmark_name\030\004 \001(\t\022\024\n\014time_s" + + "econds\030\003 \001(\001*W\n\017SsmlVoiceGender\022!\n\035SSML_" + + "VOICE_GENDER_UNSPECIFIED\020\000\022\010\n\004MALE\020\001\022\n\n\006" + + "FEMALE\020\002\022\013\n\007NEUTRAL\020\003*z\n\rAudioEncoding\022\036" + + "\n\032AUDIO_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR" + + "16\020\001\022\007\n\003MP3\020\002\022\017\n\013MP3_64_KBPS\020\004\022\014\n\010OGG_OP" + + "US\020\003\022\t\n\005MULAW\020\005\022\010\n\004ALAW\020\0062\322\003\n\014TextToSpee" + + "ch\022\242\001\n\nListVoices\0224.google.cloud.texttos" + + "peech.v1beta1.ListVoicesRequest\0325.google" + + ".cloud.texttospeech.v1beta1.ListVoicesRe" + + "sponse\"\'\332A\rlanguage_code\202\323\344\223\002\021\022\017/v1beta1" + + "/voices\022\313\001\n\020SynthesizeSpeech\022:.google.cl" + + "oud.texttospeech.v1beta1.SynthesizeSpeec" + + "hRequest\032;.google.cloud.texttospeech.v1b" + + "eta1.SynthesizeSpeechResponse\">\332A\030input," + + "voice,audio_config\202\323\344\223\002\035\"\030/v1beta1/text:" + + "synthesize:\001*\032O\312A\033texttospeech.googleapi" + + "s.com\322A.https://www.googleapis.com/auth/" + + "cloud-platformB\321\002\n%com.google.cloud.text" + + "tospeech.v1beta1B\021TextToSpeechProtoP\001ZIc" + + "loud.google.com/go/texttospeech/apiv1bet" + + "a1/texttospeechpb;texttospeechpb\370\001\001\252\002!Go" + + "ogle.Cloud.TextToSpeech.V1Beta1\312\002!Google" + + "\\Cloud\\TextToSpeech\\V1beta1\352\002$Google::Cl" + + "oud::TextToSpeech::V1beta1\352AU\n\033automl.go" + + "ogleapis.com/Model\0226projects/{project}/l" + + "ocations/{location}/models/{model}b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java index 2fff4e81cded..7af3802e9679 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java @@ -72,9 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * 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". This should not include a script tag (e.g. use
+   * 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". 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
@@ -105,9 +105,9 @@ public java.lang.String getLanguageCode() {
    *
    *
    * 
-   * Required. The language (and potentially also the region) of the voice expressed as a
-   * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
-   * "en-US". This should not include a script tag (e.g. use
+   * 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". 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
@@ -720,9 +720,9 @@ public Builder mergeFrom(
      *
      *
      * 
-     * 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". This should not include a script tag (e.g. use
+     * 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". 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
@@ -752,9 +752,9 @@ public java.lang.String getLanguageCode() {
      *
      *
      * 
-     * Required. The language (and potentially also the region) of the voice expressed as a
-     * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
-     * "en-US". This should not include a script tag (e.g. use
+     * 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". 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
@@ -784,9 +784,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      *
      *
      * 
-     * Required. The language (and potentially also the region) of the voice expressed as a
-     * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag, e.g.
-     * "en-US". This should not include a script tag (e.g. use
+     * 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". 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
@@ -815,9 +815,9 @@ public Builder setLanguageCode(java.lang.String value) {
      *
      *
      * 
-     * 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". This should not include a script tag (e.g. use
+     * 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". 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
@@ -842,9 +842,9 @@ public Builder clearLanguageCode() {
      *
      *
      * 
-     * 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". This should not include a script tag (e.g. use
+     * 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". 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
diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java
index 8f3c86ad7101..f32480d17a56 100644
--- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java
+++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParamsOrBuilder.java
@@ -27,9 +27,9 @@ public interface VoiceSelectionParamsOrBuilder
    *
    *
    * 
-   * 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". This should not include a script tag (e.g. use
+   * 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". 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
@@ -49,9 +49,9 @@ public interface VoiceSelectionParamsOrBuilder
    *
    *
    * 
-   * 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". This should not include a script tag (e.g. use
+   * 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". 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
diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto
index b1cd1515356f..8a3d29a16ab7 100644
--- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto
+++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts.proto
@@ -1,4 +1,4 @@
-// Copyright 2022 Google LLC
+// Copyright 2023 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -37,7 +37,8 @@ option (google.api.resource_definition) = {
 // 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";
+  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) {
@@ -49,7 +50,8 @@ service TextToSpeech {
 
   // 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: "*"
@@ -81,7 +83,8 @@ enum SsmlVoiceGender {
 // 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][google.rpc.Code.INVALID_ARGUMENT].
+  // Not specified. Will return result
+  // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
   AUDIO_ENCODING_UNSPECIFIED = 0;
 
   // Uncompressed 16-bit signed little-endian samples (Linear PCM).
@@ -171,8 +174,8 @@ message SynthesizeSpeechRequest {
 
 // Contains text input to be synthesized. Either `text` or `ssml` must be
 // supplied. Supplying both or neither returns
-// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. The input size is limited to 5000
-// bytes.
+// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. The
+// input size is limited to 5000 bytes.
 message SynthesisInput {
   // The input source, which is either plain text or SSML.
   oneof input_source {
@@ -181,7 +184,8 @@ message SynthesisInput {
 
     // The SSML document to be synthesized. The SSML document must be valid
     // and well-formed. Otherwise the RPC will fail and return
-    // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see
+    // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For
+    // more information, see
     // [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
     string ssml = 2;
   }
@@ -189,9 +193,9 @@ message SynthesisInput {
 
 // Description of which voice to use for a synthesis request.
 message VoiceSelectionParams {
-  // 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". This should not include a script tag (e.g. use
+  // 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". 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
@@ -277,9 +281,8 @@ message AudioConfig {
 
 // Description of the custom voice to be synthesized.
 message CustomVoiceParams {
-  // The usage of the synthesized audio. You must report your honest and
-  // correct usage of the service as it's regulated by contract and will cause
-  // significant difference in billing.
+  // Deprecated. The usage of the synthesized audio. Usage does not affect
+  // billing.
   enum ReportedUsage {
     // Request with reported usage unspecified will be rejected.
     REPORTED_USAGE_UNSPECIFIED = 0;
@@ -297,13 +300,12 @@ message CustomVoiceParams {
   // Required. The name of the AutoML model that synthesizes the custom voice.
   string model = 1 [
     (google.api.field_behavior) = REQUIRED,
-    (google.api.resource_reference) = {
-      type: "automl.googleapis.com/Model"
-    }
+    (google.api.resource_reference) = { type: "automl.googleapis.com/Model" }
   ];
 
-  // Optional. The usage of the synthesized audio to be reported.
-  ReportedUsage reported_usage = 3 [(google.api.field_behavior) = OPTIONAL];
+  // Optional. Deprecated. The usage of the synthesized audio to be reported.
+  ReportedUsage reported_usage = 3
+      [deprecated = true, (google.api.field_behavior) = OPTIONAL];
 }
 
 // The message returned to the client by the `SynthesizeSpeech` method.
diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto
index c68a1a2ac319..f159ae4f4b0b 100644
--- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto
+++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/proto/google/cloud/texttospeech/v1beta1/cloud_tts_lrs.proto
@@ -1,4 +1,4 @@
-// Copyright 2022 Google LLC
+// Copyright 2023 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -42,12 +42,12 @@ service TextToSpeechLongAudioSynthesize {
   rpc SynthesizeLongAudio(SynthesizeLongAudioRequest)
       returns (google.longrunning.Operation) {
     option (google.api.http) = {
-      post: "/v1beta1/{parent=projects/*/locations/*/voices/*}:SynthesizeLongAudio"
+      post: "/v1beta1/{parent=projects/*/locations/*}:synthesizeLongAudio"
       body: "*"
     };
     option (google.longrunning.operation_info) = {
-      response_type: "SynthesizeLongAudioResponse"
-      metadata_type: "SynthesizeLongAudioMetadata"
+      response_type: "google.cloud.texttospeech.v1beta1.SynthesizeLongAudioResponse"
+      metadata_type: "google.cloud.texttospeech.v1beta1.SynthesizeLongAudioMetadata"
     };
   }
 }
@@ -83,8 +83,8 @@ message SynthesizeLongAudioMetadata {
   // Time when the request was received.
   google.protobuf.Timestamp start_time = 1;
 
-  // Time of the most recent processing update.
-  google.protobuf.Timestamp last_update_time = 2;
+  // Deprecated. Do not use.
+  google.protobuf.Timestamp last_update_time = 2 [deprecated = true];
 
   // The progress of the most recent processing update in percentage, ie. 70.0%.
   double progress_percentage = 3;