Class SpeakerDiarizationConfig.Builder

    • 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<SpeakerDiarizationConfig.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<SpeakerDiarizationConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public SpeakerDiarizationConfig.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<SpeakerDiarizationConfig.Builder>
      • addRepeatedField

        public SpeakerDiarizationConfig.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<SpeakerDiarizationConfig.Builder>
      • isInitialized

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

        public SpeakerDiarizationConfig.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<SpeakerDiarizationConfig.Builder>
        Throws:
        IOException
      • getEnableSpeakerDiarization

        public boolean getEnableSpeakerDiarization()
         If 'true', enables speaker detection for each recognized word in
         the top alternative of the recognition result using a speaker_tag provided
         in the WordInfo.
         
        bool enable_speaker_diarization = 1;
        Specified by:
        getEnableSpeakerDiarization in interface SpeakerDiarizationConfigOrBuilder
        Returns:
        The enableSpeakerDiarization.
      • setEnableSpeakerDiarization

        public SpeakerDiarizationConfig.Builder setEnableSpeakerDiarization​(boolean value)
         If 'true', enables speaker detection for each recognized word in
         the top alternative of the recognition result using a speaker_tag provided
         in the WordInfo.
         
        bool enable_speaker_diarization = 1;
        Parameters:
        value - The enableSpeakerDiarization to set.
        Returns:
        This builder for chaining.
      • clearEnableSpeakerDiarization

        public SpeakerDiarizationConfig.Builder clearEnableSpeakerDiarization()
         If 'true', enables speaker detection for each recognized word in
         the top alternative of the recognition result using a speaker_tag provided
         in the WordInfo.
         
        bool enable_speaker_diarization = 1;
        Returns:
        This builder for chaining.
      • getMinSpeakerCount

        public int getMinSpeakerCount()
         Minimum number of speakers in the conversation. This range gives you more
         flexibility by allowing the system to automatically determine the correct
         number of speakers. If not set, the default value is 2.
         
        int32 min_speaker_count = 2;
        Specified by:
        getMinSpeakerCount in interface SpeakerDiarizationConfigOrBuilder
        Returns:
        The minSpeakerCount.
      • setMinSpeakerCount

        public SpeakerDiarizationConfig.Builder setMinSpeakerCount​(int value)
         Minimum number of speakers in the conversation. This range gives you more
         flexibility by allowing the system to automatically determine the correct
         number of speakers. If not set, the default value is 2.
         
        int32 min_speaker_count = 2;
        Parameters:
        value - The minSpeakerCount to set.
        Returns:
        This builder for chaining.
      • clearMinSpeakerCount

        public SpeakerDiarizationConfig.Builder clearMinSpeakerCount()
         Minimum number of speakers in the conversation. This range gives you more
         flexibility by allowing the system to automatically determine the correct
         number of speakers. If not set, the default value is 2.
         
        int32 min_speaker_count = 2;
        Returns:
        This builder for chaining.
      • getMaxSpeakerCount

        public int getMaxSpeakerCount()
         Maximum number of speakers in the conversation. This range gives you more
         flexibility by allowing the system to automatically determine the correct
         number of speakers. If not set, the default value is 6.
         
        int32 max_speaker_count = 3;
        Specified by:
        getMaxSpeakerCount in interface SpeakerDiarizationConfigOrBuilder
        Returns:
        The maxSpeakerCount.
      • setMaxSpeakerCount

        public SpeakerDiarizationConfig.Builder setMaxSpeakerCount​(int value)
         Maximum number of speakers in the conversation. This range gives you more
         flexibility by allowing the system to automatically determine the correct
         number of speakers. If not set, the default value is 6.
         
        int32 max_speaker_count = 3;
        Parameters:
        value - The maxSpeakerCount to set.
        Returns:
        This builder for chaining.
      • clearMaxSpeakerCount

        public SpeakerDiarizationConfig.Builder clearMaxSpeakerCount()
         Maximum number of speakers in the conversation. This range gives you more
         flexibility by allowing the system to automatically determine the correct
         number of speakers. If not set, the default value is 6.
         
        int32 max_speaker_count = 3;
        Returns:
        This builder for chaining.
      • getSpeakerTag

        @Deprecated
        public int getSpeakerTag()
        Deprecated.
        google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See google/cloud/speech/v1/cloud_speech.proto;l=480
         Output only. Unused.
         
        int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSpeakerTag in interface SpeakerDiarizationConfigOrBuilder
        Returns:
        The speakerTag.
      • setSpeakerTag

        @Deprecated
        public SpeakerDiarizationConfig.Builder setSpeakerTag​(int value)
        Deprecated.
        google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See google/cloud/speech/v1/cloud_speech.proto;l=480
         Output only. Unused.
         
        int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The speakerTag to set.
        Returns:
        This builder for chaining.
      • clearSpeakerTag

        @Deprecated
        public SpeakerDiarizationConfig.Builder clearSpeakerTag()
        Deprecated.
        google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See google/cloud/speech/v1/cloud_speech.proto;l=480
         Output only. Unused.
         
        int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final SpeakerDiarizationConfig.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<SpeakerDiarizationConfig.Builder>
      • mergeUnknownFields

        public final SpeakerDiarizationConfig.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<SpeakerDiarizationConfig.Builder>