public static final class StreamingTranslateSpeechResult.TextTranslationResult.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechResult.TextTranslationResult.Builder> implements StreamingTranslateSpeechResult.TextTranslationResultOrBuilder
Text translation result.Protobuf type
google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResultgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechResult.TextTranslationResult.Builder>public StreamingTranslateSpeechResult.TextTranslationResult.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechResult.TextTranslationResult.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechResult.TextTranslationResult.Builder>public StreamingTranslateSpeechResult.TextTranslationResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StreamingTranslateSpeechResult.TextTranslationResult build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StreamingTranslateSpeechResult.TextTranslationResult buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StreamingTranslateSpeechResult.TextTranslationResult.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechResult.TextTranslationResult.Builder>public StreamingTranslateSpeechResult.TextTranslationResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechResult.TextTranslationResult.Builder>public StreamingTranslateSpeechResult.TextTranslationResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechResult.TextTranslationResult.Builder>public StreamingTranslateSpeechResult.TextTranslationResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechResult.TextTranslationResult.Builder>public StreamingTranslateSpeechResult.TextTranslationResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechResult.TextTranslationResult.Builder>public StreamingTranslateSpeechResult.TextTranslationResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechResult.TextTranslationResult.Builder>public StreamingTranslateSpeechResult.TextTranslationResult.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingTranslateSpeechResult.TextTranslationResult.Builder>public StreamingTranslateSpeechResult.TextTranslationResult.Builder mergeFrom(StreamingTranslateSpeechResult.TextTranslationResult other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechResult.TextTranslationResult.Builder>public StreamingTranslateSpeechResult.TextTranslationResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingTranslateSpeechResult.TextTranslationResult.Builder>IOExceptionpublic String getTranslation()
Output only. The translated sentence.
string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getTranslation in interface StreamingTranslateSpeechResult.TextTranslationResultOrBuilderpublic com.google.protobuf.ByteString getTranslationBytes()
Output only. The translated sentence.
string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getTranslationBytes in interface StreamingTranslateSpeechResult.TextTranslationResultOrBuilderpublic StreamingTranslateSpeechResult.TextTranslationResult.Builder setTranslation(String value)
Output only. The translated sentence.
string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The translation to set.public StreamingTranslateSpeechResult.TextTranslationResult.Builder clearTranslation()
Output only. The translated sentence.
string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];public StreamingTranslateSpeechResult.TextTranslationResult.Builder setTranslationBytes(com.google.protobuf.ByteString value)
Output only. The translated sentence.
string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for translation to set.public boolean getIsFinal()
Output only. If `false`, this `StreamingTranslateSpeechResult` represents an interim result that may change. If `true`, this is the final time the translation service will return this particular `StreamingTranslateSpeechResult`, the streaming translator will not return any further hypotheses for this portion of the transcript and corresponding audio.
bool is_final = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getIsFinal in interface StreamingTranslateSpeechResult.TextTranslationResultOrBuilderpublic StreamingTranslateSpeechResult.TextTranslationResult.Builder setIsFinal(boolean value)
Output only. If `false`, this `StreamingTranslateSpeechResult` represents an interim result that may change. If `true`, this is the final time the translation service will return this particular `StreamingTranslateSpeechResult`, the streaming translator will not return any further hypotheses for this portion of the transcript and corresponding audio.
bool is_final = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The isFinal to set.public StreamingTranslateSpeechResult.TextTranslationResult.Builder clearIsFinal()
Output only. If `false`, this `StreamingTranslateSpeechResult` represents an interim result that may change. If `true`, this is the final time the translation service will return this particular `StreamingTranslateSpeechResult`, the streaming translator will not return any further hypotheses for this portion of the transcript and corresponding audio.
bool is_final = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];public final StreamingTranslateSpeechResult.TextTranslationResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechResult.TextTranslationResult.Builder>public final StreamingTranslateSpeechResult.TextTranslationResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechResult.TextTranslationResult.Builder>Copyright © 2022 Google LLC. All rights reserved.