Class WordInfo.Builder

  • All Implemented Interfaces:
    WordInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    WordInfo

    public static final class WordInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
    implements WordInfoOrBuilder
     Word-specific information for recognized words.
     
    Protobuf type google.cloud.speech.v2.WordInfo
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      WordInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      WordInfo build()  
      WordInfo buildPartial()  
      WordInfo.Builder clear()  
      WordInfo.Builder clearConfidence()
      The confidence estimate between 0.0 and 1.0.
      WordInfo.Builder clearEndOffset()
      Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word.
      WordInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)  
      WordInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)  
      WordInfo.Builder clearSpeakerLabel()
      A distinct label is assigned for every speaker within the audio.
      WordInfo.Builder clearStartOffset()
      Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word.
      WordInfo.Builder clearWord()
      The word corresponding to this set of information.
      WordInfo.Builder clone()  
      float getConfidence()
      The confidence estimate between 0.0 and 1.0.
      WordInfo getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      com.google.protobuf.Duration getEndOffset()
      Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word.
      com.google.protobuf.Duration.Builder getEndOffsetBuilder()
      Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word.
      com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder()
      Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word.
      String getSpeakerLabel()
      A distinct label is assigned for every speaker within the audio.
      com.google.protobuf.ByteString getSpeakerLabelBytes()
      A distinct label is assigned for every speaker within the audio.
      com.google.protobuf.Duration getStartOffset()
      Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word.
      com.google.protobuf.Duration.Builder getStartOffsetBuilder()
      Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word.
      com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder()
      Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word.
      String getWord()
      The word corresponding to this set of information.
      com.google.protobuf.ByteString getWordBytes()
      The word corresponding to this set of information.
      boolean hasEndOffset()
      Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word.
      boolean hasStartOffset()
      Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      WordInfo.Builder mergeEndOffset​(com.google.protobuf.Duration value)
      Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word.
      WordInfo.Builder mergeFrom​(WordInfo other)  
      WordInfo.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      WordInfo.Builder mergeFrom​(com.google.protobuf.Message other)  
      WordInfo.Builder mergeStartOffset​(com.google.protobuf.Duration value)
      Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word.
      WordInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      WordInfo.Builder setConfidence​(float value)
      The confidence estimate between 0.0 and 1.0.
      WordInfo.Builder setEndOffset​(com.google.protobuf.Duration value)
      Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word.
      WordInfo.Builder setEndOffset​(com.google.protobuf.Duration.Builder builderForValue)
      Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word.
      WordInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      WordInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)  
      WordInfo.Builder setSpeakerLabel​(String value)
      A distinct label is assigned for every speaker within the audio.
      WordInfo.Builder setSpeakerLabelBytes​(com.google.protobuf.ByteString value)
      A distinct label is assigned for every speaker within the audio.
      WordInfo.Builder setStartOffset​(com.google.protobuf.Duration value)
      Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word.
      WordInfo.Builder setStartOffset​(com.google.protobuf.Duration.Builder builderForValue)
      Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word.
      WordInfo.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      WordInfo.Builder setWord​(String value)
      The word corresponding to this set of information.
      WordInfo.Builder setWordBytes​(com.google.protobuf.ByteString value)
      The word corresponding to this set of information.
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

        getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
      • Methods inherited from class com.google.protobuf.AbstractMessage.Builder

        findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

        addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
      • Methods inherited from interface com.google.protobuf.Message.Builder

        mergeDelimitedFrom, mergeDelimitedFrom
      • Methods inherited from interface com.google.protobuf.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
      • clear

        public WordInfo.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
      • getDefaultInstanceForType

        public WordInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public WordInfo build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public WordInfo buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public WordInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
      • setField

        public WordInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
      • clearField

        public WordInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
      • clearOneof

        public WordInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
      • setRepeatedField

        public WordInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 int index,
                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
      • addRepeatedField

        public WordInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
      • mergeFrom

        public WordInfo.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WordInfo.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
      • mergeFrom

        public WordInfo.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WordInfo.Builder>
        Throws:
        IOException
      • hasStartOffset

        public boolean hasStartOffset()
         Time offset relative to the beginning of the audio,
         and corresponding to the start of the spoken word.
         This field is only set if
         [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
         is `true` and only in the top hypothesis. This is an experimental feature
         and the accuracy of the time offset can vary.
         
        .google.protobuf.Duration start_offset = 1;
        Specified by:
        hasStartOffset in interface WordInfoOrBuilder
        Returns:
        Whether the startOffset field is set.
      • getStartOffset

        public com.google.protobuf.Duration getStartOffset()
         Time offset relative to the beginning of the audio,
         and corresponding to the start of the spoken word.
         This field is only set if
         [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
         is `true` and only in the top hypothesis. This is an experimental feature
         and the accuracy of the time offset can vary.
         
        .google.protobuf.Duration start_offset = 1;
        Specified by:
        getStartOffset in interface WordInfoOrBuilder
        Returns:
        The startOffset.
      • setStartOffset

        public WordInfo.Builder setStartOffset​(com.google.protobuf.Duration value)
         Time offset relative to the beginning of the audio,
         and corresponding to the start of the spoken word.
         This field is only set if
         [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
         is `true` and only in the top hypothesis. This is an experimental feature
         and the accuracy of the time offset can vary.
         
        .google.protobuf.Duration start_offset = 1;
      • setStartOffset

        public WordInfo.Builder setStartOffset​(com.google.protobuf.Duration.Builder builderForValue)
         Time offset relative to the beginning of the audio,
         and corresponding to the start of the spoken word.
         This field is only set if
         [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
         is `true` and only in the top hypothesis. This is an experimental feature
         and the accuracy of the time offset can vary.
         
        .google.protobuf.Duration start_offset = 1;
      • mergeStartOffset

        public WordInfo.Builder mergeStartOffset​(com.google.protobuf.Duration value)
         Time offset relative to the beginning of the audio,
         and corresponding to the start of the spoken word.
         This field is only set if
         [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
         is `true` and only in the top hypothesis. This is an experimental feature
         and the accuracy of the time offset can vary.
         
        .google.protobuf.Duration start_offset = 1;
      • clearStartOffset

        public WordInfo.Builder clearStartOffset()
         Time offset relative to the beginning of the audio,
         and corresponding to the start of the spoken word.
         This field is only set if
         [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
         is `true` and only in the top hypothesis. This is an experimental feature
         and the accuracy of the time offset can vary.
         
        .google.protobuf.Duration start_offset = 1;
      • getStartOffsetBuilder

        public com.google.protobuf.Duration.Builder getStartOffsetBuilder()
         Time offset relative to the beginning of the audio,
         and corresponding to the start of the spoken word.
         This field is only set if
         [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
         is `true` and only in the top hypothesis. This is an experimental feature
         and the accuracy of the time offset can vary.
         
        .google.protobuf.Duration start_offset = 1;
      • getStartOffsetOrBuilder

        public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder()
         Time offset relative to the beginning of the audio,
         and corresponding to the start of the spoken word.
         This field is only set if
         [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
         is `true` and only in the top hypothesis. This is an experimental feature
         and the accuracy of the time offset can vary.
         
        .google.protobuf.Duration start_offset = 1;
        Specified by:
        getStartOffsetOrBuilder in interface WordInfoOrBuilder
      • hasEndOffset

        public boolean hasEndOffset()
         Time offset relative to the beginning of the audio,
         and corresponding to the end of the spoken word.
         This field is only set if
         [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
         is `true` and only in the top hypothesis. This is an experimental feature
         and the accuracy of the time offset can vary.
         
        .google.protobuf.Duration end_offset = 2;
        Specified by:
        hasEndOffset in interface WordInfoOrBuilder
        Returns:
        Whether the endOffset field is set.
      • getEndOffset

        public com.google.protobuf.Duration getEndOffset()
         Time offset relative to the beginning of the audio,
         and corresponding to the end of the spoken word.
         This field is only set if
         [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
         is `true` and only in the top hypothesis. This is an experimental feature
         and the accuracy of the time offset can vary.
         
        .google.protobuf.Duration end_offset = 2;
        Specified by:
        getEndOffset in interface WordInfoOrBuilder
        Returns:
        The endOffset.
      • setEndOffset

        public WordInfo.Builder setEndOffset​(com.google.protobuf.Duration value)
         Time offset relative to the beginning of the audio,
         and corresponding to the end of the spoken word.
         This field is only set if
         [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
         is `true` and only in the top hypothesis. This is an experimental feature
         and the accuracy of the time offset can vary.
         
        .google.protobuf.Duration end_offset = 2;
      • setEndOffset

        public WordInfo.Builder setEndOffset​(com.google.protobuf.Duration.Builder builderForValue)
         Time offset relative to the beginning of the audio,
         and corresponding to the end of the spoken word.
         This field is only set if
         [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
         is `true` and only in the top hypothesis. This is an experimental feature
         and the accuracy of the time offset can vary.
         
        .google.protobuf.Duration end_offset = 2;
      • mergeEndOffset

        public WordInfo.Builder mergeEndOffset​(com.google.protobuf.Duration value)
         Time offset relative to the beginning of the audio,
         and corresponding to the end of the spoken word.
         This field is only set if
         [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
         is `true` and only in the top hypothesis. This is an experimental feature
         and the accuracy of the time offset can vary.
         
        .google.protobuf.Duration end_offset = 2;
      • clearEndOffset

        public WordInfo.Builder clearEndOffset()
         Time offset relative to the beginning of the audio,
         and corresponding to the end of the spoken word.
         This field is only set if
         [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
         is `true` and only in the top hypothesis. This is an experimental feature
         and the accuracy of the time offset can vary.
         
        .google.protobuf.Duration end_offset = 2;
      • getEndOffsetBuilder

        public com.google.protobuf.Duration.Builder getEndOffsetBuilder()
         Time offset relative to the beginning of the audio,
         and corresponding to the end of the spoken word.
         This field is only set if
         [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
         is `true` and only in the top hypothesis. This is an experimental feature
         and the accuracy of the time offset can vary.
         
        .google.protobuf.Duration end_offset = 2;
      • getEndOffsetOrBuilder

        public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder()
         Time offset relative to the beginning of the audio,
         and corresponding to the end of the spoken word.
         This field is only set if
         [enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
         is `true` and only in the top hypothesis. This is an experimental feature
         and the accuracy of the time offset can vary.
         
        .google.protobuf.Duration end_offset = 2;
        Specified by:
        getEndOffsetOrBuilder in interface WordInfoOrBuilder
      • getWord

        public String getWord()
         The word corresponding to this set of information.
         
        string word = 3;
        Specified by:
        getWord in interface WordInfoOrBuilder
        Returns:
        The word.
      • getWordBytes

        public com.google.protobuf.ByteString getWordBytes()
         The word corresponding to this set of information.
         
        string word = 3;
        Specified by:
        getWordBytes in interface WordInfoOrBuilder
        Returns:
        The bytes for word.
      • setWord

        public WordInfo.Builder setWord​(String value)
         The word corresponding to this set of information.
         
        string word = 3;
        Parameters:
        value - The word to set.
        Returns:
        This builder for chaining.
      • clearWord

        public WordInfo.Builder clearWord()
         The word corresponding to this set of information.
         
        string word = 3;
        Returns:
        This builder for chaining.
      • setWordBytes

        public WordInfo.Builder setWordBytes​(com.google.protobuf.ByteString value)
         The word corresponding to this set of information.
         
        string word = 3;
        Parameters:
        value - The bytes for word to set.
        Returns:
        This builder for chaining.
      • getConfidence

        public float getConfidence()
         The confidence estimate between 0.0 and 1.0. A higher number
         indicates an estimated greater likelihood that the recognized words are
         correct. This field is set only for the top alternative of a non-streaming
         result or, of a streaming result where
         [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final] is
         set to `true`. This field is not guaranteed to be accurate and users should
         not rely on it to be always provided. The default of 0.0 is a sentinel
         value indicating `confidence` was not set.
         
        float confidence = 4;
        Specified by:
        getConfidence in interface WordInfoOrBuilder
        Returns:
        The confidence.
      • setConfidence

        public WordInfo.Builder setConfidence​(float value)
         The confidence estimate between 0.0 and 1.0. A higher number
         indicates an estimated greater likelihood that the recognized words are
         correct. This field is set only for the top alternative of a non-streaming
         result or, of a streaming result where
         [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final] is
         set to `true`. This field is not guaranteed to be accurate and users should
         not rely on it to be always provided. The default of 0.0 is a sentinel
         value indicating `confidence` was not set.
         
        float confidence = 4;
        Parameters:
        value - The confidence to set.
        Returns:
        This builder for chaining.
      • clearConfidence

        public WordInfo.Builder clearConfidence()
         The confidence estimate between 0.0 and 1.0. A higher number
         indicates an estimated greater likelihood that the recognized words are
         correct. This field is set only for the top alternative of a non-streaming
         result or, of a streaming result where
         [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final] is
         set to `true`. This field is not guaranteed to be accurate and users should
         not rely on it to be always provided. The default of 0.0 is a sentinel
         value indicating `confidence` was not set.
         
        float confidence = 4;
        Returns:
        This builder for chaining.
      • getSpeakerLabel

        public String getSpeakerLabel()
         A distinct label is assigned for every speaker within the audio. This field
         specifies which one of those speakers was detected to have spoken this
         word. `speaker_label` is set if
         [SpeakerDiarizationConfig][google.cloud.speech.v2.SpeakerDiarizationConfig]
         is given and only in the top alternative.
         
        string speaker_label = 6;
        Specified by:
        getSpeakerLabel in interface WordInfoOrBuilder
        Returns:
        The speakerLabel.
      • getSpeakerLabelBytes

        public com.google.protobuf.ByteString getSpeakerLabelBytes()
         A distinct label is assigned for every speaker within the audio. This field
         specifies which one of those speakers was detected to have spoken this
         word. `speaker_label` is set if
         [SpeakerDiarizationConfig][google.cloud.speech.v2.SpeakerDiarizationConfig]
         is given and only in the top alternative.
         
        string speaker_label = 6;
        Specified by:
        getSpeakerLabelBytes in interface WordInfoOrBuilder
        Returns:
        The bytes for speakerLabel.
      • setSpeakerLabel

        public WordInfo.Builder setSpeakerLabel​(String value)
         A distinct label is assigned for every speaker within the audio. This field
         specifies which one of those speakers was detected to have spoken this
         word. `speaker_label` is set if
         [SpeakerDiarizationConfig][google.cloud.speech.v2.SpeakerDiarizationConfig]
         is given and only in the top alternative.
         
        string speaker_label = 6;
        Parameters:
        value - The speakerLabel to set.
        Returns:
        This builder for chaining.
      • clearSpeakerLabel

        public WordInfo.Builder clearSpeakerLabel()
         A distinct label is assigned for every speaker within the audio. This field
         specifies which one of those speakers was detected to have spoken this
         word. `speaker_label` is set if
         [SpeakerDiarizationConfig][google.cloud.speech.v2.SpeakerDiarizationConfig]
         is given and only in the top alternative.
         
        string speaker_label = 6;
        Returns:
        This builder for chaining.
      • setSpeakerLabelBytes

        public WordInfo.Builder setSpeakerLabelBytes​(com.google.protobuf.ByteString value)
         A distinct label is assigned for every speaker within the audio. This field
         specifies which one of those speakers was detected to have spoken this
         word. `speaker_label` is set if
         [SpeakerDiarizationConfig][google.cloud.speech.v2.SpeakerDiarizationConfig]
         is given and only in the top alternative.
         
        string speaker_label = 6;
        Parameters:
        value - The bytes for speakerLabel to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final WordInfo.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>
      • mergeUnknownFields

        public final WordInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WordInfo.Builder>