Class StreamingSynthesizeRequest.Builder (2.49.0)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public StreamingSynthesizeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.v1beta1.StreamingSynthesisInput input = 2;

Returns
Type Description
StreamingSynthesizeRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.v1beta1.StreamingSynthesizeConfig streaming_config = 1;

Returns
Type Description
StreamingSynthesizeRequest.Builder

clearStreamingRequest()

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

clone()

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

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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.StreamingSynthesizeConfig streaming_config = 1;

Returns
Type Description
boolean

Whether the streamingConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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.v1beta1.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.v1beta1.StreamingSynthesizeConfig streaming_config = 1;

Parameter
Name Description
value StreamingSynthesizeConfig
Returns
Type Description
StreamingSynthesizeRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamingSynthesizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamingSynthesizeRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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.v1beta1.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.v1beta1.StreamingSynthesisInput input = 2;

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

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

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

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.v1beta1.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.v1beta1.StreamingSynthesizeConfig streaming_config = 1;

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

setUnknownFields(UnknownFieldSet unknownFields)

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