Class SpeakerDiarizationConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SpeakerDiarizationConfig.Builder>
com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder
All Implemented Interfaces:
SpeakerDiarizationConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SpeakerDiarizationConfig

public static final class SpeakerDiarizationConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<SpeakerDiarizationConfig.Builder> implements SpeakerDiarizationConfigOrBuilder
 Config to enable speaker diarization.
 
Protobuf type google.cloud.speech.v1.SpeakerDiarizationConfig
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SpeakerDiarizationConfig.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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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_label
       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_label
       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_label
       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=493
       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=493
       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.
      google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See google/cloud/speech/v1/cloud_speech.proto;l=493
       Output only. Unused.
       
      int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.