public static final class SpeakerDiarizationConfig.Builder extends GeneratedMessageV3.Builder<SpeakerDiarizationConfig.Builder> implements SpeakerDiarizationConfigOrBuilder
Config to enable speaker diarization.
Protobuf type google.cloud.speech.v1.SpeakerDiarizationConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpeakerDiarizationConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SpeakerDiarizationConfig build()
Returns
buildPartial()
public SpeakerDiarizationConfig buildPartial()
Returns
clear()
public SpeakerDiarizationConfig.Builder clear()
Returns
Overrides
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
clearField(Descriptors.FieldDescriptor field)
public SpeakerDiarizationConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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
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
clearOneof(Descriptors.OneofDescriptor oneof)
public SpeakerDiarizationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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=456
Output only. Unused.
int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
Returns
clone()
public SpeakerDiarizationConfig.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SpeakerDiarizationConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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;
Returns
Type | Description |
boolean | The enableSpeakerDiarization.
|
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;
Returns
Type | Description |
int | The maxSpeakerCount.
|
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;
Returns
Type | Description |
int | The minSpeakerCount.
|
getSpeakerTag() (deprecated)
public int getSpeakerTag()
Deprecated. google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See
google/cloud/speech/v1/cloud_speech.proto;l=456
Output only. Unused.
int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
int | The speakerTag.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SpeakerDiarizationConfig other)
public SpeakerDiarizationConfig.Builder mergeFrom(SpeakerDiarizationConfig other)
Parameter
Returns
public SpeakerDiarizationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SpeakerDiarizationConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SpeakerDiarizationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setEnableSpeakerDiarization(boolean value)
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;
Parameter
Name | Description |
value | boolean
The enableSpeakerDiarization to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SpeakerDiarizationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMaxSpeakerCount(int value)
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;
Parameter
Name | Description |
value | int
The maxSpeakerCount to set.
|
Returns
setMinSpeakerCount(int value)
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;
Parameter
Name | Description |
value | int
The minSpeakerCount to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SpeakerDiarizationConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSpeakerTag(int value) (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=456
Output only. Unused.
int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name | Description |
value | int
The speakerTag to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final SpeakerDiarizationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides