- 2.53.0 (latest)
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.9
- 2.3.0
- 2.2.1
- 2.1.5
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SynthesizeSpeechRequest.BuilderImplements
SynthesizeSpeechRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllEnableTimePointing(Iterable<? extends SynthesizeSpeechRequest.TimepointType> values)
public SynthesizeSpeechRequest.Builder addAllEnableTimePointing(Iterable<? extends SynthesizeSpeechRequest.TimepointType> values)
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
Name | Description |
values | Iterable<? extends com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType> The enableTimePointing to add. |
Type | Description |
SynthesizeSpeechRequest.Builder | This builder for chaining. |
addAllEnableTimePointingValue(Iterable<Integer> values)
public SynthesizeSpeechRequest.Builder addAllEnableTimePointingValue(Iterable<Integer> values)
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
Name | Description |
values | Iterable<Integer> The enum numeric values on the wire for enableTimePointing to add. |
Type | Description |
SynthesizeSpeechRequest.Builder | This builder for chaining. |
addEnableTimePointing(SynthesizeSpeechRequest.TimepointType value)
public SynthesizeSpeechRequest.Builder addEnableTimePointing(SynthesizeSpeechRequest.TimepointType value)
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
Name | Description |
value | SynthesizeSpeechRequest.TimepointType The enableTimePointing to add. |
Type | Description |
SynthesizeSpeechRequest.Builder | This builder for chaining. |
addEnableTimePointingValue(int value)
public SynthesizeSpeechRequest.Builder addEnableTimePointingValue(int value)
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
Name | Description |
value | int The enum numeric value on the wire for enableTimePointing to add. |
Type | Description |
SynthesizeSpeechRequest.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SynthesizeSpeechRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SynthesizeSpeechRequest.Builder |
build()
public SynthesizeSpeechRequest build()
Type | Description |
SynthesizeSpeechRequest |
buildPartial()
public SynthesizeSpeechRequest buildPartial()
Type | Description |
SynthesizeSpeechRequest |
clear()
public SynthesizeSpeechRequest.Builder clear()
Type | Description |
SynthesizeSpeechRequest.Builder |
clearAudioConfig()
public SynthesizeSpeechRequest.Builder clearAudioConfig()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
SynthesizeSpeechRequest.Builder |
clearEnableTimePointing()
public SynthesizeSpeechRequest.Builder clearEnableTimePointing()
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
Type | Description |
SynthesizeSpeechRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public SynthesizeSpeechRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
SynthesizeSpeechRequest.Builder |
clearInput()
public SynthesizeSpeechRequest.Builder clearInput()
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
SynthesizeSpeechRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public SynthesizeSpeechRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
SynthesizeSpeechRequest.Builder |
clearVoice()
public SynthesizeSpeechRequest.Builder clearVoice()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
SynthesizeSpeechRequest.Builder |
clone()
public SynthesizeSpeechRequest.Builder clone()
Type | Description |
SynthesizeSpeechRequest.Builder |
getAudioConfig()
public AudioConfig getAudioConfig()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
AudioConfig | The audioConfig. |
getAudioConfigBuilder()
public AudioConfig.Builder getAudioConfigBuilder()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
AudioConfig.Builder |
getAudioConfigOrBuilder()
public AudioConfigOrBuilder getAudioConfigOrBuilder()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
AudioConfigOrBuilder |
getDefaultInstanceForType()
public SynthesizeSpeechRequest getDefaultInstanceForType()
Type | Description |
SynthesizeSpeechRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEnableTimePointing(int index)
public SynthesizeSpeechRequest.TimepointType getEnableTimePointing(int index)
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
Name | Description |
index | int The index of the element to return. |
Type | Description |
SynthesizeSpeechRequest.TimepointType | The enableTimePointing at the given index. |
getEnableTimePointingCount()
public int getEnableTimePointingCount()
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
Type | Description |
int | The count of enableTimePointing. |
getEnableTimePointingList()
public List<SynthesizeSpeechRequest.TimepointType> getEnableTimePointingList()
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
Type | Description |
List<TimepointType> | A list containing the enableTimePointing. |
getEnableTimePointingValue(int index)
public int getEnableTimePointingValue(int index)
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
Name | Description |
index | int The index of the value to return. |
Type | Description |
int | The enum numeric value on the wire of enableTimePointing at the given index. |
getEnableTimePointingValueList()
public List<Integer> getEnableTimePointingValueList()
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
Type | Description |
List<Integer> | A list containing the enum numeric values on the wire for enableTimePointing. |
getInput()
public SynthesisInput getInput()
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
SynthesisInput | The input. |
getInputBuilder()
public SynthesisInput.Builder getInputBuilder()
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
SynthesisInput.Builder |
getInputOrBuilder()
public SynthesisInputOrBuilder getInputOrBuilder()
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
SynthesisInputOrBuilder |
getVoice()
public VoiceSelectionParams getVoice()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
VoiceSelectionParams | The voice. |
getVoiceBuilder()
public VoiceSelectionParams.Builder getVoiceBuilder()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
VoiceSelectionParams.Builder |
getVoiceOrBuilder()
public VoiceSelectionParamsOrBuilder getVoiceOrBuilder()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
VoiceSelectionParamsOrBuilder |
hasAudioConfig()
public boolean hasAudioConfig()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
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.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
boolean | Whether the input field is set. |
hasVoice()
public boolean hasVoice()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
boolean | Whether the voice field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeAudioConfig(AudioConfig value)
public SynthesizeSpeechRequest.Builder mergeAudioConfig(AudioConfig value)
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | AudioConfig |
Type | Description |
SynthesizeSpeechRequest.Builder |
mergeFrom(SynthesizeSpeechRequest other)
public SynthesizeSpeechRequest.Builder mergeFrom(SynthesizeSpeechRequest other)
Name | Description |
other | SynthesizeSpeechRequest |
Type | Description |
SynthesizeSpeechRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SynthesizeSpeechRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SynthesizeSpeechRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public SynthesizeSpeechRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
SynthesizeSpeechRequest.Builder |
mergeInput(SynthesisInput value)
public SynthesizeSpeechRequest.Builder mergeInput(SynthesisInput value)
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | SynthesisInput |
Type | Description |
SynthesizeSpeechRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SynthesizeSpeechRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SynthesizeSpeechRequest.Builder |
mergeVoice(VoiceSelectionParams value)
public SynthesizeSpeechRequest.Builder mergeVoice(VoiceSelectionParams value)
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | VoiceSelectionParams |
Type | Description |
SynthesizeSpeechRequest.Builder |
setAudioConfig(AudioConfig value)
public SynthesizeSpeechRequest.Builder setAudioConfig(AudioConfig value)
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | AudioConfig |
Type | Description |
SynthesizeSpeechRequest.Builder |
setAudioConfig(AudioConfig.Builder builderForValue)
public SynthesizeSpeechRequest.Builder setAudioConfig(AudioConfig.Builder builderForValue)
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
builderForValue | AudioConfig.Builder |
Type | Description |
SynthesizeSpeechRequest.Builder |
setEnableTimePointing(int index, SynthesizeSpeechRequest.TimepointType value)
public SynthesizeSpeechRequest.Builder setEnableTimePointing(int index, SynthesizeSpeechRequest.TimepointType value)
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
Name | Description |
index | int The index to set the value at. |
value | SynthesizeSpeechRequest.TimepointType The enableTimePointing to set. |
Type | Description |
SynthesizeSpeechRequest.Builder | This builder for chaining. |
setEnableTimePointingValue(int index, int value)
public SynthesizeSpeechRequest.Builder setEnableTimePointingValue(int index, int value)
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
Name | Description |
index | int The index to set the value at. |
value | int The enum numeric value on the wire for enableTimePointing to set. |
Type | Description |
SynthesizeSpeechRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public SynthesizeSpeechRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SynthesizeSpeechRequest.Builder |
setInput(SynthesisInput value)
public SynthesizeSpeechRequest.Builder setInput(SynthesisInput value)
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | SynthesisInput |
Type | Description |
SynthesizeSpeechRequest.Builder |
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.v1beta1.SynthesisInput input = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
builderForValue | SynthesisInput.Builder |
Type | Description |
SynthesizeSpeechRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SynthesizeSpeechRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
SynthesizeSpeechRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final SynthesizeSpeechRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SynthesizeSpeechRequest.Builder |
setVoice(VoiceSelectionParams value)
public SynthesizeSpeechRequest.Builder setVoice(VoiceSelectionParams value)
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | VoiceSelectionParams |
Type | Description |
SynthesizeSpeechRequest.Builder |
setVoice(VoiceSelectionParams.Builder builderForValue)
public SynthesizeSpeechRequest.Builder setVoice(VoiceSelectionParams.Builder builderForValue)
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
builderForValue | VoiceSelectionParams.Builder |
Type | Description |
SynthesizeSpeechRequest.Builder |