Package com.google.cloud.texttospeech.v1
Class AdvancedVoiceOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AdvancedVoiceOptions.Builder>
com.google.cloud.texttospeech.v1.AdvancedVoiceOptions.Builder
- All Implemented Interfaces:
AdvancedVoiceOptionsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AdvancedVoiceOptions
public static final class AdvancedVoiceOptions.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AdvancedVoiceOptions.Builder>
implements AdvancedVoiceOptionsOrBuilder
Used for advanced voice options.Protobuf type
google.cloud.texttospeech.v1.AdvancedVoiceOptions-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Only for Journey voices.Deprecated.google.cloud.texttospeech.v1.AdvancedVoiceOptions.relax_safety_filters is deprecated.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.booleanOnly for Journey voices.booleanDeprecated.google.cloud.texttospeech.v1.AdvancedVoiceOptions.relax_safety_filters is deprecated.Optional.Optional.Optional.booleanOptional.booleanOnly for Journey voices.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(AdvancedVoiceOptions other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setEnableTextnorm(boolean value) Optional.setLowLatencyJourneySynthesis(boolean value) Only for Journey voices.setRelaxSafetyFilters(boolean value) Deprecated.google.cloud.texttospeech.v1.AdvancedVoiceOptions.relax_safety_filters is deprecated.Optional.setSafetySettings(AdvancedVoiceOptions.SafetySettings.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AdvancedVoiceOptions.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AdvancedVoiceOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AdvancedVoiceOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AdvancedVoiceOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AdvancedVoiceOptions.Builder>
-
mergeFrom
public AdvancedVoiceOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AdvancedVoiceOptions.Builder>- Throws:
IOException
-
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;- Specified by:
hasLowLatencyJourneySynthesisin interfaceAdvancedVoiceOptionsOrBuilder- Returns:
- Whether the lowLatencyJourneySynthesis field is set.
-
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;- Specified by:
getLowLatencyJourneySynthesisin interfaceAdvancedVoiceOptionsOrBuilder- Returns:
- The lowLatencyJourneySynthesis.
-
setLowLatencyJourneySynthesis
Only for Journey voices. If false, the synthesis is context aware and has a higher latency.
optional bool low_latency_journey_synthesis = 1;- Parameters:
value- The lowLatencyJourneySynthesis to set.- Returns:
- This builder for chaining.
-
clearLowLatencyJourneySynthesis
Only for Journey voices. If false, the synthesis is context aware and has a higher latency.
optional bool low_latency_journey_synthesis = 1;- Returns:
- This builder for chaining.
-
getRelaxSafetyFilters
Deprecated.google.cloud.texttospeech.v1.AdvancedVoiceOptions.relax_safety_filters is deprecated. See google/cloud/texttospeech/v1/cloud_tts.proto;l=224Optional. Input only. Deprecated, use safety_settings instead. If true, relaxes safety filters for Gemini TTS.
bool relax_safety_filters = 8 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getRelaxSafetyFiltersin interfaceAdvancedVoiceOptionsOrBuilder- Returns:
- The relaxSafetyFilters.
-
setRelaxSafetyFilters
Deprecated.google.cloud.texttospeech.v1.AdvancedVoiceOptions.relax_safety_filters is deprecated. See google/cloud/texttospeech/v1/cloud_tts.proto;l=224Optional. Input only. Deprecated, use safety_settings instead. If true, relaxes safety filters for Gemini TTS.
bool relax_safety_filters = 8 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The relaxSafetyFilters to set.- Returns:
- This builder for chaining.
-
clearRelaxSafetyFilters
Deprecated.google.cloud.texttospeech.v1.AdvancedVoiceOptions.relax_safety_filters is deprecated. See google/cloud/texttospeech/v1/cloud_tts.proto;l=224Optional. Input only. Deprecated, use safety_settings instead. If true, relaxes safety filters for Gemini TTS.
bool relax_safety_filters = 8 [deprecated = true, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasSafetySettings
public boolean hasSafetySettings()Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the safety setting will be blocked if the harm probability is above the threshold. Otherwise, the safety filter will be disabled by default.
.google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSafetySettingsin interfaceAdvancedVoiceOptionsOrBuilder- Returns:
- Whether the safetySettings field is set.
-
getSafetySettings
Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the safety setting will be blocked if the harm probability is above the threshold. Otherwise, the safety filter will be disabled by default.
.google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getSafetySettingsin interfaceAdvancedVoiceOptionsOrBuilder- Returns:
- The safetySettings.
-
setSafetySettings
Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the safety setting will be blocked if the harm probability is above the threshold. Otherwise, the safety filter will be disabled by default.
.google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; -
setSafetySettings
public AdvancedVoiceOptions.Builder setSafetySettings(AdvancedVoiceOptions.SafetySettings.Builder builderForValue) Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the safety setting will be blocked if the harm probability is above the threshold. Otherwise, the safety filter will be disabled by default.
.google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; -
mergeSafetySettings
Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the safety setting will be blocked if the harm probability is above the threshold. Otherwise, the safety filter will be disabled by default.
.google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; -
clearSafetySettings
Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the safety setting will be blocked if the harm probability is above the threshold. Otherwise, the safety filter will be disabled by default.
.google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; -
getSafetySettingsBuilder
Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the safety setting will be blocked if the harm probability is above the threshold. Otherwise, the safety filter will be disabled by default.
.google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; -
getSafetySettingsOrBuilder
Optional. Input only. This applies to Gemini TTS only. If set, the category specified in the safety setting will be blocked if the harm probability is above the threshold. Otherwise, the safety filter will be disabled by default.
.google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings safety_settings = 9 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getSafetySettingsOrBuilderin interfaceAdvancedVoiceOptionsOrBuilder
-
hasEnableTextnorm
public boolean hasEnableTextnorm()Optional. If true, textnorm will be applied to text input. This feature is enabled by default. Only applies for Gemini TTS.
optional bool enable_textnorm = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEnableTextnormin interfaceAdvancedVoiceOptionsOrBuilder- Returns:
- Whether the enableTextnorm field is set.
-
getEnableTextnorm
public boolean getEnableTextnorm()Optional. If true, textnorm will be applied to text input. This feature is enabled by default. Only applies for Gemini TTS.
optional bool enable_textnorm = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnableTextnormin interfaceAdvancedVoiceOptionsOrBuilder- Returns:
- The enableTextnorm.
-
setEnableTextnorm
Optional. If true, textnorm will be applied to text input. This feature is enabled by default. Only applies for Gemini TTS.
optional bool enable_textnorm = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enableTextnorm to set.- Returns:
- This builder for chaining.
-
clearEnableTextnorm
Optional. If true, textnorm will be applied to text input. This feature is enabled by default. Only applies for Gemini TTS.
optional bool enable_textnorm = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-