Class StreamingSynthesizeResponse.Builder (2.84.0)

public static final class StreamingSynthesizeResponse.Builder extends GeneratedMessage.Builder<StreamingSynthesizeResponse.Builder> implements StreamingSynthesizeResponseOrBuilder

StreamingSynthesizeResponse is the only message returned to the client by StreamingSynthesize method. A series of zero or more StreamingSynthesizeResponse messages are streamed back to the client.

Protobuf type google.cloud.texttospeech.v1beta1.StreamingSynthesizeResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public StreamingSynthesizeResponse build()
Returns
Type Description
StreamingSynthesizeResponse

buildPartial()

public StreamingSynthesizeResponse buildPartial()
Returns
Type Description
StreamingSynthesizeResponse

clear()

public StreamingSynthesizeResponse.Builder clear()
Returns
Type Description
StreamingSynthesizeResponse.Builder
Overrides

clearAudioContent()

public StreamingSynthesizeResponse.Builder clearAudioContent()

The audio data bytes encoded as specified in the request. This is headerless LINEAR16 audio with a sample rate of 24000.

bytes audio_content = 1;

Returns
Type Description
StreamingSynthesizeResponse.Builder

This builder for chaining.

getAudioContent()

public ByteString getAudioContent()

The audio data bytes encoded as specified in the request. This is headerless LINEAR16 audio with a sample rate of 24000.

bytes audio_content = 1;

Returns
Type Description
ByteString

The audioContent.

getDefaultInstanceForType()

public StreamingSynthesizeResponse getDefaultInstanceForType()
Returns
Type Description
StreamingSynthesizeResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StreamingSynthesizeResponse other)

public StreamingSynthesizeResponse.Builder mergeFrom(StreamingSynthesizeResponse other)
Parameter
Name Description
other StreamingSynthesizeResponse
Returns
Type Description
StreamingSynthesizeResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StreamingSynthesizeResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingSynthesizeResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StreamingSynthesizeResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StreamingSynthesizeResponse.Builder
Overrides

setAudioContent(ByteString value)

public StreamingSynthesizeResponse.Builder setAudioContent(ByteString value)

The audio data bytes encoded as specified in the request. This is headerless LINEAR16 audio with a sample rate of 24000.

bytes audio_content = 1;

Parameter
Name Description
value ByteString

The audioContent to set.

Returns
Type Description
StreamingSynthesizeResponse.Builder

This builder for chaining.