Class AdvancedVoiceOptions.SafetySettings.Builder (2.92.0)

public static final class AdvancedVoiceOptions.SafetySettings.Builder extends GeneratedMessage.Builder<AdvancedVoiceOptions.SafetySettings.Builder> implements AdvancedVoiceOptions.SafetySettingsOrBuilder

Safety settings for the request.

Protobuf type google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySettings

Static Methods

getDescriptor()

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

Methods

addAllSettings(Iterable<? extends AdvancedVoiceOptions.SafetySetting> values)

public AdvancedVoiceOptions.SafetySettings.Builder addAllSettings(Iterable<? extends AdvancedVoiceOptions.SafetySetting> values)

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting>
Returns
Type Description
AdvancedVoiceOptions.SafetySettings.Builder

addSettings(AdvancedVoiceOptions.SafetySetting value)

public AdvancedVoiceOptions.SafetySettings.Builder addSettings(AdvancedVoiceOptions.SafetySetting value)

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Parameter
Name Description
value AdvancedVoiceOptions.SafetySetting
Returns
Type Description
AdvancedVoiceOptions.SafetySettings.Builder

addSettings(AdvancedVoiceOptions.SafetySetting.Builder builderForValue)

public AdvancedVoiceOptions.SafetySettings.Builder addSettings(AdvancedVoiceOptions.SafetySetting.Builder builderForValue)

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Parameter
Name Description
builderForValue AdvancedVoiceOptions.SafetySetting.Builder
Returns
Type Description
AdvancedVoiceOptions.SafetySettings.Builder

addSettings(int index, AdvancedVoiceOptions.SafetySetting value)

public AdvancedVoiceOptions.SafetySettings.Builder addSettings(int index, AdvancedVoiceOptions.SafetySetting value)

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Parameters
Name Description
index int
value AdvancedVoiceOptions.SafetySetting
Returns
Type Description
AdvancedVoiceOptions.SafetySettings.Builder

addSettings(int index, AdvancedVoiceOptions.SafetySetting.Builder builderForValue)

public AdvancedVoiceOptions.SafetySettings.Builder addSettings(int index, AdvancedVoiceOptions.SafetySetting.Builder builderForValue)

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Parameters
Name Description
index int
builderForValue AdvancedVoiceOptions.SafetySetting.Builder
Returns
Type Description
AdvancedVoiceOptions.SafetySettings.Builder

addSettingsBuilder()

public AdvancedVoiceOptions.SafetySetting.Builder addSettingsBuilder()

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Returns
Type Description
AdvancedVoiceOptions.SafetySetting.Builder

addSettingsBuilder(int index)

public AdvancedVoiceOptions.SafetySetting.Builder addSettingsBuilder(int index)

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Parameter
Name Description
index int
Returns
Type Description
AdvancedVoiceOptions.SafetySetting.Builder

build()

public AdvancedVoiceOptions.SafetySettings build()
Returns
Type Description
AdvancedVoiceOptions.SafetySettings

buildPartial()

public AdvancedVoiceOptions.SafetySettings buildPartial()
Returns
Type Description
AdvancedVoiceOptions.SafetySettings

clear()

public AdvancedVoiceOptions.SafetySettings.Builder clear()
Returns
Type Description
AdvancedVoiceOptions.SafetySettings.Builder
Overrides

clearSettings()

public AdvancedVoiceOptions.SafetySettings.Builder clearSettings()

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Returns
Type Description
AdvancedVoiceOptions.SafetySettings.Builder

getDefaultInstanceForType()

public AdvancedVoiceOptions.SafetySettings getDefaultInstanceForType()
Returns
Type Description
AdvancedVoiceOptions.SafetySettings

getDescriptorForType()

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

getSettings(int index)

public AdvancedVoiceOptions.SafetySetting getSettings(int index)

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Parameter
Name Description
index int
Returns
Type Description
AdvancedVoiceOptions.SafetySetting

getSettingsBuilder(int index)

public AdvancedVoiceOptions.SafetySetting.Builder getSettingsBuilder(int index)

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Parameter
Name Description
index int
Returns
Type Description
AdvancedVoiceOptions.SafetySetting.Builder

getSettingsBuilderList()

public List<AdvancedVoiceOptions.SafetySetting.Builder> getSettingsBuilderList()

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Returns
Type Description
List<Builder>

getSettingsCount()

public int getSettingsCount()

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Returns
Type Description
int

getSettingsList()

public List<AdvancedVoiceOptions.SafetySetting> getSettingsList()

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Returns
Type Description
List<SafetySetting>

getSettingsOrBuilder(int index)

public AdvancedVoiceOptions.SafetySettingOrBuilder getSettingsOrBuilder(int index)

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Parameter
Name Description
index int
Returns
Type Description
AdvancedVoiceOptions.SafetySettingOrBuilder

getSettingsOrBuilderList()

public List<? extends AdvancedVoiceOptions.SafetySettingOrBuilder> getSettingsOrBuilderList()

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Returns
Type Description
List<? extends com.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySettingOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AdvancedVoiceOptions.SafetySettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeSettings(int index)

public AdvancedVoiceOptions.SafetySettings.Builder removeSettings(int index)

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Parameter
Name Description
index int
Returns
Type Description
AdvancedVoiceOptions.SafetySettings.Builder

setSettings(int index, AdvancedVoiceOptions.SafetySetting value)

public AdvancedVoiceOptions.SafetySettings.Builder setSettings(int index, AdvancedVoiceOptions.SafetySetting value)

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Parameters
Name Description
index int
value AdvancedVoiceOptions.SafetySetting
Returns
Type Description
AdvancedVoiceOptions.SafetySettings.Builder

setSettings(int index, AdvancedVoiceOptions.SafetySetting.Builder builderForValue)

public AdvancedVoiceOptions.SafetySettings.Builder setSettings(int index, AdvancedVoiceOptions.SafetySetting.Builder builderForValue)

The safety settings for the request.

repeated .google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting settings = 1;

Parameters
Name Description
index int
builderForValue AdvancedVoiceOptions.SafetySetting.Builder
Returns
Type Description
AdvancedVoiceOptions.SafetySettings.Builder