Package com.google.cloud.texttospeech.v1
Class SynthesizeLongAudioRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SynthesizeLongAudioRequest.Builder>
com.google.cloud.texttospeech.v1.SynthesizeLongAudioRequest.Builder
- All Implemented Interfaces:
SynthesizeLongAudioRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SynthesizeLongAudioRequest
public static final class SynthesizeLongAudioRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SynthesizeLongAudioRequest.Builder>
implements SynthesizeLongAudioRequestOrBuilder
The top-level message sent by the client for the `SynthesizeLongAudio` method.Protobuf type
google.cloud.texttospeech.v1.SynthesizeLongAudioRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Required.Required.The resource states of the request in the form of `projects/*/locations/*`.Required.Required.Required.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetInput()Required.Required.Required.Required.com.google.protobuf.ByteStringRequired.The resource states of the request in the form of `projects/*/locations/*`.com.google.protobuf.ByteStringThe resource states of the request in the form of `projects/*/locations/*`.getVoice()Required.Required.Required.booleanRequired.booleanhasInput()Required.booleanhasVoice()Required.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAudioConfig(AudioConfig value) Required.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeInput(SynthesisInput value) Required.mergeVoice(VoiceSelectionParams value) Required.setAudioConfig(AudioConfig value) Required.setAudioConfig(AudioConfig.Builder builderForValue) Required.setInput(SynthesisInput value) Required.setInput(SynthesisInput.Builder builderForValue) Required.setOutputGcsUri(String value) Required.setOutputGcsUriBytes(com.google.protobuf.ByteString value) Required.The resource states of the request in the form of `projects/*/locations/*`.setParentBytes(com.google.protobuf.ByteString value) The resource states of the request in the form of `projects/*/locations/*`.setVoice(VoiceSelectionParams value) Required.setVoice(VoiceSelectionParams.Builder builderForValue) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SynthesizeLongAudioRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SynthesizeLongAudioRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SynthesizeLongAudioRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SynthesizeLongAudioRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SynthesizeLongAudioRequest.Builder>
-
mergeFrom
public SynthesizeLongAudioRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SynthesizeLongAudioRequest.Builder>- Throws:
IOException
-
getParent
The resource states of the request in the form of `projects/*/locations/*`.
string parent = 1;- Specified by:
getParentin interfaceSynthesizeLongAudioRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()The resource states of the request in the form of `projects/*/locations/*`.
string parent = 1;- Specified by:
getParentBytesin interfaceSynthesizeLongAudioRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
The resource states of the request in the form of `projects/*/locations/*`.
string parent = 1;- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
The resource states of the request in the form of `projects/*/locations/*`.
string parent = 1;- Returns:
- This builder for chaining.
-
setParentBytes
The resource states of the request in the form of `projects/*/locations/*`.
string parent = 1;- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
hasInput
public boolean hasInput()Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasInputin interfaceSynthesizeLongAudioRequestOrBuilder- Returns:
- Whether the input field is set.
-
getInput
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputin interfaceSynthesizeLongAudioRequestOrBuilder- Returns:
- The input.
-
setInput
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED]; -
setInput
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED]; -
mergeInput
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED]; -
clearInput
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED]; -
getInputBuilder
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED]; -
getInputOrBuilder
Required. The Synthesizer requires either plain text or SSML as input.
.google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputOrBuilderin interfaceSynthesizeLongAudioRequestOrBuilder
-
hasAudioConfig
public boolean hasAudioConfig()Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasAudioConfigin interfaceSynthesizeLongAudioRequestOrBuilder- Returns:
- Whether the audioConfig field is set.
-
getAudioConfig
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAudioConfigin interfaceSynthesizeLongAudioRequestOrBuilder- Returns:
- The audioConfig.
-
setAudioConfig
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; -
setAudioConfig
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; -
mergeAudioConfig
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; -
clearAudioConfig
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; -
getAudioConfigBuilder
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED]; -
getAudioConfigOrBuilder
Required. The configuration of the synthesized audio.
.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAudioConfigOrBuilderin interfaceSynthesizeLongAudioRequestOrBuilder
-
getOutputGcsUri
Required. Specifies a Cloud Storage URI for the synthesis results. Must be specified in the format: `gs://bucket_name/object_name`, and the bucket must already exist.
string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOutputGcsUriin interfaceSynthesizeLongAudioRequestOrBuilder- Returns:
- The outputGcsUri.
-
getOutputGcsUriBytes
public com.google.protobuf.ByteString getOutputGcsUriBytes()Required. Specifies a Cloud Storage URI for the synthesis results. Must be specified in the format: `gs://bucket_name/object_name`, and the bucket must already exist.
string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOutputGcsUriBytesin interfaceSynthesizeLongAudioRequestOrBuilder- Returns:
- The bytes for outputGcsUri.
-
setOutputGcsUri
Required. Specifies a Cloud Storage URI for the synthesis results. Must be specified in the format: `gs://bucket_name/object_name`, and the bucket must already exist.
string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The outputGcsUri to set.- Returns:
- This builder for chaining.
-
clearOutputGcsUri
Required. Specifies a Cloud Storage URI for the synthesis results. Must be specified in the format: `gs://bucket_name/object_name`, and the bucket must already exist.
string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setOutputGcsUriBytes
public SynthesizeLongAudioRequest.Builder setOutputGcsUriBytes(com.google.protobuf.ByteString value) Required. Specifies a Cloud Storage URI for the synthesis results. Must be specified in the format: `gs://bucket_name/object_name`, and the bucket must already exist.
string output_gcs_uri = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for outputGcsUri to set.- Returns:
- This builder for chaining.
-
hasVoice
public boolean hasVoice()Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasVoicein interfaceSynthesizeLongAudioRequestOrBuilder- Returns:
- Whether the voice field is set.
-
getVoice
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getVoicein interfaceSynthesizeLongAudioRequestOrBuilder- Returns:
- The voice.
-
setVoice
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5 [(.google.api.field_behavior) = REQUIRED]; -
setVoice
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5 [(.google.api.field_behavior) = REQUIRED]; -
mergeVoice
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5 [(.google.api.field_behavior) = REQUIRED]; -
clearVoice
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5 [(.google.api.field_behavior) = REQUIRED]; -
getVoiceBuilder
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5 [(.google.api.field_behavior) = REQUIRED]; -
getVoiceOrBuilder
Required. The desired voice of the synthesized audio.
.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getVoiceOrBuilderin interfaceSynthesizeLongAudioRequestOrBuilder
-