Class SpeakerDiarizationConfig.Builder (4.78.0)

public static final class SpeakerDiarizationConfig.Builder extends GeneratedMessage.Builder<SpeakerDiarizationConfig.Builder> implements SpeakerDiarizationConfigOrBuilder

Configuration to enable speaker diarization.

Protobuf type google.cloud.speech.v2.SpeakerDiarizationConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public SpeakerDiarizationConfig build()
Returns
Type Description
SpeakerDiarizationConfig

buildPartial()

public SpeakerDiarizationConfig buildPartial()
Returns
Type Description
SpeakerDiarizationConfig

clear()

public SpeakerDiarizationConfig.Builder clear()
Returns
Type Description
SpeakerDiarizationConfig.Builder
Overrides

clearMaxSpeakerCount()

public SpeakerDiarizationConfig.Builder clearMaxSpeakerCount()

Optional. The system automatically determines the number of speakers. This value is not currently used.

int32 max_speaker_count = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SpeakerDiarizationConfig.Builder

This builder for chaining.

clearMinSpeakerCount()

public SpeakerDiarizationConfig.Builder clearMinSpeakerCount()

Optional. The system automatically determines the number of speakers. This value is not currently used.

int32 min_speaker_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SpeakerDiarizationConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public SpeakerDiarizationConfig getDefaultInstanceForType()
Returns
Type Description
SpeakerDiarizationConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMaxSpeakerCount()

public int getMaxSpeakerCount()

Optional. The system automatically determines the number of speakers. This value is not currently used.

int32 max_speaker_count = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The maxSpeakerCount.

getMinSpeakerCount()

public int getMinSpeakerCount()

Optional. The system automatically determines the number of speakers. This value is not currently used.

int32 min_speaker_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The minSpeakerCount.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SpeakerDiarizationConfig other)

public SpeakerDiarizationConfig.Builder mergeFrom(SpeakerDiarizationConfig other)
Parameter
Name Description
other SpeakerDiarizationConfig
Returns
Type Description
SpeakerDiarizationConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SpeakerDiarizationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpeakerDiarizationConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SpeakerDiarizationConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SpeakerDiarizationConfig.Builder
Overrides

setMaxSpeakerCount(int value)

public SpeakerDiarizationConfig.Builder setMaxSpeakerCount(int value)

Optional. The system automatically determines the number of speakers. This value is not currently used.

int32 max_speaker_count = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The maxSpeakerCount to set.

Returns
Type Description
SpeakerDiarizationConfig.Builder

This builder for chaining.

setMinSpeakerCount(int value)

public SpeakerDiarizationConfig.Builder setMinSpeakerCount(int value)

Optional. The system automatically determines the number of speakers. This value is not currently used.

int32 min_speaker_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The minSpeakerCount to set.

Returns
Type Description
SpeakerDiarizationConfig.Builder

This builder for chaining.