public static final class AdvancedVoiceOptions.SafetySettings extends GeneratedMessage implements AdvancedVoiceOptions.SafetySettingsOrBuilderSafety settings for the request.
Protobuf type google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySettings
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > AdvancedVoiceOptions.SafetySettingsImplements
AdvancedVoiceOptions.SafetySettingsOrBuilderStatic Fields
SETTINGS_FIELD_NUMBER
public static final int SETTINGS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static AdvancedVoiceOptions.SafetySettings getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static AdvancedVoiceOptions.SafetySettings.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings.Builder |
|
newBuilder(AdvancedVoiceOptions.SafetySettings prototype)
public static AdvancedVoiceOptions.SafetySettings.Builder newBuilder(AdvancedVoiceOptions.SafetySettings prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
AdvancedVoiceOptions.SafetySettings |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings.Builder |
|
parseDelimitedFrom(InputStream input)
public static AdvancedVoiceOptions.SafetySettings parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AdvancedVoiceOptions.SafetySettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static AdvancedVoiceOptions.SafetySettings parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AdvancedVoiceOptions.SafetySettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static AdvancedVoiceOptions.SafetySettings parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AdvancedVoiceOptions.SafetySettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static AdvancedVoiceOptions.SafetySettings parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AdvancedVoiceOptions.SafetySettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static AdvancedVoiceOptions.SafetySettings parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AdvancedVoiceOptions.SafetySettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static AdvancedVoiceOptions.SafetySettings parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AdvancedVoiceOptions.SafetySettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<AdvancedVoiceOptions.SafetySettings> parser()| Returns | |
|---|---|
| Type | Description |
Parser<SafetySettings> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public AdvancedVoiceOptions.SafetySettings getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings |
|
getParserForType()
public Parser<AdvancedVoiceOptions.SafetySettings> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<SafetySettings> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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 |
|
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> |
|
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public AdvancedVoiceOptions.SafetySettings.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected AdvancedVoiceOptions.SafetySettings.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings.Builder |
|
toBuilder()
public AdvancedVoiceOptions.SafetySettings.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
AdvancedVoiceOptions.SafetySettings.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|