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

Commit

Permalink
fix(regen): update timeout configs, javadoc from protoc update (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and chingor13 committed Dec 19, 2019
1 parent fcf390e commit 505ecb7
Show file tree
Hide file tree
Showing 69 changed files with 2,960 additions and 217 deletions.
Expand Up @@ -233,10 +233,10 @@ public static class Builder extends StubSettings.Builder<SpeechStubSettings, Bui
.setInitialRetryDelay(Duration.ofMillis(100L))
.setRetryDelayMultiplier(1.3)
.setMaxRetryDelay(Duration.ofMillis(60000L))
.setInitialRpcTimeout(Duration.ofMillis(20000L))
.setInitialRpcTimeout(Duration.ofMillis(1000000L))
.setRpcTimeoutMultiplier(1.0)
.setMaxRpcTimeout(Duration.ofMillis(20000L))
.setTotalTimeout(Duration.ofMillis(600000L))
.setMaxRpcTimeout(Duration.ofMillis(1000000L))
.setTotalTimeout(Duration.ofMillis(5000000L))
.build();
definitions.put("default", settings);
RETRY_PARAM_DEFINITIONS = definitions.build();
Expand Down
Expand Up @@ -41,6 +41,12 @@ private LongRunningRecognizeMetadata(com.google.protobuf.GeneratedMessageV3.Buil

private LongRunningRecognizeMetadata() {}

@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new LongRunningRecognizeMetadata();
}

@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
Expand All @@ -54,7 +60,6 @@ private LongRunningRecognizeMetadata(
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
Expand Down Expand Up @@ -145,6 +150,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* </pre>
*
* <code>int32 progress_percent = 1;</code>
*
* @return The progressPercent.
*/
public int getProgressPercent() {
return progressPercent_;
Expand All @@ -160,6 +167,8 @@ public int getProgressPercent() {
* </pre>
*
* <code>.google.protobuf.Timestamp start_time = 2;</code>
*
* @return Whether the startTime field is set.
*/
public boolean hasStartTime() {
return startTime_ != null;
Expand All @@ -172,6 +181,8 @@ public boolean hasStartTime() {
* </pre>
*
* <code>.google.protobuf.Timestamp start_time = 2;</code>
*
* @return The startTime.
*/
public com.google.protobuf.Timestamp getStartTime() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
Expand Down Expand Up @@ -199,6 +210,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
* </pre>
*
* <code>.google.protobuf.Timestamp last_update_time = 3;</code>
*
* @return Whether the lastUpdateTime field is set.
*/
public boolean hasLastUpdateTime() {
return lastUpdateTime_ != null;
Expand All @@ -211,6 +224,8 @@ public boolean hasLastUpdateTime() {
* </pre>
*
* <code>.google.protobuf.Timestamp last_update_time = 3;</code>
*
* @return The lastUpdateTime.
*/
public com.google.protobuf.Timestamp getLastUpdateTime() {
return lastUpdateTime_ == null
Expand Down Expand Up @@ -616,6 +631,8 @@ public Builder mergeFrom(
* </pre>
*
* <code>int32 progress_percent = 1;</code>
*
* @return The progressPercent.
*/
public int getProgressPercent() {
return progressPercent_;
Expand All @@ -629,6 +646,9 @@ public int getProgressPercent() {
* </pre>
*
* <code>int32 progress_percent = 1;</code>
*
* @param value The progressPercent to set.
* @return This builder for chaining.
*/
public Builder setProgressPercent(int value) {

Expand All @@ -645,6 +665,8 @@ public Builder setProgressPercent(int value) {
* </pre>
*
* <code>int32 progress_percent = 1;</code>
*
* @return This builder for chaining.
*/
public Builder clearProgressPercent() {

Expand All @@ -667,6 +689,8 @@ public Builder clearProgressPercent() {
* </pre>
*
* <code>.google.protobuf.Timestamp start_time = 2;</code>
*
* @return Whether the startTime field is set.
*/
public boolean hasStartTime() {
return startTimeBuilder_ != null || startTime_ != null;
Expand All @@ -679,6 +703,8 @@ public boolean hasStartTime() {
* </pre>
*
* <code>.google.protobuf.Timestamp start_time = 2;</code>
*
* @return The startTime.
*/
public com.google.protobuf.Timestamp getStartTime() {
if (startTimeBuilder_ == null) {
Expand Down Expand Up @@ -842,6 +868,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
* </pre>
*
* <code>.google.protobuf.Timestamp last_update_time = 3;</code>
*
* @return Whether the lastUpdateTime field is set.
*/
public boolean hasLastUpdateTime() {
return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null;
Expand All @@ -854,6 +882,8 @@ public boolean hasLastUpdateTime() {
* </pre>
*
* <code>.google.protobuf.Timestamp last_update_time = 3;</code>
*
* @return The lastUpdateTime.
*/
public com.google.protobuf.Timestamp getLastUpdateTime() {
if (lastUpdateTimeBuilder_ == null) {
Expand Down
Expand Up @@ -32,6 +32,8 @@ public interface LongRunningRecognizeMetadataOrBuilder
* </pre>
*
* <code>int32 progress_percent = 1;</code>
*
* @return The progressPercent.
*/
int getProgressPercent();

Expand All @@ -43,6 +45,8 @@ public interface LongRunningRecognizeMetadataOrBuilder
* </pre>
*
* <code>.google.protobuf.Timestamp start_time = 2;</code>
*
* @return Whether the startTime field is set.
*/
boolean hasStartTime();
/**
Expand All @@ -53,6 +57,8 @@ public interface LongRunningRecognizeMetadataOrBuilder
* </pre>
*
* <code>.google.protobuf.Timestamp start_time = 2;</code>
*
* @return The startTime.
*/
com.google.protobuf.Timestamp getStartTime();
/**
Expand All @@ -74,6 +80,8 @@ public interface LongRunningRecognizeMetadataOrBuilder
* </pre>
*
* <code>.google.protobuf.Timestamp last_update_time = 3;</code>
*
* @return Whether the lastUpdateTime field is set.
*/
boolean hasLastUpdateTime();
/**
Expand All @@ -84,6 +92,8 @@ public interface LongRunningRecognizeMetadataOrBuilder
* </pre>
*
* <code>.google.protobuf.Timestamp last_update_time = 3;</code>
*
* @return The lastUpdateTime.
*/
com.google.protobuf.Timestamp getLastUpdateTime();
/**
Expand Down
Expand Up @@ -40,6 +40,12 @@ private LongRunningRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Build

private LongRunningRecognizeRequest() {}

@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new LongRunningRecognizeRequest();
}

@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
Expand All @@ -53,7 +59,6 @@ private LongRunningRecognizeRequest(
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
Expand Down Expand Up @@ -143,6 +148,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* <code>
* .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return Whether the config field is set.
*/
public boolean hasConfig() {
return config_ != null;
Expand All @@ -158,6 +165,8 @@ public boolean hasConfig() {
* <code>
* .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return The config.
*/
public com.google.cloud.speech.v1.RecognitionConfig getConfig() {
return config_ == null
Expand Down Expand Up @@ -192,6 +201,8 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
* <code>
* .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return Whether the audio field is set.
*/
public boolean hasAudio() {
return audio_ != null;
Expand All @@ -206,6 +217,8 @@ public boolean hasAudio() {
* <code>
* .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return The audio.
*/
public com.google.cloud.speech.v1.RecognitionAudio getAudio() {
return audio_ == null
Expand Down Expand Up @@ -604,6 +617,8 @@ public Builder mergeFrom(
* <code>
* .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return Whether the config field is set.
*/
public boolean hasConfig() {
return configBuilder_ != null || config_ != null;
Expand All @@ -619,6 +634,8 @@ public boolean hasConfig() {
* <code>
* .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return The config.
*/
public com.google.cloud.speech.v1.RecognitionConfig getConfig() {
if (configBuilder_ == null) {
Expand Down Expand Up @@ -811,6 +828,8 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
* <code>
* .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return Whether the audio field is set.
*/
public boolean hasAudio() {
return audioBuilder_ != null || audio_ != null;
Expand All @@ -825,6 +844,8 @@ public boolean hasAudio() {
* <code>
* .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return The audio.
*/
public com.google.cloud.speech.v1.RecognitionAudio getAudio() {
if (audioBuilder_ == null) {
Expand Down
Expand Up @@ -34,6 +34,8 @@ public interface LongRunningRecognizeRequestOrBuilder
* <code>
* .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return Whether the config field is set.
*/
boolean hasConfig();
/**
Expand All @@ -47,6 +49,8 @@ public interface LongRunningRecognizeRequestOrBuilder
* <code>
* .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return The config.
*/
com.google.cloud.speech.v1.RecognitionConfig getConfig();
/**
Expand All @@ -73,6 +77,8 @@ public interface LongRunningRecognizeRequestOrBuilder
* <code>
* .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return Whether the audio field is set.
*/
boolean hasAudio();
/**
Expand All @@ -85,6 +91,8 @@ public interface LongRunningRecognizeRequestOrBuilder
* <code>
* .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
* </code>
*
* @return The audio.
*/
com.google.cloud.speech.v1.RecognitionAudio getAudio();
/**
Expand Down
Expand Up @@ -45,6 +45,12 @@ private LongRunningRecognizeResponse() {
results_ = java.util.Collections.emptyList();
}

@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new LongRunningRecognizeResponse();
}

@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
Expand Down

0 comments on commit 505ecb7

Please sign in to comment.