Class StreamingTranslateSpeechResult

public final class StreamingTranslateSpeechResult extends GeneratedMessageV3 implements StreamingTranslateSpeechResultOrBuilder

A streaming speech translation result corresponding to a portion of the audio that is currently being processed.

Protobuf type google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > StreamingTranslateSpeechResult

Fields

TEXT_TRANSLATION_RESULT_FIELD_NUMBER

public static final int TEXT_TRANSLATION_RESULT_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstance()

public static StreamingTranslateSpeechResult getDefaultInstance()
Returns
TypeDescription
StreamingTranslateSpeechResult

getDefaultInstanceForType()

public StreamingTranslateSpeechResult getDefaultInstanceForType()
Returns
TypeDescription
StreamingTranslateSpeechResult

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getParserForType()

public Parser<StreamingTranslateSpeechResult> getParserForType()
Returns
TypeDescription
Parser<StreamingTranslateSpeechResult>
Overrides

getResultCase()

public StreamingTranslateSpeechResult.ResultCase getResultCase()
Returns
TypeDescription
StreamingTranslateSpeechResult.ResultCase

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTextTranslationResult()

public StreamingTranslateSpeechResult.TextTranslationResult getTextTranslationResult()

Text translation result.

.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;

Returns
TypeDescription
StreamingTranslateSpeechResult.TextTranslationResult

The textTranslationResult.

getTextTranslationResultOrBuilder()

public StreamingTranslateSpeechResult.TextTranslationResultOrBuilder getTextTranslationResultOrBuilder()

Text translation result.

.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;

Returns
TypeDescription
StreamingTranslateSpeechResult.TextTranslationResultOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasTextTranslationResult()

public boolean hasTextTranslationResult()

Text translation result.

.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;

Returns
TypeDescription
boolean

Whether the textTranslationResult field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilder()

public static StreamingTranslateSpeechResult.Builder newBuilder()
Returns
TypeDescription
StreamingTranslateSpeechResult.Builder

newBuilder(StreamingTranslateSpeechResult prototype)

public static StreamingTranslateSpeechResult.Builder newBuilder(StreamingTranslateSpeechResult prototype)
Parameter
NameDescription
prototypeStreamingTranslateSpeechResult
Returns
TypeDescription
StreamingTranslateSpeechResult.Builder

newBuilderForType()

public StreamingTranslateSpeechResult.Builder newBuilderForType()
Returns
TypeDescription
StreamingTranslateSpeechResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StreamingTranslateSpeechResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
StreamingTranslateSpeechResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

parseDelimitedFrom(InputStream input)

public static StreamingTranslateSpeechResult parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StreamingTranslateSpeechResult
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingTranslateSpeechResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingTranslateSpeechResult
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static StreamingTranslateSpeechResult parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
StreamingTranslateSpeechResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StreamingTranslateSpeechResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingTranslateSpeechResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StreamingTranslateSpeechResult parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
StreamingTranslateSpeechResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StreamingTranslateSpeechResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingTranslateSpeechResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StreamingTranslateSpeechResult parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
StreamingTranslateSpeechResult
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingTranslateSpeechResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingTranslateSpeechResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static StreamingTranslateSpeechResult parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StreamingTranslateSpeechResult
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingTranslateSpeechResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingTranslateSpeechResult
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static StreamingTranslateSpeechResult parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
StreamingTranslateSpeechResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StreamingTranslateSpeechResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingTranslateSpeechResult
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<StreamingTranslateSpeechResult> parser()
Returns
TypeDescription
Parser<StreamingTranslateSpeechResult>

toBuilder()

public StreamingTranslateSpeechResult.Builder toBuilder()
Returns
TypeDescription
StreamingTranslateSpeechResult.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException