public static final class SpeakerDiarizationConfig.Builder extends GeneratedMessageV3.Builder<SpeakerDiarizationConfig.Builder> implements SpeakerDiarizationConfigOrBuilder
Configuration to enable speaker diarization.
Protobuf type google.cloud.speech.v2.SpeakerDiarizationConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpeakerDiarizationConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SpeakerDiarizationConfig build()
buildPartial()
public SpeakerDiarizationConfig buildPartial()
clear()
public SpeakerDiarizationConfig.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SpeakerDiarizationConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMaxSpeakerCount()
public SpeakerDiarizationConfig.Builder clearMaxSpeakerCount()
Required. Maximum number of speakers in the conversation. Valid values are:
1-6. Must be >= min_speaker_count
. This range gives you more flexibility
by allowing the system to automatically determine the correct number of
speakers.
int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED];
clearMinSpeakerCount()
public SpeakerDiarizationConfig.Builder clearMinSpeakerCount()
Required. 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.
To fix the number of speakers detected in the audio, set
min_speaker_count
= max_speaker_count
.
int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public SpeakerDiarizationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public SpeakerDiarizationConfig.Builder clone()
Overrides
getDefaultInstanceForType()
public SpeakerDiarizationConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMaxSpeakerCount()
public int getMaxSpeakerCount()
Required. Maximum number of speakers in the conversation. Valid values are:
1-6. Must be >= min_speaker_count
. This range gives you more flexibility
by allowing the system to automatically determine the correct number of
speakers.
int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The maxSpeakerCount.
|
getMinSpeakerCount()
public int getMinSpeakerCount()
Required. 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.
To fix the number of speakers detected in the audio, set
min_speaker_count
= max_speaker_count
.
int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The minSpeakerCount.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SpeakerDiarizationConfig other)
public SpeakerDiarizationConfig.Builder mergeFrom(SpeakerDiarizationConfig other)
public SpeakerDiarizationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SpeakerDiarizationConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SpeakerDiarizationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SpeakerDiarizationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setMaxSpeakerCount(int value)
public SpeakerDiarizationConfig.Builder setMaxSpeakerCount(int value)
Required. Maximum number of speakers in the conversation. Valid values are:
1-6. Must be >= min_speaker_count
. This range gives you more flexibility
by allowing the system to automatically determine the correct number of
speakers.
int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
int
The maxSpeakerCount to set.
|
setMinSpeakerCount(int value)
public SpeakerDiarizationConfig.Builder setMinSpeakerCount(int value)
Required. 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.
To fix the number of speakers detected in the audio, set
min_speaker_count
= max_speaker_count
.
int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
int
The minSpeakerCount to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SpeakerDiarizationConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SpeakerDiarizationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides