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.v1.SynthesizeSpeechRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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 SynthesizeSpeechRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SynthesizeSpeechRequest build()
buildPartial()
public SynthesizeSpeechRequest buildPartial()
clear()
public SynthesizeSpeechRequest.Builder clear()
Overrides
clearAudioConfig()
public SynthesizeSpeechRequest.Builder clearAudioConfig()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public SynthesizeSpeechRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearInput()
public SynthesizeSpeechRequest.Builder clearInput()
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public SynthesizeSpeechRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearVoice()
public SynthesizeSpeechRequest.Builder clearVoice()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
clone()
public SynthesizeSpeechRequest.Builder clone()
Overrides
getAudioConfig()
public AudioConfig getAudioConfig()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
getAudioConfigBuilder()
public AudioConfig.Builder getAudioConfigBuilder()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
getAudioConfigOrBuilder()
public AudioConfigOrBuilder getAudioConfigOrBuilder()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public SynthesizeSpeechRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getInput()
public SynthesisInput getInput()
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
getInputBuilder()
public SynthesisInput.Builder getInputBuilder()
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
getInputOrBuilder()
public SynthesisInputOrBuilder getInputOrBuilder()
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
getVoice()
public VoiceSelectionParams getVoice()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
getVoiceBuilder()
public VoiceSelectionParams.Builder getVoiceBuilder()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
getVoiceOrBuilder()
public VoiceSelectionParamsOrBuilder getVoiceOrBuilder()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
hasAudioConfig()
public boolean hasAudioConfig()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the audioConfig field is set.
|
hasInput()
public boolean hasInput()
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the input field is set.
|
hasVoice()
public boolean hasVoice()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the voice field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeAudioConfig(AudioConfig value)
public SynthesizeSpeechRequest.Builder mergeAudioConfig(AudioConfig value)
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
mergeFrom(SynthesizeSpeechRequest other)
public SynthesizeSpeechRequest.Builder mergeFrom(SynthesizeSpeechRequest other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SynthesizeSpeechRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SynthesizeSpeechRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeInput(SynthesisInput value)
public SynthesizeSpeechRequest.Builder mergeInput(SynthesisInput value)
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SynthesizeSpeechRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
mergeVoice(VoiceSelectionParams value)
public SynthesizeSpeechRequest.Builder mergeVoice(VoiceSelectionParams value)
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
setAudioConfig(AudioConfig value)
public SynthesizeSpeechRequest.Builder setAudioConfig(AudioConfig value)
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
setAudioConfig(AudioConfig.Builder builderForValue)
public SynthesizeSpeechRequest.Builder setAudioConfig(AudioConfig.Builder builderForValue)
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
setField(Descriptors.FieldDescriptor field, Object value)
public SynthesizeSpeechRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setInput(SynthesisInput value)
public SynthesizeSpeechRequest.Builder setInput(SynthesisInput value)
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
setInput(SynthesisInput.Builder builderForValue)
public SynthesizeSpeechRequest.Builder setInput(SynthesisInput.Builder builderForValue)
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SynthesizeSpeechRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SynthesizeSpeechRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setVoice(VoiceSelectionParams value)
public SynthesizeSpeechRequest.Builder setVoice(VoiceSelectionParams value)
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
setVoice(VoiceSelectionParams.Builder builderForValue)
public SynthesizeSpeechRequest.Builder setVoice(VoiceSelectionParams.Builder builderForValue)
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];