- 4.49.0 (latest)
- 4.48.0
- 4.47.0
- 4.46.0
- 4.44.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.32.0
- 4.31.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.16.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.0
- 4.8.0
- 4.7.0
- 4.6.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.0
- 3.0.0
- 2.6.1
- 2.5.9
- 2.4.0
- 2.3.0
- 2.2.15
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SpeakerDiarizationConfig.BuilderImplements
SpeakerDiarizationConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpeakerDiarizationConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SpeakerDiarizationConfig.Builder |
build()
public SpeakerDiarizationConfig build()
Type | Description |
SpeakerDiarizationConfig |
buildPartial()
public SpeakerDiarizationConfig buildPartial()
Type | Description |
SpeakerDiarizationConfig |
clear()
public SpeakerDiarizationConfig.Builder clear()
Type | Description |
SpeakerDiarizationConfig.Builder |
clearField(Descriptors.FieldDescriptor field)
public SpeakerDiarizationConfig.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
SpeakerDiarizationConfig.Builder |
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];
Type | Description |
SpeakerDiarizationConfig.Builder | This builder for chaining. |
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. If not set, the default value is 2.
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];
Type | Description |
SpeakerDiarizationConfig.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public SpeakerDiarizationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
SpeakerDiarizationConfig.Builder |
clone()
public SpeakerDiarizationConfig.Builder clone()
Type | Description |
SpeakerDiarizationConfig.Builder |
getDefaultInstanceForType()
public SpeakerDiarizationConfig getDefaultInstanceForType()
Type | Description |
SpeakerDiarizationConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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];
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. If not set, the default value is 2.
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];
Type | Description |
int | The minSpeakerCount. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(SpeakerDiarizationConfig other)
public SpeakerDiarizationConfig.Builder mergeFrom(SpeakerDiarizationConfig other)
Name | Description |
other | SpeakerDiarizationConfig |
Type | Description |
SpeakerDiarizationConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SpeakerDiarizationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SpeakerDiarizationConfig.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public SpeakerDiarizationConfig.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
SpeakerDiarizationConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SpeakerDiarizationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SpeakerDiarizationConfig.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public SpeakerDiarizationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SpeakerDiarizationConfig.Builder |
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];
Name | Description |
value | int The maxSpeakerCount to set. |
Type | Description |
SpeakerDiarizationConfig.Builder | This builder for chaining. |
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. If not set, the default value is 2.
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];
Name | Description |
value | int The minSpeakerCount to set. |
Type | Description |
SpeakerDiarizationConfig.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SpeakerDiarizationConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
SpeakerDiarizationConfig.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final SpeakerDiarizationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SpeakerDiarizationConfig.Builder |