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

Commit

Permalink
chore: regenerate with updated protoc (#69)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/bc5f29c9-de4e-484a-96d3-b4a4987109b1/targets

PiperOrigin-RevId: 313460921
Source-Link: googleapis/googleapis@c4e3701
  • Loading branch information
yoshi-automation committed Jun 3, 2020
1 parent 48e39cd commit e693ba5
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 3 deletions.
Expand Up @@ -141,6 +141,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return Whether the audioConfig field is set.
*/
@java.lang.Override
public boolean hasAudioConfig() {
return audioConfig_ != null;
}
Expand All @@ -157,6 +158,7 @@ public boolean hasAudioConfig() {
*
* @return The audioConfig.
*/
@java.lang.Override
public com.google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig getAudioConfig() {
return audioConfig_ == null
? com.google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig.getDefaultInstance()
Expand All @@ -173,6 +175,7 @@ public com.google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig getAudioC
* .google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig audio_config = 1 [(.google.api.field_behavior) = REQUIRED];
* </code>
*/
@java.lang.Override
public com.google.cloud.mediatranslation.v1beta1.TranslateSpeechConfigOrBuilder
getAudioConfigOrBuilder() {
return getAudioConfig();
Expand Down Expand Up @@ -203,6 +206,7 @@ public com.google.cloud.mediatranslation.v1beta1.TranslateSpeechConfig getAudioC
*
* @return The singleUtterance.
*/
@java.lang.Override
public boolean getSingleUtterance() {
return singleUtterance_;
}
Expand Down Expand Up @@ -798,6 +802,7 @@ public Builder clearAudioConfig() {
*
* @return The singleUtterance.
*/
@java.lang.Override
public boolean getSingleUtterance() {
return singleUtterance_;
}
Expand Down
Expand Up @@ -201,6 +201,7 @@ public StreamingRequestCase getStreamingRequestCase() {
*
* @return Whether the streamingConfig field is set.
*/
@java.lang.Override
public boolean hasStreamingConfig() {
return streamingRequestCase_ == 1;
}
Expand All @@ -219,6 +220,7 @@ public boolean hasStreamingConfig() {
*
* @return The streamingConfig.
*/
@java.lang.Override
public com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig
getStreamingConfig() {
if (streamingRequestCase_ == 1) {
Expand All @@ -241,6 +243,7 @@ public boolean hasStreamingConfig() {
* .google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig streaming_config = 1;
* </code>
*/
@java.lang.Override
public com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfigOrBuilder
getStreamingConfigOrBuilder() {
if (streamingRequestCase_ == 1) {
Expand Down Expand Up @@ -270,6 +273,7 @@ public boolean hasStreamingConfig() {
*
* @return The audioContent.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAudioContent() {
if (streamingRequestCase_ == 2) {
return (com.google.protobuf.ByteString) streamingRequest_;
Expand Down Expand Up @@ -705,6 +709,7 @@ public Builder clearStreamingRequest() {
*
* @return Whether the streamingConfig field is set.
*/
@java.lang.Override
public boolean hasStreamingConfig() {
return streamingRequestCase_ == 1;
}
Expand All @@ -723,6 +728,7 @@ public boolean hasStreamingConfig() {
*
* @return The streamingConfig.
*/
@java.lang.Override
public com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig
getStreamingConfig() {
if (streamingConfigBuilder_ == null) {
Expand Down Expand Up @@ -890,6 +896,7 @@ public Builder clearStreamingConfig() {
* .google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig streaming_config = 1;
* </code>
*/
@java.lang.Override
public com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfigOrBuilder
getStreamingConfigOrBuilder() {
if ((streamingRequestCase_ == 1) && (streamingConfigBuilder_ != null)) {
Expand Down
Expand Up @@ -266,6 +266,10 @@ public SpeechEventType findValueByNumber(int number) {
};

public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}

Expand Down Expand Up @@ -316,6 +320,7 @@ private SpeechEventType(int value) {
*
* @return Whether the error field is set.
*/
@java.lang.Override
public boolean hasError() {
return error_ != null;
}
Expand All @@ -331,6 +336,7 @@ public boolean hasError() {
*
* @return The error.
*/
@java.lang.Override
public com.google.rpc.Status getError() {
return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
}
Expand All @@ -344,6 +350,7 @@ public com.google.rpc.Status getError() {
*
* <code>.google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*/
@java.lang.Override
public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
return getError();
}
Expand All @@ -364,6 +371,7 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
*
* @return Whether the result field is set.
*/
@java.lang.Override
public boolean hasResult() {
return result_ != null;
}
Expand All @@ -381,6 +389,7 @@ public boolean hasResult() {
*
* @return The result.
*/
@java.lang.Override
public com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult getResult() {
return result_ == null
? com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult
Expand All @@ -399,6 +408,7 @@ public com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult
* .google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult result = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* </code>
*/
@java.lang.Override
public com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResultOrBuilder
getResultOrBuilder() {
return getResult();
Expand All @@ -419,6 +429,7 @@ public com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult
*
* @return The enum numeric value on the wire for speechEventType.
*/
@java.lang.Override
public int getSpeechEventTypeValue() {
return speechEventType_;
}
Expand All @@ -435,6 +446,7 @@ public int getSpeechEventTypeValue() {
*
* @return The speechEventType.
*/
@java.lang.Override
public com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType
getSpeechEventType() {
@SuppressWarnings("deprecation")
Expand Down Expand Up @@ -1265,6 +1277,7 @@ public Builder clearResult() {
*
* @return The enum numeric value on the wire for speechEventType.
*/
@java.lang.Override
public int getSpeechEventTypeValue() {
return speechEventType_;
}
Expand All @@ -1283,6 +1296,7 @@ public int getSpeechEventTypeValue() {
* @return This builder for chaining.
*/
public Builder setSpeechEventTypeValue(int value) {

speechEventType_ = value;
onChanged();
return this;
Expand All @@ -1300,6 +1314,7 @@ public Builder setSpeechEventTypeValue(int value) {
*
* @return The speechEventType.
*/
@java.lang.Override
public com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse
.SpeechEventType
getSpeechEventType() {
Expand Down
Expand Up @@ -341,6 +341,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The translation.
*/
@java.lang.Override
public java.lang.String getTranslation() {
java.lang.Object ref = translation_;
if (ref instanceof java.lang.String) {
Expand All @@ -363,6 +364,7 @@ public java.lang.String getTranslation() {
*
* @return The bytes for translation.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTranslationBytes() {
java.lang.Object ref = translation_;
if (ref instanceof java.lang.String) {
Expand Down Expand Up @@ -393,6 +395,7 @@ public com.google.protobuf.ByteString getTranslationBytes() {
*
* @return The isFinal.
*/
@java.lang.Override
public boolean getIsFinal() {
return isFinal_;
}
Expand All @@ -413,6 +416,7 @@ public boolean getIsFinal() {
*
* @return The detectedSourceLanguageCode.
*/
@java.lang.Override
public java.lang.String getDetectedSourceLanguageCode() {
java.lang.Object ref = detectedSourceLanguageCode_;
if (ref instanceof java.lang.String) {
Expand All @@ -438,6 +442,7 @@ public java.lang.String getDetectedSourceLanguageCode() {
*
* @return The bytes for detectedSourceLanguageCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDetectedSourceLanguageCodeBytes() {
java.lang.Object ref = detectedSourceLanguageCode_;
if (ref instanceof java.lang.String) {
Expand Down Expand Up @@ -987,6 +992,7 @@ public Builder setTranslationBytes(com.google.protobuf.ByteString value) {
*
* @return The isFinal.
*/
@java.lang.Override
public boolean getIsFinal() {
return isFinal_;
}
Expand Down Expand Up @@ -1280,6 +1286,7 @@ public ResultCase getResultCase() {
*
* @return Whether the textTranslationResult field is set.
*/
@java.lang.Override
public boolean hasTextTranslationResult() {
return resultCase_ == 1;
}
Expand All @@ -1296,6 +1303,7 @@ public boolean hasTextTranslationResult() {
*
* @return The textTranslationResult.
*/
@java.lang.Override
public com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult
.TextTranslationResult
getTextTranslationResult() {
Expand All @@ -1318,6 +1326,7 @@ public boolean hasTextTranslationResult() {
* .google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
* </code>
*/
@java.lang.Override
public com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult
.TextTranslationResultOrBuilder
getTextTranslationResultOrBuilder() {
Expand Down Expand Up @@ -1346,6 +1355,7 @@ public boolean hasTextTranslationResult() {
*
* @return The recognitionResult.
*/
@java.lang.Override
public java.lang.String getRecognitionResult() {
java.lang.Object ref = recognitionResult_;
if (ref instanceof java.lang.String) {
Expand All @@ -1371,6 +1381,7 @@ public java.lang.String getRecognitionResult() {
*
* @return The bytes for recognitionResult.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRecognitionResultBytes() {
java.lang.Object ref = recognitionResult_;
if (ref instanceof java.lang.String) {
Expand Down Expand Up @@ -1802,6 +1813,7 @@ public Builder clearResult() {
*
* @return Whether the textTranslationResult field is set.
*/
@java.lang.Override
public boolean hasTextTranslationResult() {
return resultCase_ == 1;
}
Expand All @@ -1818,6 +1830,7 @@ public boolean hasTextTranslationResult() {
*
* @return The textTranslationResult.
*/
@java.lang.Override
public com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult
.TextTranslationResult
getTextTranslationResult() {
Expand Down Expand Up @@ -1983,6 +1996,7 @@ public Builder clearTextTranslationResult() {
* .google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
* </code>
*/
@java.lang.Override
public com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult
.TextTranslationResultOrBuilder
getTextTranslationResultOrBuilder() {
Expand Down
Expand Up @@ -172,6 +172,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* @return The audioEncoding.
*/
@java.lang.Override
public java.lang.String getAudioEncoding() {
java.lang.Object ref = audioEncoding_;
if (ref instanceof java.lang.String) {
Expand All @@ -197,6 +198,7 @@ public java.lang.String getAudioEncoding() {
*
* @return The bytes for audioEncoding.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAudioEncodingBytes() {
java.lang.Object ref = audioEncoding_;
if (ref instanceof java.lang.String) {
Expand All @@ -222,6 +224,7 @@ public com.google.protobuf.ByteString getAudioEncodingBytes() {
*
* @return The sourceLanguageCode.
*/
@java.lang.Override
public java.lang.String getSourceLanguageCode() {
java.lang.Object ref = sourceLanguageCode_;
if (ref instanceof java.lang.String) {
Expand All @@ -244,6 +247,7 @@ public java.lang.String getSourceLanguageCode() {
*
* @return The bytes for sourceLanguageCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSourceLanguageCodeBytes() {
java.lang.Object ref = sourceLanguageCode_;
if (ref instanceof java.lang.String) {
Expand Down Expand Up @@ -358,6 +362,7 @@ public com.google.protobuf.ByteString getAlternativeSourceLanguageCodesBytes(int
*
* @return The targetLanguageCode.
*/
@java.lang.Override
public java.lang.String getTargetLanguageCode() {
java.lang.Object ref = targetLanguageCode_;
if (ref instanceof java.lang.String) {
Expand All @@ -380,6 +385,7 @@ public java.lang.String getTargetLanguageCode() {
*
* @return The bytes for targetLanguageCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTargetLanguageCodeBytes() {
java.lang.Object ref = targetLanguageCode_;
if (ref instanceof java.lang.String) {
Expand Down Expand Up @@ -409,6 +415,7 @@ public com.google.protobuf.ByteString getTargetLanguageCodeBytes() {
*
* @return The sampleRateHertz.
*/
@java.lang.Override
public int getSampleRateHertz() {
return sampleRateHertz_;
}
Expand All @@ -426,6 +433,7 @@ public int getSampleRateHertz() {
*
* @return The model.
*/
@java.lang.Override
public java.lang.String getModel() {
java.lang.Object ref = model_;
if (ref instanceof java.lang.String) {
Expand All @@ -448,6 +456,7 @@ public java.lang.String getModel() {
*
* @return The bytes for model.
*/
@java.lang.Override
public com.google.protobuf.ByteString getModelBytes() {
java.lang.Object ref = model_;
if (ref instanceof java.lang.String) {
Expand Down Expand Up @@ -1468,6 +1477,7 @@ public Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value)
*
* @return The sampleRateHertz.
*/
@java.lang.Override
public int getSampleRateHertz() {
return sampleRateHertz_;
}
Expand Down

0 comments on commit e693ba5

Please sign in to comment.