Class StreamingSynthesizeConfig.Builder (2.56.0)

public static final class StreamingSynthesizeConfig.Builder extends GeneratedMessageV3.Builder<StreamingSynthesizeConfig.Builder> implements StreamingSynthesizeConfigOrBuilder

Provides configuration information for the StreamingSynthesize request.

Protobuf type google.cloud.texttospeech.v1beta1.StreamingSynthesizeConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StreamingSynthesizeConfig build()
Returns
Type Description
StreamingSynthesizeConfig

buildPartial()

public StreamingSynthesizeConfig buildPartial()
Returns
Type Description
StreamingSynthesizeConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVoice()

public StreamingSynthesizeConfig.Builder clearVoice()

Required. The desired voice of the synthesized audio.

.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StreamingSynthesizeConfig.Builder

clone()

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

getDefaultInstanceForType()

public StreamingSynthesizeConfig getDefaultInstanceForType()
Returns
Type Description
StreamingSynthesizeConfig

getDescriptorForType()

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

getVoice()

public VoiceSelectionParams getVoice()

Required. The desired voice of the synthesized audio.

.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VoiceSelectionParams

The voice.

getVoiceBuilder()

public VoiceSelectionParams.Builder getVoiceBuilder()

Required. The desired voice of the synthesized audio.

.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VoiceSelectionParams.Builder

getVoiceOrBuilder()

public VoiceSelectionParamsOrBuilder getVoiceOrBuilder()

Required. The desired voice of the synthesized audio.

.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VoiceSelectionParamsOrBuilder

hasVoice()

public boolean hasVoice()

Required. The desired voice of the synthesized audio.

.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the voice field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StreamingSynthesizeConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVoice(VoiceSelectionParams value)

public StreamingSynthesizeConfig.Builder mergeVoice(VoiceSelectionParams value)

Required. The desired voice of the synthesized audio.

.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value VoiceSelectionParams
Returns
Type Description
StreamingSynthesizeConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVoice(VoiceSelectionParams value)

public StreamingSynthesizeConfig.Builder setVoice(VoiceSelectionParams value)

Required. The desired voice of the synthesized audio.

.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value VoiceSelectionParams
Returns
Type Description
StreamingSynthesizeConfig.Builder

setVoice(VoiceSelectionParams.Builder builderForValue)

public StreamingSynthesizeConfig.Builder setVoice(VoiceSelectionParams.Builder builderForValue)

Required. The desired voice of the synthesized audio.

.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 1 [(.google.api.field_behavior) = REQUIRED];

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