Class StreamingSynthesizeRequest.Builder (2.84.0)

public static final class StreamingSynthesizeRequest.Builder extends GeneratedMessage.Builder<StreamingSynthesizeRequest.Builder> implements StreamingSynthesizeRequestOrBuilder

Request message for the StreamingSynthesize method. Multiple StreamingSynthesizeRequest messages are sent in one call. The first message must contain a streaming_config that fully specifies the request configuration and must not contain input. All subsequent messages must only have input set.

Protobuf type google.cloud.texttospeech.v1.StreamingSynthesizeRequest

Static Methods

getDescriptor()

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

Methods

build()

public StreamingSynthesizeRequest build()
Returns
Type Description
StreamingSynthesizeRequest

buildPartial()

public StreamingSynthesizeRequest buildPartial()
Returns
Type Description
StreamingSynthesizeRequest

clear()

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

clearInput()

public StreamingSynthesizeRequest.Builder clearInput()

Input to synthesize. Specified in all messages but the first in a StreamingSynthesize call.

.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;

Returns
Type Description
StreamingSynthesizeRequest.Builder

clearStreamingConfig()

public StreamingSynthesizeRequest.Builder clearStreamingConfig()

StreamingSynthesizeConfig to be used in this streaming attempt. Only specified in the first message sent in a StreamingSynthesize call.

.google.cloud.texttospeech.v1.StreamingSynthesizeConfig streaming_config = 1;

Returns
Type Description
StreamingSynthesizeRequest.Builder

clearStreamingRequest()

public StreamingSynthesizeRequest.Builder clearStreamingRequest()
Returns
Type Description
StreamingSynthesizeRequest.Builder

getDefaultInstanceForType()

public StreamingSynthesizeRequest getDefaultInstanceForType()
Returns
Type Description
StreamingSynthesizeRequest

getDescriptorForType()

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

getInput()

public StreamingSynthesisInput getInput()

Input to synthesize. Specified in all messages but the first in a StreamingSynthesize call.

.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;

Returns
Type Description
StreamingSynthesisInput

The input.

getInputBuilder()

public StreamingSynthesisInput.Builder getInputBuilder()

Input to synthesize. Specified in all messages but the first in a StreamingSynthesize call.

.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;

Returns
Type Description
StreamingSynthesisInput.Builder

getInputOrBuilder()

public StreamingSynthesisInputOrBuilder getInputOrBuilder()

Input to synthesize. Specified in all messages but the first in a StreamingSynthesize call.

.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;

Returns
Type Description
StreamingSynthesisInputOrBuilder

getStreamingConfig()

public StreamingSynthesizeConfig getStreamingConfig()

StreamingSynthesizeConfig to be used in this streaming attempt. Only specified in the first message sent in a StreamingSynthesize call.

.google.cloud.texttospeech.v1.StreamingSynthesizeConfig streaming_config = 1;

Returns
Type Description
StreamingSynthesizeConfig

The streamingConfig.

getStreamingConfigBuilder()

public StreamingSynthesizeConfig.Builder getStreamingConfigBuilder()

StreamingSynthesizeConfig to be used in this streaming attempt. Only specified in the first message sent in a StreamingSynthesize call.

.google.cloud.texttospeech.v1.StreamingSynthesizeConfig streaming_config = 1;

Returns
Type Description
StreamingSynthesizeConfig.Builder

getStreamingConfigOrBuilder()

public StreamingSynthesizeConfigOrBuilder getStreamingConfigOrBuilder()

StreamingSynthesizeConfig to be used in this streaming attempt. Only specified in the first message sent in a StreamingSynthesize call.

.google.cloud.texttospeech.v1.StreamingSynthesizeConfig streaming_config = 1;

Returns
Type Description
StreamingSynthesizeConfigOrBuilder

getStreamingRequestCase()

public StreamingSynthesizeRequest.StreamingRequestCase getStreamingRequestCase()
Returns
Type Description
StreamingSynthesizeRequest.StreamingRequestCase

hasInput()

public boolean hasInput()

Input to synthesize. Specified in all messages but the first in a StreamingSynthesize call.

.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;

Returns
Type Description
boolean

Whether the input field is set.

hasStreamingConfig()

public boolean hasStreamingConfig()

StreamingSynthesizeConfig to be used in this streaming attempt. Only specified in the first message sent in a StreamingSynthesize call.

.google.cloud.texttospeech.v1.StreamingSynthesizeConfig streaming_config = 1;

Returns
Type Description
boolean

Whether the streamingConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StreamingSynthesizeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInput(StreamingSynthesisInput value)

public StreamingSynthesizeRequest.Builder mergeInput(StreamingSynthesisInput value)

Input to synthesize. Specified in all messages but the first in a StreamingSynthesize call.

.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;

Parameter
Name Description
value StreamingSynthesisInput
Returns
Type Description
StreamingSynthesizeRequest.Builder

mergeStreamingConfig(StreamingSynthesizeConfig value)

public StreamingSynthesizeRequest.Builder mergeStreamingConfig(StreamingSynthesizeConfig value)

StreamingSynthesizeConfig to be used in this streaming attempt. Only specified in the first message sent in a StreamingSynthesize call.

.google.cloud.texttospeech.v1.StreamingSynthesizeConfig streaming_config = 1;

Parameter
Name Description
value StreamingSynthesizeConfig
Returns
Type Description
StreamingSynthesizeRequest.Builder

setInput(StreamingSynthesisInput value)

public StreamingSynthesizeRequest.Builder setInput(StreamingSynthesisInput value)

Input to synthesize. Specified in all messages but the first in a StreamingSynthesize call.

.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;

Parameter
Name Description
value StreamingSynthesisInput
Returns
Type Description
StreamingSynthesizeRequest.Builder

setInput(StreamingSynthesisInput.Builder builderForValue)

public StreamingSynthesizeRequest.Builder setInput(StreamingSynthesisInput.Builder builderForValue)

Input to synthesize. Specified in all messages but the first in a StreamingSynthesize call.

.google.cloud.texttospeech.v1.StreamingSynthesisInput input = 2;

Parameter
Name Description
builderForValue StreamingSynthesisInput.Builder
Returns
Type Description
StreamingSynthesizeRequest.Builder

setStreamingConfig(StreamingSynthesizeConfig value)

public StreamingSynthesizeRequest.Builder setStreamingConfig(StreamingSynthesizeConfig value)

StreamingSynthesizeConfig to be used in this streaming attempt. Only specified in the first message sent in a StreamingSynthesize call.

.google.cloud.texttospeech.v1.StreamingSynthesizeConfig streaming_config = 1;

Parameter
Name Description
value StreamingSynthesizeConfig
Returns
Type Description
StreamingSynthesizeRequest.Builder

setStreamingConfig(StreamingSynthesizeConfig.Builder builderForValue)

public StreamingSynthesizeRequest.Builder setStreamingConfig(StreamingSynthesizeConfig.Builder builderForValue)

StreamingSynthesizeConfig to be used in this streaming attempt. Only specified in the first message sent in a StreamingSynthesize call.

.google.cloud.texttospeech.v1.StreamingSynthesizeConfig streaming_config = 1;

Parameter
Name Description
builderForValue StreamingSynthesizeConfig.Builder
Returns
Type Description
StreamingSynthesizeRequest.Builder