public static final class StreamingTranslateSpeechResult.Builder extends GeneratedMessageV3.Builder<StreamingTranslateSpeechResult.Builder> implements StreamingTranslateSpeechResultOrBuilder
A streaming speech translation result corresponding to a portion of the audio
that is currently being processed.
Protobuf type google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public StreamingTranslateSpeechResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public StreamingTranslateSpeechResult build()
Returns
public StreamingTranslateSpeechResult buildPartial()
Returns
public StreamingTranslateSpeechResult.Builder clear()
Returns
Overrides
public StreamingTranslateSpeechResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public StreamingTranslateSpeechResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public StreamingTranslateSpeechResult.Builder clearResult()
Returns
clearTextTranslationResult()
public StreamingTranslateSpeechResult.Builder clearTextTranslationResult()
Text translation result.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
Returns
public StreamingTranslateSpeechResult.Builder clone()
Returns
Overrides
public StreamingTranslateSpeechResult getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public StreamingTranslateSpeechResult.ResultCase getResultCase()
Returns
getTextTranslationResult()
public StreamingTranslateSpeechResult.TextTranslationResult getTextTranslationResult()
Text translation result.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
Returns
getTextTranslationResultBuilder()
public StreamingTranslateSpeechResult.TextTranslationResult.Builder getTextTranslationResultBuilder()
Text translation result.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
Returns
getTextTranslationResultOrBuilder()
public StreamingTranslateSpeechResult.TextTranslationResultOrBuilder getTextTranslationResultOrBuilder()
Text translation result.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
Returns
hasTextTranslationResult()
public boolean hasTextTranslationResult()
Text translation result.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
Returns
Type | Description |
boolean | Whether the textTranslationResult field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public StreamingTranslateSpeechResult.Builder mergeFrom(StreamingTranslateSpeechResult other)
Parameter
Returns
public StreamingTranslateSpeechResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public StreamingTranslateSpeechResult.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeTextTranslationResult(StreamingTranslateSpeechResult.TextTranslationResult value)
public StreamingTranslateSpeechResult.Builder mergeTextTranslationResult(StreamingTranslateSpeechResult.TextTranslationResult value)
Text translation result.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
Parameter
Returns
public final StreamingTranslateSpeechResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public StreamingTranslateSpeechResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public StreamingTranslateSpeechResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setTextTranslationResult(StreamingTranslateSpeechResult.TextTranslationResult value)
public StreamingTranslateSpeechResult.Builder setTextTranslationResult(StreamingTranslateSpeechResult.TextTranslationResult value)
Text translation result.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
Parameter
Returns
setTextTranslationResult(StreamingTranslateSpeechResult.TextTranslationResult.Builder builderForValue)
public StreamingTranslateSpeechResult.Builder setTextTranslationResult(StreamingTranslateSpeechResult.TextTranslationResult.Builder builderForValue)
Text translation result.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
Parameter
Returns
public final StreamingTranslateSpeechResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides