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)
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.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
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)
Overrides
toBuilder()
public StreamingTranslateSpeechResult.TextTranslationResult.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides