Class CustomVoiceParams (2.4.9)

public final class CustomVoiceParams extends GeneratedMessageV3 implements CustomVoiceParamsOrBuilder

Description of the custom voice to be synthesized.

Protobuf type google.cloud.texttospeech.v1beta1.CustomVoiceParams

Static Fields

MODEL_FIELD_NUMBER

public static final int MODEL_FIELD_NUMBER
Field Value
TypeDescription
int

REPORTED_USAGE_FIELD_NUMBER

public static final int REPORTED_USAGE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CustomVoiceParams getDefaultInstance()
Returns
TypeDescription
CustomVoiceParams

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CustomVoiceParams.Builder newBuilder()
Returns
TypeDescription
CustomVoiceParams.Builder

newBuilder(CustomVoiceParams prototype)

public static CustomVoiceParams.Builder newBuilder(CustomVoiceParams prototype)
Parameter
NameDescription
prototypeCustomVoiceParams
Returns
TypeDescription
CustomVoiceParams.Builder

parseDelimitedFrom(InputStream input)

public static CustomVoiceParams parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomVoiceParams
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomVoiceParams parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomVoiceParams
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CustomVoiceParams parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CustomVoiceParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CustomVoiceParams parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomVoiceParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CustomVoiceParams parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CustomVoiceParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CustomVoiceParams parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomVoiceParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CustomVoiceParams parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CustomVoiceParams
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomVoiceParams parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomVoiceParams
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CustomVoiceParams parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomVoiceParams
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomVoiceParams parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomVoiceParams
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CustomVoiceParams parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CustomVoiceParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CustomVoiceParams parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomVoiceParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CustomVoiceParams> parser()
Returns
TypeDescription
Parser<CustomVoiceParams>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CustomVoiceParams getDefaultInstanceForType()
Returns
TypeDescription
CustomVoiceParams

getModel()

public String getModel()

Required. The name of the AutoML model that synthesizes the custom voice.

string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The model.

getModelBytes()

public ByteString getModelBytes()

Required. The name of the AutoML model that synthesizes the custom voice.

string model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for model.

getParserForType()

public Parser<CustomVoiceParams> getParserForType()
Returns
TypeDescription
Parser<CustomVoiceParams>
Overrides

getReportedUsage()

public CustomVoiceParams.ReportedUsage getReportedUsage()

Optional. The usage of the synthesized audio to be reported.

.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CustomVoiceParams.ReportedUsage

The reportedUsage.

getReportedUsageValue()

public int getReportedUsageValue()

Optional. The usage of the synthesized audio to be reported.

.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for reportedUsage.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CustomVoiceParams.Builder newBuilderForType()
Returns
TypeDescription
CustomVoiceParams.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CustomVoiceParams.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CustomVoiceParams.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CustomVoiceParams.Builder toBuilder()
Returns
TypeDescription
CustomVoiceParams.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException