Package com.google.cloud.texttospeech.v1
Class StreamingSynthesizeConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StreamingSynthesizeConfig.Builder>
com.google.cloud.texttospeech.v1.StreamingSynthesizeConfig.Builder
- All Implemented Interfaces:
StreamingSynthesizeConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StreamingSynthesizeConfig
public static final class StreamingSynthesizeConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StreamingSynthesizeConfig.Builder>
implements StreamingSynthesizeConfigOrBuilder
Provides configuration information for the StreamingSynthesize request.Protobuf type
google.cloud.texttospeech.v1.StreamingSynthesizeConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Required.Optional.Optional.Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.getVoice()Required.Required.Required.booleanOptional.booleanOptional.booleanOptional.booleanhasVoice()Required.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional.Optional.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.mergeVoice(VoiceSelectionParams value) Required.Optional.setAdvancedVoiceOptions(AdvancedVoiceOptions.Builder builderForValue) Optional.Optional.setCustomPronunciations(CustomPronunciations.Builder builderForValue) Optional.Optional.setStreamingAudioConfig(StreamingAudioConfig.Builder builderForValue) Optional.setVoice(VoiceSelectionParams value) Required.setVoice(VoiceSelectionParams.Builder builderForValue) Required.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<StreamingSynthesizeConfig.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<StreamingSynthesizeConfig.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<StreamingSynthesizeConfig.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<StreamingSynthesizeConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StreamingSynthesizeConfig.Builder>
-
mergeFrom
public StreamingSynthesizeConfig.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<StreamingSynthesizeConfig.Builder>- Throws:
IOException
-
hasVoice
public boolean hasVoice()Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasVoicein interfaceStreamingSynthesizeConfigOrBuilder- Returns:
- Whether the voice field is set.
-
getVoice
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getVoicein interfaceStreamingSynthesizeConfigOrBuilder- Returns:
- The voice.
-
setVoice
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED]; -
setVoice
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED]; -
mergeVoice
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED]; -
clearVoice
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED]; -
getVoiceBuilder
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED]; -
getVoiceOrBuilder
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getVoiceOrBuilderin interfaceStreamingSynthesizeConfigOrBuilder
-
hasStreamingAudioConfig
public boolean hasStreamingAudioConfig()Optional. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasStreamingAudioConfigin interfaceStreamingSynthesizeConfigOrBuilder- Returns:
- Whether the streamingAudioConfig field is set.
-
getStreamingAudioConfig
Optional. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStreamingAudioConfigin interfaceStreamingSynthesizeConfigOrBuilder- Returns:
- The streamingAudioConfig.
-
setStreamingAudioConfig
Optional. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setStreamingAudioConfig
public StreamingSynthesizeConfig.Builder setStreamingAudioConfig(StreamingAudioConfig.Builder builderForValue) Optional. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL]; -
mergeStreamingAudioConfig
Optional. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearStreamingAudioConfig
Optional. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getStreamingAudioConfigBuilder
Optional. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getStreamingAudioConfigOrBuilder
Optional. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.StreamingAudioConfig streaming_audio_config = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStreamingAudioConfigOrBuilderin interfaceStreamingSynthesizeConfigOrBuilder
-
hasCustomPronunciations
public boolean hasCustomPronunciations()Optional. The pronunciation customizations are applied to the input. If this is set, the input is synthesized using the given pronunciation customizations. The initial support is for en-us, with plans to expand to other locales in the future. Instant Clone voices aren't supported. In order to customize the pronunciation of a phrase, there must be an exact match of the phrase in the input types. If using SSML, the phrase must not be inside a phoneme tag.
.google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCustomPronunciationsin interfaceStreamingSynthesizeConfigOrBuilder- Returns:
- Whether the customPronunciations field is set.
-
getCustomPronunciations
Optional. The pronunciation customizations are applied to the input. If this is set, the input is synthesized using the given pronunciation customizations. The initial support is for en-us, with plans to expand to other locales in the future. Instant Clone voices aren't supported. In order to customize the pronunciation of a phrase, there must be an exact match of the phrase in the input types. If using SSML, the phrase must not be inside a phoneme tag.
.google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomPronunciationsin interfaceStreamingSynthesizeConfigOrBuilder- Returns:
- The customPronunciations.
-
setCustomPronunciations
Optional. The pronunciation customizations are applied to the input. If this is set, the input is synthesized using the given pronunciation customizations. The initial support is for en-us, with plans to expand to other locales in the future. Instant Clone voices aren't supported. In order to customize the pronunciation of a phrase, there must be an exact match of the phrase in the input types. If using SSML, the phrase must not be inside a phoneme tag.
.google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL]; -
setCustomPronunciations
public StreamingSynthesizeConfig.Builder setCustomPronunciations(CustomPronunciations.Builder builderForValue) Optional. The pronunciation customizations are applied to the input. If this is set, the input is synthesized using the given pronunciation customizations. The initial support is for en-us, with plans to expand to other locales in the future. Instant Clone voices aren't supported. In order to customize the pronunciation of a phrase, there must be an exact match of the phrase in the input types. If using SSML, the phrase must not be inside a phoneme tag.
.google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL]; -
mergeCustomPronunciations
Optional. The pronunciation customizations are applied to the input. If this is set, the input is synthesized using the given pronunciation customizations. The initial support is for en-us, with plans to expand to other locales in the future. Instant Clone voices aren't supported. In order to customize the pronunciation of a phrase, there must be an exact match of the phrase in the input types. If using SSML, the phrase must not be inside a phoneme tag.
.google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL]; -
clearCustomPronunciations
Optional. The pronunciation customizations are applied to the input. If this is set, the input is synthesized using the given pronunciation customizations. The initial support is for en-us, with plans to expand to other locales in the future. Instant Clone voices aren't supported. In order to customize the pronunciation of a phrase, there must be an exact match of the phrase in the input types. If using SSML, the phrase must not be inside a phoneme tag.
.google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomPronunciationsBuilder
Optional. The pronunciation customizations are applied to the input. If this is set, the input is synthesized using the given pronunciation customizations. The initial support is for en-us, with plans to expand to other locales in the future. Instant Clone voices aren't supported. In order to customize the pronunciation of a phrase, there must be an exact match of the phrase in the input types. If using SSML, the phrase must not be inside a phoneme tag.
.google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomPronunciationsOrBuilder
Optional. The pronunciation customizations are applied to the input. If this is set, the input is synthesized using the given pronunciation customizations. The initial support is for en-us, with plans to expand to other locales in the future. Instant Clone voices aren't supported. In order to customize the pronunciation of a phrase, there must be an exact match of the phrase in the input types. If using SSML, the phrase must not be inside a phoneme tag.
.google.cloud.texttospeech.v1.CustomPronunciations custom_pronunciations = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomPronunciationsOrBuilderin interfaceStreamingSynthesizeConfigOrBuilder
-
hasAdvancedVoiceOptions
public boolean hasAdvancedVoiceOptions()Optional. Advanced voice options.
optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasAdvancedVoiceOptionsin interfaceStreamingSynthesizeConfigOrBuilder- Returns:
- Whether the advancedVoiceOptions field is set.
-
getAdvancedVoiceOptions
Optional. Advanced voice options.
optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAdvancedVoiceOptionsin interfaceStreamingSynthesizeConfigOrBuilder- Returns:
- The advancedVoiceOptions.
-
setAdvancedVoiceOptions
Optional. Advanced voice options.
optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL]; -
setAdvancedVoiceOptions
public StreamingSynthesizeConfig.Builder setAdvancedVoiceOptions(AdvancedVoiceOptions.Builder builderForValue) Optional. Advanced voice options.
optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL]; -
mergeAdvancedVoiceOptions
Optional. Advanced voice options.
optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL]; -
clearAdvancedVoiceOptions
Optional. Advanced voice options.
optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getAdvancedVoiceOptionsBuilder
Optional. Advanced voice options.
optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getAdvancedVoiceOptionsOrBuilder
Optional. Advanced voice options.
optional .google.cloud.texttospeech.v1.AdvancedVoiceOptions advanced_voice_options = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAdvancedVoiceOptionsOrBuilderin interfaceStreamingSynthesizeConfigOrBuilder
-