Class StreamingTranslateSpeechResult.Builder (0.50.0)

public static final class StreamingTranslateSpeechResult.Builder extends GeneratedMessageV3.Builder<StreamingTranslateSpeechResult.Builder> 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StreamingTranslateSpeechResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StreamingTranslateSpeechResult.Builder
Overrides

build()

public StreamingTranslateSpeechResult build()
Returns
Type Description
StreamingTranslateSpeechResult

buildPartial()

public StreamingTranslateSpeechResult buildPartial()
Returns
Type Description
StreamingTranslateSpeechResult

clear()

public StreamingTranslateSpeechResult.Builder clear()
Returns
Type Description
StreamingTranslateSpeechResult.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public StreamingTranslateSpeechResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StreamingTranslateSpeechResult.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StreamingTranslateSpeechResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StreamingTranslateSpeechResult.Builder
Overrides

clearResult()

public StreamingTranslateSpeechResult.Builder clearResult()
Returns
Type Description
StreamingTranslateSpeechResult.Builder

clearTextTranslationResult()

public StreamingTranslateSpeechResult.Builder clearTextTranslationResult()

Text translation result.

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

Returns
Type Description
StreamingTranslateSpeechResult.Builder

clone()

public StreamingTranslateSpeechResult.Builder clone()
Returns
Type Description
StreamingTranslateSpeechResult.Builder
Overrides

getDefaultInstanceForType()

public StreamingTranslateSpeechResult getDefaultInstanceForType()
Returns
Type Description
StreamingTranslateSpeechResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getResultCase()

public StreamingTranslateSpeechResult.ResultCase getResultCase()
Returns
Type Description
StreamingTranslateSpeechResult.ResultCase

getTextTranslationResult()

public StreamingTranslateSpeechResult.TextTranslationResult getTextTranslationResult()

Text translation result.

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

Returns
Type Description
StreamingTranslateSpeechResult.TextTranslationResult

The textTranslationResult.

getTextTranslationResultBuilder()

public StreamingTranslateSpeechResult.TextTranslationResult.Builder getTextTranslationResultBuilder()

Text translation result.

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

Returns
Type Description
StreamingTranslateSpeechResult.TextTranslationResult.Builder

getTextTranslationResultOrBuilder()

public StreamingTranslateSpeechResult.TextTranslationResultOrBuilder getTextTranslationResultOrBuilder()

Text translation result.

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

Returns
Type Description
StreamingTranslateSpeechResult.TextTranslationResultOrBuilder

hasTextTranslationResult()

public boolean hasTextTranslationResult()

Text translation result.

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

Returns
Type Description
boolean

Whether the textTranslationResult field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StreamingTranslateSpeechResult other)

public StreamingTranslateSpeechResult.Builder mergeFrom(StreamingTranslateSpeechResult other)
Parameter
Name Description
other StreamingTranslateSpeechResult
Returns
Type Description
StreamingTranslateSpeechResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StreamingTranslateSpeechResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingTranslateSpeechResult.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StreamingTranslateSpeechResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StreamingTranslateSpeechResult.Builder
Overrides

mergeTextTranslationResult(StreamingTranslateSpeechResult.TextTranslationResult value)

public StreamingTranslateSpeechResult.Builder mergeTextTranslationResult(StreamingTranslateSpeechResult.TextTranslationResult value)

Text translation result.

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

Parameter
Name Description
value StreamingTranslateSpeechResult.TextTranslationResult
Returns
Type Description
StreamingTranslateSpeechResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamingTranslateSpeechResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamingTranslateSpeechResult.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public StreamingTranslateSpeechResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StreamingTranslateSpeechResult.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StreamingTranslateSpeechResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StreamingTranslateSpeechResult.Builder
Overrides

setTextTranslationResult(StreamingTranslateSpeechResult.TextTranslationResult value)

public StreamingTranslateSpeechResult.Builder setTextTranslationResult(StreamingTranslateSpeechResult.TextTranslationResult value)

Text translation result.

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

Parameter
Name Description
value StreamingTranslateSpeechResult.TextTranslationResult
Returns
Type Description
StreamingTranslateSpeechResult.Builder

setTextTranslationResult(StreamingTranslateSpeechResult.TextTranslationResult.Builder builderForValue)

public StreamingTranslateSpeechResult.Builder setTextTranslationResult(StreamingTranslateSpeechResult.TextTranslationResult.Builder builderForValue)

Text translation result.

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

Parameter
Name Description
builderForValue StreamingTranslateSpeechResult.TextTranslationResult.Builder
Returns
Type Description
StreamingTranslateSpeechResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final StreamingTranslateSpeechResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamingTranslateSpeechResult.Builder
Overrides