Class CustomVoiceParams.Builder (2.5.0)

public static final class CustomVoiceParams.Builder extends GeneratedMessageV3.Builder<CustomVoiceParams.Builder> implements CustomVoiceParamsOrBuilder

Description of the custom voice to be synthesized.

Protobuf type google.cloud.texttospeech.v1.CustomVoiceParams

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CustomVoiceParams.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CustomVoiceParams.Builder
Overrides

build()

public CustomVoiceParams build()
Returns
TypeDescription
CustomVoiceParams

buildPartial()

public CustomVoiceParams buildPartial()
Returns
TypeDescription
CustomVoiceParams

clear()

public CustomVoiceParams.Builder clear()
Returns
TypeDescription
CustomVoiceParams.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CustomVoiceParams.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CustomVoiceParams.Builder
Overrides

clearModel()

public CustomVoiceParams.Builder clearModel()

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
CustomVoiceParams.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CustomVoiceParams.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CustomVoiceParams.Builder
Overrides

clearReportedUsage()

public CustomVoiceParams.Builder clearReportedUsage()

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

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

Returns
TypeDescription
CustomVoiceParams.Builder

This builder for chaining.

clone()

public CustomVoiceParams.Builder clone()
Returns
TypeDescription
CustomVoiceParams.Builder
Overrides

getDefaultInstanceForType()

public CustomVoiceParams getDefaultInstanceForType()
Returns
TypeDescription
CustomVoiceParams

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getReportedUsage()

public CustomVoiceParams.ReportedUsage getReportedUsage()

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

.google.cloud.texttospeech.v1.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.v1.CustomVoiceParams.ReportedUsage reported_usage = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for reportedUsage.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CustomVoiceParams other)

public CustomVoiceParams.Builder mergeFrom(CustomVoiceParams other)
Parameter
NameDescription
otherCustomVoiceParams
Returns
TypeDescription
CustomVoiceParams.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CustomVoiceParams.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomVoiceParams.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CustomVoiceParams.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CustomVoiceParams.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomVoiceParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CustomVoiceParams.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CustomVoiceParams.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CustomVoiceParams.Builder
Overrides

setModel(String value)

public CustomVoiceParams.Builder setModel(String value)

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

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

Parameter
NameDescription
valueString

The model to set.

Returns
TypeDescription
CustomVoiceParams.Builder

This builder for chaining.

setModelBytes(ByteString value)

public CustomVoiceParams.Builder setModelBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for model to set.

Returns
TypeDescription
CustomVoiceParams.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CustomVoiceParams.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CustomVoiceParams.Builder
Overrides

setReportedUsage(CustomVoiceParams.ReportedUsage value)

public CustomVoiceParams.Builder setReportedUsage(CustomVoiceParams.ReportedUsage value)

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

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

Parameter
NameDescription
valueCustomVoiceParams.ReportedUsage

The reportedUsage to set.

Returns
TypeDescription
CustomVoiceParams.Builder

This builder for chaining.

setReportedUsageValue(int value)

public CustomVoiceParams.Builder setReportedUsageValue(int value)

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

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for reportedUsage to set.

Returns
TypeDescription
CustomVoiceParams.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CustomVoiceParams.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CustomVoiceParams.Builder
Overrides