Class SynthesizeLongAudioRequest.Builder (2.8.0)

public static final class SynthesizeLongAudioRequest.Builder extends GeneratedMessageV3.Builder<SynthesizeLongAudioRequest.Builder> implements SynthesizeLongAudioRequestOrBuilder

The top-level message sent by the client for the SynthesizeLongAudio method.

Protobuf type google.cloud.texttospeech.v1.SynthesizeLongAudioRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SynthesizeLongAudioRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder
Overrides

build()

public SynthesizeLongAudioRequest build()
Returns
TypeDescription
SynthesizeLongAudioRequest

buildPartial()

public SynthesizeLongAudioRequest buildPartial()
Returns
TypeDescription
SynthesizeLongAudioRequest

clear()

public SynthesizeLongAudioRequest.Builder clear()
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder
Overrides

clearAudioConfig()

public SynthesizeLongAudioRequest.Builder clearAudioConfig()

Required. The configuration of the synthesized audio.

.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public SynthesizeLongAudioRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder
Overrides

clearInput()

public SynthesizeLongAudioRequest.Builder clearInput()

Required. The Synthesizer requires either plain text or SSML as input.

.google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SynthesizeLongAudioRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder
Overrides

clearOutputGcsUri()

public SynthesizeLongAudioRequest.Builder clearOutputGcsUri()

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;

Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

This builder for chaining.

clearParent()

public SynthesizeLongAudioRequest.Builder clearParent()

