Send feedback
Class StreamingTranslateSpeechResult.Builder (0.17.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.17.0 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
public StreamingTranslateSpeechResult . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public StreamingTranslateSpeechResult build ()
Returns
public StreamingTranslateSpeechResult buildPartial ()
Returns
public StreamingTranslateSpeechResult . Builder clear ()
Returns
Overrides
public StreamingTranslateSpeechResult . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
public StreamingTranslateSpeechResult . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
public StreamingTranslateSpeechResult . Builder clearResult ()
Returns
clearTextTranslationResult()
public StreamingTranslateSpeechResult . Builder clearTextTranslationResult ()
Text translation result.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
Returns
public StreamingTranslateSpeechResult . Builder clone ()
Returns
Overrides
public StreamingTranslateSpeechResult getDefaultInstanceForType ()
Returns
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
public StreamingTranslateSpeechResult . ResultCase getResultCase ()
Returns
getTextTranslationResult()
public StreamingTranslateSpeechResult . TextTranslationResult getTextTranslationResult ()
Text translation result.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
Returns
getTextTranslationResultBuilder()
public StreamingTranslateSpeechResult . TextTranslationResult . Builder getTextTranslationResultBuilder ()
Text translation result.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
Returns
getTextTranslationResultOrBuilder()
public StreamingTranslateSpeechResult . TextTranslationResultOrBuilder getTextTranslationResultOrBuilder ()
Text translation result.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult text_translation_result = 1;
Returns
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.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public StreamingTranslateSpeechResult . Builder mergeFrom ( StreamingTranslateSpeechResult other )
Parameter
Returns
public StreamingTranslateSpeechResult . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
public StreamingTranslateSpeechResult . Builder mergeFrom ( Message other )
Parameter
Returns
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
Returns
public final StreamingTranslateSpeechResult . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
public StreamingTranslateSpeechResult . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public StreamingTranslateSpeechResult . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
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
Returns
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
Returns
public final StreamingTranslateSpeechResult . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]