public static final class AdvancedVoiceOptions.SafetySetting.Builder extends GeneratedMessage.Builder<AdvancedVoiceOptions.SafetySetting.Builder> implements AdvancedVoiceOptions.SafetySettingOrBuilderSafety setting for a single harm category.
Protobuf type google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AdvancedVoiceOptions.SafetySetting.BuilderImplements
AdvancedVoiceOptions.SafetySettingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AdvancedVoiceOptions.SafetySetting build()| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySetting |
|
buildPartial()
public AdvancedVoiceOptions.SafetySetting buildPartial()| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySetting |
|
clear()
public AdvancedVoiceOptions.SafetySetting.Builder clear()| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySetting.Builder |
|
clearCategory()
public AdvancedVoiceOptions.SafetySetting.Builder clearCategory()The harm category to apply the safety setting to.
.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmCategory category = 1;
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySetting.Builder |
This builder for chaining. |
clearThreshold()
public AdvancedVoiceOptions.SafetySetting.Builder clearThreshold()The harm block threshold for the safety setting.
.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmBlockThreshold threshold = 2;
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySetting.Builder |
This builder for chaining. |
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AdvancedVoiceOptions.SafetySetting other)
public AdvancedVoiceOptions.SafetySetting.Builder mergeFrom(AdvancedVoiceOptions.SafetySetting other)| Parameter | |
|---|---|
| Name | Description |
other |
AdvancedVoiceOptions.SafetySetting |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySetting.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AdvancedVoiceOptions.SafetySetting.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySetting.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AdvancedVoiceOptions.SafetySetting.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySetting.Builder |
|
setCategory(AdvancedVoiceOptions.HarmCategory value)
public AdvancedVoiceOptions.SafetySetting.Builder setCategory(AdvancedVoiceOptions.HarmCategory value)The harm category to apply the safety setting to.
.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmCategory category = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
AdvancedVoiceOptions.HarmCategoryThe category to set. |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySetting.Builder |
This builder for chaining. |
setCategoryValue(int value)
public AdvancedVoiceOptions.SafetySetting.Builder setCategoryValue(int value)The harm category to apply the safety setting to.
.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmCategory category = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for category to set. |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySetting.Builder |
This builder for chaining. |
setThreshold(AdvancedVoiceOptions.HarmBlockThreshold value)
public AdvancedVoiceOptions.SafetySetting.Builder setThreshold(AdvancedVoiceOptions.HarmBlockThreshold value)The harm block threshold for the safety setting.
.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmBlockThreshold threshold = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
AdvancedVoiceOptions.HarmBlockThresholdThe threshold to set. |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySetting.Builder |
This builder for chaining. |
setThresholdValue(int value)
public AdvancedVoiceOptions.SafetySetting.Builder setThresholdValue(int value)The harm block threshold for the safety setting.
.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmBlockThreshold threshold = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for threshold to set. |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySetting.Builder |
This builder for chaining. |