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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
public StreamingTranslateSpeechResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public StreamingTranslateSpeechResult build()
public StreamingTranslateSpeechResult buildPartial()
public StreamingTranslateSpeechResult.Builder clear()
Overrides
public StreamingTranslateSpeechResult.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public StreamingTranslateSpeechResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public StreamingTranslateSpeechResult.Builder clearResult()
clearTextTranslationResult()
public StreamingTranslateSpeechResult.Builder clearTextTranslationResult()
Text translation result.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
public StreamingTranslateSpeechResult.Builder clone()
Overrides
public StreamingTranslateSpeechResult getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public StreamingTranslateSpeechResult.ResultCase getResultCase()
getTextTranslationResult()
public StreamingTranslateSpeechResult.TextTranslationResult getTextTranslationResult()
Text translation result.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
getTextTranslationResultBuilder()
public StreamingTranslateSpeechResult.TextTranslationResult.Builder getTextTranslationResultBuilder()
Text translation result.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
getTextTranslationResultOrBuilder()
public StreamingTranslateSpeechResult.TextTranslationResultOrBuilder getTextTranslationResultOrBuilder()
Text translation result.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
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()
Overrides
public final boolean isInitialized()
Overrides
public StreamingTranslateSpeechResult.Builder mergeFrom(StreamingTranslateSpeechResult other)
public StreamingTranslateSpeechResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public StreamingTranslateSpeechResult.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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;
public final StreamingTranslateSpeechResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public StreamingTranslateSpeechResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public StreamingTranslateSpeechResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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;
public final StreamingTranslateSpeechResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides