Send feedback
Class AdvancedVoiceOptions.Builder (2.79.0)
Version latestkeyboard_arrow_down
public static final class AdvancedVoiceOptions . Builder extends GeneratedMessageV3 . Builder<AdvancedVoiceOptions . Builder > implements AdvancedVoiceOptionsOrBuilder
Used for advanced voice options.
Protobuf type google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions
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 AdvancedVoiceOptions . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public AdvancedVoiceOptions build ()
buildPartial()
public AdvancedVoiceOptions buildPartial ()
clear()
public AdvancedVoiceOptions . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AdvancedVoiceOptions . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearLowLatencyJourneySynthesis()
public AdvancedVoiceOptions . Builder clearLowLatencyJourneySynthesis ()
Only for Journey voices. If false, the synthesis is context aware
and has a higher latency.
optional bool low_latency_journey_synthesis = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public AdvancedVoiceOptions . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearRelaxSafetyFilters()
public AdvancedVoiceOptions . Builder clearRelaxSafetyFilters ()
Optional. Input only. If true, relaxes safety filters for Gemini TTS. Only
supported for accounts linked to Invoiced (Offline) Cloud billing accounts.
Otherwise, will return result
google.rpc.Code.INVALID_ARGUMENT .
bool relax_safety_filters = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
clone()
public AdvancedVoiceOptions . Builder clone ()
Overrides
getDefaultInstanceForType()
public AdvancedVoiceOptions getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getLowLatencyJourneySynthesis()
public boolean getLowLatencyJourneySynthesis ()
Only for Journey voices. If false, the synthesis is context aware
and has a higher latency.
optional bool low_latency_journey_synthesis = 1;
Returns
Type
Description
boolean
The lowLatencyJourneySynthesis.
getRelaxSafetyFilters()
public boolean getRelaxSafetyFilters ()
Optional. Input only. If true, relaxes safety filters for Gemini TTS. Only
supported for accounts linked to Invoiced (Offline) Cloud billing accounts.
Otherwise, will return result
google.rpc.Code.INVALID_ARGUMENT .
bool relax_safety_filters = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
The relaxSafetyFilters.
hasLowLatencyJourneySynthesis()
public boolean hasLowLatencyJourneySynthesis ()
Only for Journey voices. If false, the synthesis is context aware
and has a higher latency.
optional bool low_latency_journey_synthesis = 1;
Returns
Type
Description
boolean
Whether the lowLatencyJourneySynthesis field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(AdvancedVoiceOptions other)
public AdvancedVoiceOptions . Builder mergeFrom ( AdvancedVoiceOptions other )
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AdvancedVoiceOptions . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public AdvancedVoiceOptions . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AdvancedVoiceOptions . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AdvancedVoiceOptions . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setLowLatencyJourneySynthesis(boolean value)
public AdvancedVoiceOptions . Builder setLowLatencyJourneySynthesis ( boolean value )
Only for Journey voices. If false, the synthesis is context aware
and has a higher latency.
optional bool low_latency_journey_synthesis = 1;
Parameter
Name
Description
value
boolean The lowLatencyJourneySynthesis to set.
setRelaxSafetyFilters(boolean value)
public AdvancedVoiceOptions . Builder setRelaxSafetyFilters ( boolean value )
Optional. Input only. If true, relaxes safety filters for Gemini TTS. Only
supported for accounts linked to Invoiced (Offline) Cloud billing accounts.
Otherwise, will return result
google.rpc.Code.INVALID_ARGUMENT .
bool relax_safety_filters = 8 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
boolean The relaxSafetyFilters to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AdvancedVoiceOptions . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AdvancedVoiceOptions . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
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 2025-10-29 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 2025-10-29 UTC."],[],[]]