Class StreamingSynthesizeResponse.Builder (2.52.0)

public static final class StreamingSynthesizeResponse.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StreamingSynthesizeResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StreamingSynthesizeResponse.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public StreamingSynthesizeResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StreamingSynthesizeResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StreamingSynthesizeResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StreamingSynthesizeResponse.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamingSynthesizeResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public StreamingSynthesizeResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StreamingSynthesizeResponse.Builder
Overrides

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

public StreamingSynthesizeResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StreamingSynthesizeResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StreamingSynthesizeResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamingSynthesizeResponse.Builder
Overrides