Class SynthesizeSpeechRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
-
- com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.Builder
-
- All Implemented Interfaces:
SynthesizeSpeechRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SynthesizeSpeechRequest
public static final class SynthesizeSpeechRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder> implements SynthesizeSpeechRequestOrBuilder
The top-level message sent by the client for the `SynthesizeSpeech` method.
Protobuf typegoogle.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
-
clear
public SynthesizeSpeechRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
-
getDefaultInstanceForType
public SynthesizeSpeechRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SynthesizeSpeechRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SynthesizeSpeechRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SynthesizeSpeechRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
-
setField
public SynthesizeSpeechRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
-
clearField
public SynthesizeSpeechRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
-
clearOneof
public SynthesizeSpeechRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
-
setRepeatedField
public SynthesizeSpeechRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
-
addRepeatedField
public SynthesizeSpeechRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
-
mergeFrom
public SynthesizeSpeechRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SynthesizeSpeechRequest.Builder>
-
mergeFrom
public SynthesizeSpeechRequest.Builder mergeFrom(SynthesizeSpeechRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
-
mergeFrom
public SynthesizeSpeechRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SynthesizeSpeechRequest.Builder>
- Throws:
IOException
-
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];
- Specified by:
hasInput
in interfaceSynthesizeSpeechRequestOrBuilder
- Returns:
- Whether the input field is set.
-
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];
- Specified by:
getInput
in interfaceSynthesizeSpeechRequestOrBuilder
- Returns:
- The input.
-
setInput
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];
-
setInput
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];
-
mergeInput
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];
-
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];
-
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];
-
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];
- Specified by:
getInputOrBuilder
in interfaceSynthesizeSpeechRequestOrBuilder
-
hasVoice
public boolean hasVoice()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
hasVoice
in interfaceSynthesizeSpeechRequestOrBuilder
- Returns:
- Whether the voice field is set.
-
getVoice
public VoiceSelectionParams getVoice()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getVoice
in interfaceSynthesizeSpeechRequestOrBuilder
- Returns:
- The voice.
-
setVoice
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];
-
setVoice
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];
-
mergeVoice
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];
-
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];
-
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];
-
getVoiceOrBuilder
public VoiceSelectionParamsOrBuilder getVoiceOrBuilder()
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getVoiceOrBuilder
in interfaceSynthesizeSpeechRequestOrBuilder
-
hasAudioConfig
public boolean hasAudioConfig()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
hasAudioConfig
in interfaceSynthesizeSpeechRequestOrBuilder
- Returns:
- Whether the audioConfig field is set.
-
getAudioConfig
public AudioConfig getAudioConfig()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getAudioConfig
in interfaceSynthesizeSpeechRequestOrBuilder
- Returns:
- The audioConfig.
-
setAudioConfig
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];
-
setAudioConfig
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];
-
mergeAudioConfig
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];
-
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];
-
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];
-
getAudioConfigOrBuilder
public AudioConfigOrBuilder getAudioConfigOrBuilder()
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1beta1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getAudioConfigOrBuilder
in interfaceSynthesizeSpeechRequestOrBuilder
-
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;
- Specified by:
getEnableTimePointingList
in interfaceSynthesizeSpeechRequestOrBuilder
- Returns:
- A list containing the enableTimePointing.
-
getEnableTimePointingCount
public int getEnableTimePointingCount()
Whether and what timepoints are returned in the response.
repeated .google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType enable_time_pointing = 4;
- Specified by:
getEnableTimePointingCount
in interfaceSynthesizeSpeechRequestOrBuilder
- Returns:
- The count of enableTimePointing.
-
getEnableTimePointing
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;
- Specified by:
getEnableTimePointing
in interfaceSynthesizeSpeechRequestOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The enableTimePointing at the given index.
-
setEnableTimePointing
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;
- Parameters:
index
- The index to set the value at.value
- The enableTimePointing to set.- Returns:
- This builder for chaining.
-
addEnableTimePointing
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;
- Parameters:
value
- The enableTimePointing to add.- Returns:
- This builder for chaining.
-
addAllEnableTimePointing
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;
- Parameters:
values
- The enableTimePointing to add.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
getEnableTimePointingValueList
in interfaceSynthesizeSpeechRequestOrBuilder
- Returns:
- A list containing the enum numeric values on the wire for enableTimePointing.
-
getEnableTimePointingValue
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;
- Specified by:
getEnableTimePointingValue
in interfaceSynthesizeSpeechRequestOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The enum numeric value on the wire of enableTimePointing at the given index.
-
setEnableTimePointingValue
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;
- Parameters:
index
- The index to set the value at.value
- The enum numeric value on the wire for enableTimePointing to set.- Returns:
- This builder for chaining.
-
addEnableTimePointingValue
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;
- Parameters:
value
- The enum numeric value on the wire for enableTimePointing to add.- Returns:
- This builder for chaining.
-
addAllEnableTimePointingValue
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;
- Parameters:
values
- The enum numeric values on the wire for enableTimePointing to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SynthesizeSpeechRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
-
mergeUnknownFields
public final SynthesizeSpeechRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SynthesizeSpeechRequest.Builder>
-
-