Class StreamingTranslateSpeechResult.Builder (0.47.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StreamingTranslateSpeechResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StreamingTranslateSpeechResult.Builder
Overrides

build()

public StreamingTranslateSpeechResult build()
Returns
TypeDescription
StreamingTranslateSpeechResult

buildPartial()

public StreamingTranslateSpeechResult buildPartial()
Returns
TypeDescription
StreamingTranslateSpeechResult

clear()

public StreamingTranslateSpeechResult.Builder clear()
Returns
TypeDescription
StreamingTranslateSpeechResult.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public StreamingTranslateSpeechResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StreamingTranslateSpeechResult.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StreamingTranslateSpeechResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StreamingTranslateSpeechResult.Builder
Overrides

clearResult()

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

clearTextTranslationResult()

public StreamingTranslateSpeechResult.Builder clearTextTranslationResult()

Text translation result.

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

Returns
TypeDescription
StreamingTranslateSpeechResult.Builder

clone()

public StreamingTranslateSpeechResult.Builder clone()
Returns
TypeDescription
StreamingTranslateSpeechResult.Builder
Overrides

getDefaultInstanceForType()

public StreamingTranslateSpeechResult getDefaultInstanceForType()
Returns
TypeDescription
StreamingTranslateSpeechResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getResultCase()

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

getTextTranslationResult()

public StreamingTranslateSpeechResult.TextTranslationResult getTextTranslationResult()

Text translation result.

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

Returns
TypeDescription
StreamingTranslateSpeechResult.TextTranslationResult

The textTranslationResult.

getTextTranslationResultBuilder()

public StreamingTranslateSpeechResult.TextTranslationResult.Builder getTextTranslationResultBuilder()

Text translation result.

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

Returns
TypeDescription
StreamingTranslateSpeechResult.TextTranslationResult.Builder

getTextTranslationResultOrBuilder()

public StreamingTranslateSpeechResult.TextTranslationResultOrBuilder getTextTranslationResultOrBuilder()

Text translation result.

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

Returns
TypeDescription
StreamingTranslateSpeechResult.TextTranslationResultOrBuilder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StreamingTranslateSpeechResult other)

public StreamingTranslateSpeechResult.Builder mergeFrom(StreamingTranslateSpeechResult other)
Parameter
NameDescription
otherStreamingTranslateSpeechResult
Returns
TypeDescription
StreamingTranslateSpeechResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StreamingTranslateSpeechResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingTranslateSpeechResult.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StreamingTranslateSpeechResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueStreamingTranslateSpeechResult.TextTranslationResult
Returns
TypeDescription
StreamingTranslateSpeechResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamingTranslateSpeechResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StreamingTranslateSpeechResult.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public StreamingTranslateSpeechResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StreamingTranslateSpeechResult.Builder
Overrides

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

public StreamingTranslateSpeechResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueStreamingTranslateSpeechResult.TextTranslationResult
Returns
TypeDescription
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
NameDescription
builderForValueStreamingTranslateSpeechResult.TextTranslationResult.Builder
Returns
TypeDescription
StreamingTranslateSpeechResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final StreamingTranslateSpeechResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StreamingTranslateSpeechResult.Builder
Overrides