Send feedback
Class SpeakerVoiceConfig.Builder (3.82.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class SpeakerVoiceConfig . Builder extends GeneratedMessageV3 . Builder<SpeakerVoiceConfig . Builder > implements SpeakerVoiceConfigOrBuilder
Configuration for a single speaker in a multi-speaker setup.
Protobuf type google.cloud.aiplatform.v1.SpeakerVoiceConfig
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
public static final Descriptors . Descriptor getDescriptor ()
Methods
public SpeakerVoiceConfig . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public SpeakerVoiceConfig build ()
public SpeakerVoiceConfig buildPartial ()
public SpeakerVoiceConfig . Builder clear ()
Overrides
public SpeakerVoiceConfig . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
public SpeakerVoiceConfig . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
public SpeakerVoiceConfig . Builder clearSpeaker ()
Required. The name of the speaker. This should be the same as the speaker
name used in the prompt.
string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
public SpeakerVoiceConfig . Builder clearVoiceConfig ()
Required. The configuration for the voice of this speaker.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
public SpeakerVoiceConfig . Builder clone ()
Overrides
public SpeakerVoiceConfig getDefaultInstanceForType ()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
public String getSpeaker ()
Required. The name of the speaker. This should be the same as the speaker
name used in the prompt.
string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The speaker.
public ByteString getSpeakerBytes ()
Required. The name of the speaker. This should be the same as the speaker
name used in the prompt.
string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for speaker.
public VoiceConfig getVoiceConfig ()
Required. The configuration for the voice of this speaker.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
public VoiceConfig . Builder getVoiceConfigBuilder ()
Required. The configuration for the voice of this speaker.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
public VoiceConfigOrBuilder getVoiceConfigOrBuilder ()
Required. The configuration for the voice of this speaker.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
public boolean hasVoiceConfig ()
Required. The configuration for the voice of this speaker.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the voiceConfig field is set.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public SpeakerVoiceConfig . Builder mergeFrom ( SpeakerVoiceConfig other )
public SpeakerVoiceConfig . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
public SpeakerVoiceConfig . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
public final SpeakerVoiceConfig . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public SpeakerVoiceConfig . Builder mergeVoiceConfig ( VoiceConfig value )
Required. The configuration for the voice of this speaker.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
public SpeakerVoiceConfig . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public SpeakerVoiceConfig . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
public SpeakerVoiceConfig . Builder setSpeaker ( String value )
Required. The name of the speaker. This should be the same as the speaker
name used in the prompt.
string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
String The speaker to set.
public SpeakerVoiceConfig . Builder setSpeakerBytes ( ByteString value )
Required. The name of the speaker. This should be the same as the speaker
name used in the prompt.
string speaker = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
ByteString The bytes for speaker to set.
public final SpeakerVoiceConfig . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public SpeakerVoiceConfig . Builder setVoiceConfig ( VoiceConfig value )
Required. The configuration for the voice of this speaker.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
public SpeakerVoiceConfig . Builder setVoiceConfig ( VoiceConfig . Builder builderForValue )
Required. The configuration for the voice of this speaker.
.google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED];
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-09 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-01-09 UTC."],[],[]]