Class AdvancedVoiceOptions.SafetySetting (2.92.0)

public static final class AdvancedVoiceOptions.SafetySetting extends GeneratedMessage implements AdvancedVoiceOptions.SafetySettingOrBuilder

Safety setting for a single harm category.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > AdvancedVoiceOptions.SafetySetting

Static Fields

CATEGORY_FIELD_NUMBER

public static final int CATEGORY_FIELD_NUMBER
Field Value
Type Description
int

THRESHOLD_FIELD_NUMBER

public static final int THRESHOLD_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AdvancedVoiceOptions.SafetySetting getDefaultInstance()
Returns
Type Description
AdvancedVoiceOptions.SafetySetting

getDescriptor()

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

newBuilder()

public static AdvancedVoiceOptions.SafetySetting.Builder newBuilder()
Returns
Type Description
AdvancedVoiceOptions.SafetySetting.Builder

newBuilder(AdvancedVoiceOptions.SafetySetting prototype)

public static AdvancedVoiceOptions.SafetySetting.Builder newBuilder(AdvancedVoiceOptions.SafetySetting prototype)
Parameter
Name Description
prototype AdvancedVoiceOptions.SafetySetting
Returns
Type Description
AdvancedVoiceOptions.SafetySetting.Builder

parseDelimitedFrom(InputStream input)

public static AdvancedVoiceOptions.SafetySetting parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AdvancedVoiceOptions.SafetySetting
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdvancedVoiceOptions.SafetySetting parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedVoiceOptions.SafetySetting
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AdvancedVoiceOptions.SafetySetting parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AdvancedVoiceOptions.SafetySetting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AdvancedVoiceOptions.SafetySetting parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedVoiceOptions.SafetySetting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AdvancedVoiceOptions.SafetySetting parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AdvancedVoiceOptions.SafetySetting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AdvancedVoiceOptions.SafetySetting parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedVoiceOptions.SafetySetting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AdvancedVoiceOptions.SafetySetting parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AdvancedVoiceOptions.SafetySetting
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AdvancedVoiceOptions.SafetySetting parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedVoiceOptions.SafetySetting
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AdvancedVoiceOptions.SafetySetting parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AdvancedVoiceOptions.SafetySetting
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdvancedVoiceOptions.SafetySetting parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedVoiceOptions.SafetySetting
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AdvancedVoiceOptions.SafetySetting parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AdvancedVoiceOptions.SafetySetting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AdvancedVoiceOptions.SafetySetting parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedVoiceOptions.SafetySetting
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AdvancedVoiceOptions.SafetySetting> parser()
Returns
Type Description
Parser<SafetySetting>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCategory()

public AdvancedVoiceOptions.HarmCategory getCategory()

The harm category to apply the safety setting to.

.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmCategory category = 1;

Returns
Type Description
AdvancedVoiceOptions.HarmCategory

The category.

getCategoryValue()

public int getCategoryValue()

The harm category to apply the safety setting to.

.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmCategory category = 1;

Returns
Type Description
int

The enum numeric value on the wire for category.

getDefaultInstanceForType()

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

getParserForType()

public Parser<AdvancedVoiceOptions.SafetySetting> getParserForType()
Returns
Type Description
Parser<SafetySetting>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getThreshold()

public AdvancedVoiceOptions.HarmBlockThreshold getThreshold()

The harm block threshold for the safety setting.

.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmBlockThreshold threshold = 2;

Returns
Type Description
AdvancedVoiceOptions.HarmBlockThreshold

The threshold.

getThresholdValue()

public int getThresholdValue()

The harm block threshold for the safety setting.

.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmBlockThreshold threshold = 2;

Returns
Type Description
int

The enum numeric value on the wire for threshold.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AdvancedVoiceOptions.SafetySetting.Builder newBuilderForType()
Returns
Type Description
AdvancedVoiceOptions.SafetySetting.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AdvancedVoiceOptions.SafetySetting.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AdvancedVoiceOptions.SafetySetting.Builder
Overrides

toBuilder()

public AdvancedVoiceOptions.SafetySetting.Builder toBuilder()
Returns
Type Description
AdvancedVoiceOptions.SafetySetting.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException