public static final class SynthesizeSpeechRequest.Builder extends GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder> implements SynthesizeSpeechRequestOrBuilder
The top-level message sent by the client for the `SynthesizeSpeech` method.Protobuf type
google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
public SynthesizeSpeechRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
public SynthesizeSpeechRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public SynthesizeSpeechRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public SynthesizeSpeechRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public SynthesizeSpeechRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
public SynthesizeSpeechRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
public SynthesizeSpeechRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
public SynthesizeSpeechRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
public SynthesizeSpeechRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
public SynthesizeSpeechRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
public SynthesizeSpeechRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<SynthesizeSpeechRequest.Builder>
public SynthesizeSpeechRequest.Builder mergeFrom(SynthesizeSpeechRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
public SynthesizeSpeechRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<SynthesizeSpeechRequest.Builder>
java.io.IOException
public boolean hasInput()
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1beta1.SynthesisInput input = 1;
hasInput
in interface SynthesizeSpeechRequestOrBuilder
public SynthesisInput getInput()
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1beta1.SynthesisInput input = 1;
getInput
in interface SynthesizeSpeechRequestOrBuilder
public SynthesizeSpeechRequest.Builder setInput(SynthesisInput value)
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1beta1.SynthesisInput input = 1;
public SynthesizeSpeechRequest.Builder setInput(SynthesisInput.Builder builderForValue)
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1beta1.SynthesisInput input = 1;
public SynthesizeSpeechRequest.Builder mergeInput(SynthesisInput value)
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1beta1.SynthesisInput input = 1;
public SynthesizeSpeechRequest.Builder clearInput()
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1beta1.SynthesisInput input = 1;
public SynthesisInput.Builder getInputBuilder()
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1beta1.SynthesisInput input = 1;
public SynthesisInputOrBuilder getInputOrBuilder()
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1beta1.SynthesisInput input = 1;
getInputOrBuilder
in interface SynthesizeSpeechRequestOrBuilder
public boolean hasVoice()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2;
hasVoice
in interface SynthesizeSpeechRequestOrBuilder
public VoiceSelectionParams getVoice()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2;
getVoice
in interface SynthesizeSpeechRequestOrBuilder
public SynthesizeSpeechRequest.Builder setVoice(VoiceSelectionParams value)
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2;
public SynthesizeSpeechRequest.Builder setVoice(VoiceSelectionParams.Builder builderForValue)
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2;
public SynthesizeSpeechRequest.Builder mergeVoice(VoiceSelectionParams value)
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2;
public SynthesizeSpeechRequest.Builder clearVoice()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2;
public VoiceSelectionParams.Builder getVoiceBuilder()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2;
public VoiceSelectionParamsOrBuilder getVoiceOrBuilder()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2;
getVoiceOrBuilder
in interface SynthesizeSpeechRequestOrBuilder
public boolean hasAudioConfig()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3;
hasAudioConfig
in interface SynthesizeSpeechRequestOrBuilder
public AudioConfig getAudioConfig()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3;
getAudioConfig
in interface SynthesizeSpeechRequestOrBuilder
public SynthesizeSpeechRequest.Builder setAudioConfig(AudioConfig value)
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3;
public SynthesizeSpeechRequest.Builder setAudioConfig(AudioConfig.Builder builderForValue)
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3;
public SynthesizeSpeechRequest.Builder mergeAudioConfig(AudioConfig value)
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3;
public SynthesizeSpeechRequest.Builder clearAudioConfig()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3;
public AudioConfig.Builder getAudioConfigBuilder()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3;
public AudioConfigOrBuilder getAudioConfigOrBuilder()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3;
getAudioConfigOrBuilder
in interface SynthesizeSpeechRequestOrBuilder
public final SynthesizeSpeechRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
public final SynthesizeSpeechRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>