public static final class StreamingTranslateSpeechResult.TextTranslationResult extends GeneratedMessageV3 implements StreamingTranslateSpeechResult.TextTranslationResultOrBuilder
Text translation result.
Protobuf type
google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult
Static Fields
IS_FINAL_FIELD_NUMBER
public static final int IS_FINAL_FIELD_NUMBER
Field Value
TRANSLATION_FIELD_NUMBER
public static final int TRANSLATION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static StreamingTranslateSpeechResult.TextTranslationResult getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static StreamingTranslateSpeechResult.TextTranslationResult.Builder newBuilder()
Returns
newBuilder(StreamingTranslateSpeechResult.TextTranslationResult prototype)
public static StreamingTranslateSpeechResult.TextTranslationResult.Builder newBuilder(StreamingTranslateSpeechResult.TextTranslationResult prototype)
Parameter
Returns
parseDelimitedFrom(InputStream input)
public static StreamingTranslateSpeechResult.TextTranslationResult parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamingTranslateSpeechResult.TextTranslationResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static StreamingTranslateSpeechResult.TextTranslationResult parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static StreamingTranslateSpeechResult.TextTranslationResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static StreamingTranslateSpeechResult.TextTranslationResult parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static StreamingTranslateSpeechResult.TextTranslationResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static StreamingTranslateSpeechResult.TextTranslationResult parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamingTranslateSpeechResult.TextTranslationResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static StreamingTranslateSpeechResult.TextTranslationResult parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamingTranslateSpeechResult.TextTranslationResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static StreamingTranslateSpeechResult.TextTranslationResult parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static StreamingTranslateSpeechResult.TextTranslationResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<StreamingTranslateSpeechResult.TextTranslationResult> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public StreamingTranslateSpeechResult.TextTranslationResult getDefaultInstanceForType()
Returns
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
getParserForType()
public Parser<StreamingTranslateSpeechResult.TextTranslationResult> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
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.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public StreamingTranslateSpeechResult.TextTranslationResult.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected StreamingTranslateSpeechResult.TextTranslationResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public StreamingTranslateSpeechResult.TextTranslationResult.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions