Skip to content
This repository was archived by the owner on Dec 15, 2023. It is now read-only.

Commit 505ecb7

Browse files
yoshi-automationchingor13
authored andcommitted
fix(regen): update timeout configs, javadoc from protoc update (#62)
1 parent fcf390e commit 505ecb7

69 files changed

Lines changed: 2960 additions & 217 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ public static class Builder extends StubSettings.Builder<SpeechStubSettings, Bui
233233
.setInitialRetryDelay(Duration.ofMillis(100L))
234234
.setRetryDelayMultiplier(1.3)
235235
.setMaxRetryDelay(Duration.ofMillis(60000L))
236-
.setInitialRpcTimeout(Duration.ofMillis(20000L))
236+
.setInitialRpcTimeout(Duration.ofMillis(1000000L))
237237
.setRpcTimeoutMultiplier(1.0)
238-
.setMaxRpcTimeout(Duration.ofMillis(20000L))
239-
.setTotalTimeout(Duration.ofMillis(600000L))
238+
.setMaxRpcTimeout(Duration.ofMillis(1000000L))
239+
.setTotalTimeout(Duration.ofMillis(5000000L))
240240
.build();
241241
definitions.put("default", settings);
242242
RETRY_PARAM_DEFINITIONS = definitions.build();

‎proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java‎

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ private LongRunningRecognizeMetadata(com.google.protobuf.GeneratedMessageV3.Buil
4141

4242
private LongRunningRecognizeMetadata() {}
4343

44+
@java.lang.Override
45+
@SuppressWarnings({"unused"})
46+
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
47+
return new LongRunningRecognizeMetadata();
48+
}
49+
4450
@java.lang.Override
4551
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
4652
return this.unknownFields;
@@ -54,7 +60,6 @@ private LongRunningRecognizeMetadata(
5460
if (extensionRegistry == null) {
5561
throw new java.lang.NullPointerException();
5662
}
57-
int mutable_bitField0_ = 0;
5863
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5964
com.google.protobuf.UnknownFieldSet.newBuilder();
6065
try {
@@ -145,6 +150,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
145150
* </pre>
146151
*
147152
* <code>int32 progress_percent = 1;</code>
153+
*
154+
* @return The progressPercent.
148155
*/
149156
public int getProgressPercent() {
150157
return progressPercent_;
@@ -160,6 +167,8 @@ public int getProgressPercent() {
160167
* </pre>
161168
*
162169
* <code>.google.protobuf.Timestamp start_time = 2;</code>
170+
*
171+
* @return Whether the startTime field is set.
163172
*/
164173
public boolean hasStartTime() {
165174
return startTime_ != null;
@@ -172,6 +181,8 @@ public boolean hasStartTime() {
172181
* </pre>
173182
*
174183
* <code>.google.protobuf.Timestamp start_time = 2;</code>
184+
*
185+
* @return The startTime.
175186
*/
176187
public com.google.protobuf.Timestamp getStartTime() {
177188
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
@@ -199,6 +210,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
199210
* </pre>
200211
*
201212
* <code>.google.protobuf.Timestamp last_update_time = 3;</code>
213+
*
214+
* @return Whether the lastUpdateTime field is set.
202215
*/
203216
public boolean hasLastUpdateTime() {
204217
return lastUpdateTime_ != null;
@@ -211,6 +224,8 @@ public boolean hasLastUpdateTime() {
211224
* </pre>
212225
*
213226
* <code>.google.protobuf.Timestamp last_update_time = 3;</code>
227+
*
228+
* @return The lastUpdateTime.
214229
*/
215230
public com.google.protobuf.Timestamp getLastUpdateTime() {
216231
return lastUpdateTime_ == null
@@ -616,6 +631,8 @@ public Builder mergeFrom(
616631
* </pre>
617632
*
618633
* <code>int32 progress_percent = 1;</code>
634+
*
635+
* @return The progressPercent.
619636
*/
620637
public int getProgressPercent() {
621638
return progressPercent_;
@@ -629,6 +646,9 @@ public int getProgressPercent() {
629646
* </pre>
630647
*
631648
* <code>int32 progress_percent = 1;</code>
649+
*
650+
* @param value The progressPercent to set.
651+
* @return This builder for chaining.
632652
*/
633653
public Builder setProgressPercent(int value) {
634654

@@ -645,6 +665,8 @@ public Builder setProgressPercent(int value) {
645665
* </pre>
646666
*
647667
* <code>int32 progress_percent = 1;</code>
668+
*
669+
* @return This builder for chaining.
648670
*/
649671
public Builder clearProgressPercent() {
650672

@@ -667,6 +689,8 @@ public Builder clearProgressPercent() {
667689
* </pre>
668690
*
669691
* <code>.google.protobuf.Timestamp start_time = 2;</code>
692+
*
693+
* @return Whether the startTime field is set.
670694
*/
671695
public boolean hasStartTime() {
672696
return startTimeBuilder_ != null || startTime_ != null;
@@ -679,6 +703,8 @@ public boolean hasStartTime() {
679703
* </pre>
680704
*
681705
* <code>.google.protobuf.Timestamp start_time = 2;</code>
706+
*
707+
* @return The startTime.
682708
*/
683709
public com.google.protobuf.Timestamp getStartTime() {
684710
if (startTimeBuilder_ == null) {
@@ -842,6 +868,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
842868
* </pre>
843869
*
844870
* <code>.google.protobuf.Timestamp last_update_time = 3;</code>
871+
*
872+
* @return Whether the lastUpdateTime field is set.
845873
*/
846874
public boolean hasLastUpdateTime() {
847875
return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null;
@@ -854,6 +882,8 @@ public boolean hasLastUpdateTime() {
854882
* </pre>
855883
*
856884
* <code>.google.protobuf.Timestamp last_update_time = 3;</code>
885+
*
886+
* @return The lastUpdateTime.
857887
*/
858888
public com.google.protobuf.Timestamp getLastUpdateTime() {
859889
if (lastUpdateTimeBuilder_ == null) {

‎proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public interface LongRunningRecognizeMetadataOrBuilder
3232
* </pre>
3333
*
3434
* <code>int32 progress_percent = 1;</code>
35+
*
36+
* @return The progressPercent.
3537
*/
3638
int getProgressPercent();
3739

@@ -43,6 +45,8 @@ public interface LongRunningRecognizeMetadataOrBuilder
4345
* </pre>
4446
*
4547
* <code>.google.protobuf.Timestamp start_time = 2;</code>
48+
*
49+
* @return Whether the startTime field is set.
4650
*/
4751
boolean hasStartTime();
4852
/**
@@ -53,6 +57,8 @@ public interface LongRunningRecognizeMetadataOrBuilder
5357
* </pre>
5458
*
5559
* <code>.google.protobuf.Timestamp start_time = 2;</code>
60+
*
61+
* @return The startTime.
5662
*/
5763
com.google.protobuf.Timestamp getStartTime();
5864
/**
@@ -74,6 +80,8 @@ public interface LongRunningRecognizeMetadataOrBuilder
7480
* </pre>
7581
*
7682
* <code>.google.protobuf.Timestamp last_update_time = 3;</code>
83+
*
84+
* @return Whether the lastUpdateTime field is set.
7785
*/
7886
boolean hasLastUpdateTime();
7987
/**
@@ -84,6 +92,8 @@ public interface LongRunningRecognizeMetadataOrBuilder
8492
* </pre>
8593
*
8694
* <code>.google.protobuf.Timestamp last_update_time = 3;</code>
95+
*
96+
* @return The lastUpdateTime.
8797
*/
8898
com.google.protobuf.Timestamp getLastUpdateTime();
8999
/**

‎proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java‎

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ private LongRunningRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Build
4040

4141
private LongRunningRecognizeRequest() {}
4242

43+
@java.lang.Override
44+
@SuppressWarnings({"unused"})
45+
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
46+
return new LongRunningRecognizeRequest();
47+
}
48+
4349
@java.lang.Override
4450
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
4551
return this.unknownFields;
@@ -53,7 +59,6 @@ private LongRunningRecognizeRequest(
5359
if (extensionRegistry == null) {
5460
throw new java.lang.NullPointerException();
5561
}
56-
int mutable_bitField0_ = 0;
5762
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5863
com.google.protobuf.UnknownFieldSet.newBuilder();
5964
try {
@@ -143,6 +148,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
143148
* <code>
144149
* .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
145150
* </code>
151+
*
152+
* @return Whether the config field is set.
146153
*/
147154
public boolean hasConfig() {
148155
return config_ != null;
@@ -158,6 +165,8 @@ public boolean hasConfig() {
158165
* <code>
159166
* .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
160167
* </code>
168+
*
169+
* @return The config.
161170
*/
162171
public com.google.cloud.speech.v1.RecognitionConfig getConfig() {
163172
return config_ == null
@@ -192,6 +201,8 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
192201
* <code>
193202
* .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
194203
* </code>
204+
*
205+
* @return Whether the audio field is set.
195206
*/
196207
public boolean hasAudio() {
197208
return audio_ != null;
@@ -206,6 +217,8 @@ public boolean hasAudio() {
206217
* <code>
207218
* .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
208219
* </code>
220+
*
221+
* @return The audio.
209222
*/
210223
public com.google.cloud.speech.v1.RecognitionAudio getAudio() {
211224
return audio_ == null
@@ -604,6 +617,8 @@ public Builder mergeFrom(
604617
* <code>
605618
* .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
606619
* </code>
620+
*
621+
* @return Whether the config field is set.
607622
*/
608623
public boolean hasConfig() {
609624
return configBuilder_ != null || config_ != null;
@@ -619,6 +634,8 @@ public boolean hasConfig() {
619634
* <code>
620635
* .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
621636
* </code>
637+
*
638+
* @return The config.
622639
*/
623640
public com.google.cloud.speech.v1.RecognitionConfig getConfig() {
624641
if (configBuilder_ == null) {
@@ -811,6 +828,8 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
811828
* <code>
812829
* .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
813830
* </code>
831+
*
832+
* @return Whether the audio field is set.
814833
*/
815834
public boolean hasAudio() {
816835
return audioBuilder_ != null || audio_ != null;
@@ -825,6 +844,8 @@ public boolean hasAudio() {
825844
* <code>
826845
* .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
827846
* </code>
847+
*
848+
* @return The audio.
828849
*/
829850
public com.google.cloud.speech.v1.RecognitionAudio getAudio() {
830851
if (audioBuilder_ == null) {

‎proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public interface LongRunningRecognizeRequestOrBuilder
3434
* <code>
3535
* .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
3636
* </code>
37+
*
38+
* @return Whether the config field is set.
3739
*/
3840
boolean hasConfig();
3941
/**
@@ -47,6 +49,8 @@ public interface LongRunningRecognizeRequestOrBuilder
4749
* <code>
4850
* .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
4951
* </code>
52+
*
53+
* @return The config.
5054
*/
5155
com.google.cloud.speech.v1.RecognitionConfig getConfig();
5256
/**
@@ -73,6 +77,8 @@ public interface LongRunningRecognizeRequestOrBuilder
7377
* <code>
7478
* .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
7579
* </code>
80+
*
81+
* @return Whether the audio field is set.
7682
*/
7783
boolean hasAudio();
7884
/**
@@ -85,6 +91,8 @@ public interface LongRunningRecognizeRequestOrBuilder
8591
* <code>
8692
* .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
8793
* </code>
94+
*
95+
* @return The audio.
8896
*/
8997
com.google.cloud.speech.v1.RecognitionAudio getAudio();
9098
/**

‎proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ private LongRunningRecognizeResponse() {
4545
results_ = java.util.Collections.emptyList();
4646
}
4747

48+
@java.lang.Override
49+
@SuppressWarnings({"unused"})
50+
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
51+
return new LongRunningRecognizeResponse();
52+
}
53+
4854
@java.lang.Override
4955
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
5056
return this.unknownFields;

0 commit comments

Comments
 (0)