Send feedback Class TranslateSpeechResult.TextTranslationResult.Builder (0.70.0) Stay organized with collections Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class TranslateSpeechResult . TextTranslationResult . Builder extends GeneratedMessageV3 . Builder<TranslateSpeechResult . TextTranslationResult . Builder > implements TranslateSpeechResult . TextTranslationResultOrBuilder
Text translation result.
Protobuf type google.cloud.mediatranslation.v1beta1.TranslateSpeechResult.TextTranslationResult
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 getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TranslateSpeechResult . TextTranslationResult . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides build()
public TranslateSpeechResult . TextTranslationResult build ()
buildPartial()
public TranslateSpeechResult . TextTranslationResult buildPartial ()
clear()
public TranslateSpeechResult . TextTranslationResult . Builder clear ()
Overrides clearField(Descriptors.FieldDescriptor field)
public TranslateSpeechResult . TextTranslationResult . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides clearIsFinal()
public TranslateSpeechResult . TextTranslationResult . Builder clearIsFinal ()
Output only. If false
, this TranslateSpeechResult
represents an interim result that may change. If true
, this is the final time the translation service will return this particular TranslateSpeechResult
, the 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];
clearOneof(Descriptors.OneofDescriptor oneof)
public TranslateSpeechResult . TextTranslationResult . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides clearTranslation()
public TranslateSpeechResult . TextTranslationResult . Builder clearTranslation ()
Output only. The translated sentence.
string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
clone()
public TranslateSpeechResult . TextTranslationResult . Builder clone ()
Overrides getDefaultInstanceForType()
public TranslateSpeechResult . TextTranslationResult getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides getIsFinal()
public boolean getIsFinal ()
Output only. If false
, this TranslateSpeechResult
represents an interim result that may change. If true
, this is the final time the translation service will return this particular TranslateSpeechResult
, the 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];
Returns Type Description boolean
The isFinal.
getTranslation()
public String getTranslation ()
Output only. The translated sentence.
string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns Type Description String
The translation.
getTranslationBytes()
public ByteString getTranslationBytes ()
Output only. The translated sentence.
string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns Type Description ByteString
The bytes for translation.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides isInitialized()
public final boolean isInitialized ()
Overrides mergeFrom(TranslateSpeechResult.TextTranslationResult other)
public TranslateSpeechResult . TextTranslationResult . Builder mergeFrom ( TranslateSpeechResult . TextTranslationResult other )
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TranslateSpeechResult . TextTranslationResult . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides mergeFrom(Message other)
public TranslateSpeechResult . TextTranslationResult . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides mergeUnknownFields(UnknownFieldSet unknownFields)
public final TranslateSpeechResult . TextTranslationResult . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides setField(Descriptors.FieldDescriptor field, Object value)
public TranslateSpeechResult . TextTranslationResult . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides setIsFinal(boolean value)
public TranslateSpeechResult . TextTranslationResult . Builder setIsFinal ( boolean value )
Output only. If false
, this TranslateSpeechResult
represents an interim result that may change. If true
, this is the final time the translation service will return this particular TranslateSpeechResult
, the 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];
Parameter Name Description value
boolean
The isFinal to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TranslateSpeechResult . TextTranslationResult . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides setTranslation(String value)
public TranslateSpeechResult . TextTranslationResult . Builder setTranslation ( String value )
Output only. The translated sentence.
string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter Name Description value
String
The translation to set.
setTranslationBytes(ByteString value)
public TranslateSpeechResult . TextTranslationResult . Builder setTranslationBytes ( ByteString value )
Output only. The translated sentence.
string translation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter Name Description value
ByteString
The bytes for translation to set.
setUnknownFields(UnknownFieldSet unknownFields)
public final TranslateSpeechResult . TextTranslationResult . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-12 UTC.
Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-12 UTC."],[],[]]