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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
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, 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, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
public SynthesizeSpeechRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, 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 IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<SynthesizeSpeechRequest.Builder>
IOException
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];
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 [(.google.api.field_behavior) = REQUIRED];
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 [(.google.api.field_behavior) = REQUIRED];
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];
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];
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];
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];
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];
getInputOrBuilder
in interface SynthesizeSpeechRequestOrBuilder
public boolean hasVoice()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
hasVoice
in interface SynthesizeSpeechRequestOrBuilder
public VoiceSelectionParams getVoice()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
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 [(.google.api.field_behavior) = REQUIRED];
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];
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];
public SynthesizeSpeechRequest.Builder clearVoice()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
public VoiceSelectionParams.Builder getVoiceBuilder()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
public VoiceSelectionParamsOrBuilder getVoiceOrBuilder()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
getVoiceOrBuilder
in interface SynthesizeSpeechRequestOrBuilder
public boolean hasAudioConfig()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
hasAudioConfig
in interface SynthesizeSpeechRequestOrBuilder
public AudioConfig getAudioConfig()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
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 [(.google.api.field_behavior) = REQUIRED];
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];
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];
public SynthesizeSpeechRequest.Builder clearAudioConfig()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
public AudioConfig.Builder getAudioConfigBuilder()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
public AudioConfigOrBuilder getAudioConfigOrBuilder()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
getAudioConfigOrBuilder
in interface SynthesizeSpeechRequestOrBuilder
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;
getEnableTimePointingList
in interface SynthesizeSpeechRequestOrBuilder
public int getEnableTimePointingCount()
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
getEnableTimePointingCount
in interface SynthesizeSpeechRequestOrBuilder
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;
getEnableTimePointing
in interface SynthesizeSpeechRequestOrBuilder
index
- The index of the element to return.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;
index
- The index to set the value at.value
- The enableTimePointing to set.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;
value
- The enableTimePointing to add.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;
values
- The enableTimePointing to add.public SynthesizeSpeechRequest.Builder clearEnableTimePointing()
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
public List<Integer> getEnableTimePointingValueList()
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
getEnableTimePointingValueList
in interface SynthesizeSpeechRequestOrBuilder
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;
getEnableTimePointingValue
in interface SynthesizeSpeechRequestOrBuilder
index
- The index of the value to return.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;
index
- The index to set the value at.value
- The enum numeric value on the wire for enableTimePointing to set.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;
value
- The enum numeric value on the wire for enableTimePointing to add.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;
values
- The enum numeric values on the wire for enableTimePointing to add.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>
Copyright © 2022 Google LLC. All rights reserved.