The resource states of the request in the form of projects/*/locations/*/voices/*.

string parent = 1;

Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

This builder for chaining.

clearVoice()

public SynthesizeLongAudioRequest.Builder clearVoice()

The desired voice of the synthesized audio.

.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5;

Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

clone()

public SynthesizeLongAudioRequest.Builder clone()
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder
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];

Returns
TypeDescription
AudioConfig

The audioConfig.

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];

Returns
TypeDescription
AudioConfig.Builder

getAudioConfigOrBuilder()

public AudioConfigOrBuilder getAudioConfigOrBuilder()

Required. The configuration of the synthesized audio.

.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AudioConfigOrBuilder

getDefaultInstanceForType()

public SynthesizeLongAudioRequest getDefaultInstanceForType()
Returns
TypeDescription
SynthesizeLongAudioRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInput()

public SynthesisInput getInput()

Required. The Synthesizer requires either plain text or SSML as input.

.google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SynthesisInput

The input.

getInputBuilder()

public SynthesisInput.Builder getInputBuilder()

Required. The Synthesizer requires either plain text or SSML as input.

.google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SynthesisInput.Builder

getInputOrBuilder()

public SynthesisInputOrBuilder getInputOrBuilder()

Required. The Synthesizer requires either plain text or SSML as input.

.google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SynthesisInputOrBuilder

getOutputGcsUri()

public String getOutputGcsUri()

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;

Returns
TypeDescription
String

The outputGcsUri.

getOutputGcsUriBytes()

public ByteString getOutputGcsUriBytes()

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;

Returns
TypeDescription
ByteString

The bytes for outputGcsUri.

getParent()

public String getParent()

The resource states of the request in the form of projects/*/locations/*/voices/*.

string parent = 1;

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The resource states of the request in the form of projects/*/locations/*/voices/*.

string parent = 1;

Returns
TypeDescription
ByteString

The bytes for parent.

getVoice()

public VoiceSelectionParams getVoice()

The desired voice of the synthesized audio.

.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5;

Returns
TypeDescription
VoiceSelectionParams

The voice.

getVoiceBuilder()

public VoiceSelectionParams.Builder getVoiceBuilder()

The desired voice of the synthesized audio.

.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5;

Returns
TypeDescription
VoiceSelectionParams.Builder

getVoiceOrBuilder()

public VoiceSelectionParamsOrBuilder getVoiceOrBuilder()

The desired voice of the synthesized audio.

.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5;

Returns
TypeDescription
VoiceSelectionParamsOrBuilder

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
TypeDescription
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 = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the input field is set.

hasVoice()

public boolean hasVoice()

The desired voice of the synthesized audio.

.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5;

Returns
TypeDescription
boolean

Whether the voice field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAudioConfig(AudioConfig value)

public SynthesizeLongAudioRequest.Builder mergeAudioConfig(AudioConfig value)

Required. The configuration of the synthesized audio.

.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAudioConfig
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

mergeFrom(SynthesizeLongAudioRequest other)

public SynthesizeLongAudioRequest.Builder mergeFrom(SynthesizeLongAudioRequest other)
Parameter
NameDescription
otherSynthesizeLongAudioRequest
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SynthesizeLongAudioRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SynthesizeLongAudioRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder
Overrides

mergeInput(SynthesisInput value)

public SynthesizeLongAudioRequest.Builder mergeInput(SynthesisInput value)

Required. The Synthesizer requires either plain text or SSML as input.

.google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueSynthesisInput
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SynthesizeLongAudioRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder
Overrides

mergeVoice(VoiceSelectionParams value)

public SynthesizeLongAudioRequest.Builder mergeVoice(VoiceSelectionParams value)

The desired voice of the synthesized audio.

.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5;

Parameter
NameDescription
valueVoiceSelectionParams
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

setAudioConfig(AudioConfig value)

public SynthesizeLongAudioRequest.Builder setAudioConfig(AudioConfig value)

Required. The configuration of the synthesized audio.

.google.cloud.texttospeech.v1.AudioConfig audio_config = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAudioConfig
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

setAudioConfig(AudioConfig.Builder builderForValue)

public SynthesizeLongAudioRequest.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];

Parameter
NameDescription
builderForValueAudioConfig.Builder
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SynthesizeLongAudioRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder
Overrides

setInput(SynthesisInput value)

public SynthesizeLongAudioRequest.Builder setInput(SynthesisInput value)

Required. The Synthesizer requires either plain text or SSML as input.

.google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueSynthesisInput
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

setInput(SynthesisInput.Builder builderForValue)

public SynthesizeLongAudioRequest.Builder setInput(SynthesisInput.Builder builderForValue)

Required. The Synthesizer requires either plain text or SSML as input.

.google.cloud.texttospeech.v1.SynthesisInput input = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueSynthesisInput.Builder
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

setOutputGcsUri(String value)

public SynthesizeLongAudioRequest.Builder setOutputGcsUri(String value)

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;

Parameter
NameDescription
valueString

The outputGcsUri to set.

Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

This builder for chaining.

setOutputGcsUriBytes(ByteString value)

public SynthesizeLongAudioRequest.Builder setOutputGcsUriBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for outputGcsUri to set.

Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

This builder for chaining.

setParent(String value)

public SynthesizeLongAudioRequest.Builder setParent(String value)

The resource states of the request in the form of projects/*/locations/*/voices/*.

string parent = 1;

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public SynthesizeLongAudioRequest.Builder setParentBytes(ByteString value)

The resource states of the request in the form of projects/*/locations/*/voices/*.

string parent = 1;

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SynthesizeLongAudioRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SynthesizeLongAudioRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder
Overrides

setVoice(VoiceSelectionParams value)

public SynthesizeLongAudioRequest.Builder setVoice(VoiceSelectionParams value)

The desired voice of the synthesized audio.

.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5;

Parameter
NameDescription
valueVoiceSelectionParams
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder

setVoice(VoiceSelectionParams.Builder builderForValue)

public SynthesizeLongAudioRequest.Builder setVoice(VoiceSelectionParams.Builder builderForValue)

The desired voice of the synthesized audio.

.google.cloud.texttospeech.v1.VoiceSelectionParams voice = 5;

Parameter
NameDescription
builderForValueVoiceSelectionParams.Builder
Returns
TypeDescription
SynthesizeLongAudioRequest.Builder