Class StreamingTranslateSpeechResult.TextTranslationResult (0.73.0)
Version 0.73.0keyboard_arrow_down
public static final class StreamingTranslateSpeechResult . TextTranslationResult extends GeneratedMessageV3 implements StreamingTranslateSpeechResult . TextTranslationResultOrBuilder
Text translation result.
Protobuf type
google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
IS_FINAL_FIELD_NUMBER
public static final int IS_FINAL_FIELD_NUMBER
Field Value
Type
Description
int
TRANSLATION_FIELD_NUMBER
public static final int TRANSLATION_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static StreamingTranslateSpeechResult . TextTranslationResult getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static StreamingTranslateSpeechResult . TextTranslationResult . Builder newBuilder ()
newBuilder(StreamingTranslateSpeechResult.TextTranslationResult prototype)
public static StreamingTranslateSpeechResult . TextTranslationResult . Builder newBuilder ( StreamingTranslateSpeechResult . TextTranslationResult prototype )
parseDelimitedFrom(InputStream input)
public static StreamingTranslateSpeechResult . TextTranslationResult parseDelimitedFrom ( InputStream input )
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamingTranslateSpeechResult . TextTranslationResult parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static StreamingTranslateSpeechResult . TextTranslationResult parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static StreamingTranslateSpeechResult . TextTranslationResult parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static StreamingTranslateSpeechResult . TextTranslationResult parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static StreamingTranslateSpeechResult . TextTranslationResult parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
parseFrom(CodedInputStream input)
public static StreamingTranslateSpeechResult . TextTranslationResult parseFrom ( CodedInputStream input )
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamingTranslateSpeechResult . TextTranslationResult parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(InputStream input)
public static StreamingTranslateSpeechResult . TextTranslationResult parseFrom ( InputStream input )
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamingTranslateSpeechResult . TextTranslationResult parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static StreamingTranslateSpeechResult . TextTranslationResult parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static StreamingTranslateSpeechResult . TextTranslationResult parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<StreamingTranslateSpeechResult . TextTranslationResult > parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public StreamingTranslateSpeechResult . TextTranslationResult getDefaultInstanceForType ()
getIsFinal()
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];
Returns
Type
Description
boolean
The isFinal.
getParserForType()
public Parser<StreamingTranslateSpeechResult . TextTranslationResult > getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
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.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public StreamingTranslateSpeechResult . TextTranslationResult . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected StreamingTranslateSpeechResult . TextTranslationResult . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public StreamingTranslateSpeechResult . TextTranslationResult . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
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-10-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]