Class ListVoicesRequest.Builder (2.84.0)

public static final class ListVoicesRequest.Builder extends GeneratedMessage.Builder<ListVoicesRequest.Builder> implements ListVoicesRequestOrBuilder

The top-level message sent by the client for the ListVoices method.

Protobuf type google.cloud.texttospeech.v1beta1.ListVoicesRequest

Static Methods

getDescriptor()

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

Methods

build()

public ListVoicesRequest build()
Returns
Type Description
ListVoicesRequest

buildPartial()

public ListVoicesRequest buildPartial()
Returns
Type Description
ListVoicesRequest

clear()

public ListVoicesRequest.Builder clear()
Returns
Type Description
ListVoicesRequest.Builder
Overrides

clearLanguageCode()

public ListVoicesRequest.Builder clearLanguageCode()

Optional. Recommended. BCP-47 language tag. If not specified, the API will return all supported voices. If specified, the ListVoices call will only return voices that can be used to synthesize this language_code. For example, if you specify "en-NZ", all "en-NZ" voices will be returned. If you specify "no", both "no-\" (Norwegian) and "nb-\" (Norwegian Bokmal) voices will be returned.

string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListVoicesRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListVoicesRequest getDefaultInstanceForType()
Returns
Type Description
ListVoicesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLanguageCode()

public String getLanguageCode()

Optional. Recommended. BCP-47 language tag. If not specified, the API will return all supported voices. If specified, the ListVoices call will only return voices that can be used to synthesize this language_code. For example, if you specify "en-NZ", all "en-NZ" voices will be returned. If you specify "no", both "no-\" (Norwegian) and "nb-\" (Norwegian Bokmal) voices will be returned.

string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Optional. Recommended. BCP-47 language tag. If not specified, the API will return all supported voices. If specified, the ListVoices call will only return voices that can be used to synthesize this language_code. For example, if you specify "en-NZ", all "en-NZ" voices will be returned. If you specify "no", both "no-\" (Norwegian) and "nb-\" (Norwegian Bokmal) voices will be returned.

string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for languageCode.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListVoicesRequest other)

public ListVoicesRequest.Builder mergeFrom(ListVoicesRequest other)
Parameter
Name Description
other ListVoicesRequest
Returns
Type Description
ListVoicesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListVoicesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListVoicesRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListVoicesRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListVoicesRequest.Builder
Overrides

setLanguageCode(String value)

public ListVoicesRequest.Builder setLanguageCode(String value)

Optional. Recommended. BCP-47 language tag. If not specified, the API will return all supported voices. If specified, the ListVoices call will only return voices that can be used to synthesize this language_code. For example, if you specify "en-NZ", all "en-NZ" voices will be returned. If you specify "no", both "no-\" (Norwegian) and "nb-\" (Norwegian Bokmal) voices will be returned.

string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The languageCode to set.

Returns
Type Description
ListVoicesRequest.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public ListVoicesRequest.Builder setLanguageCodeBytes(ByteString value)

Optional. Recommended. BCP-47 language tag. If not specified, the API will return all supported voices. If specified, the ListVoices call will only return voices that can be used to synthesize this language_code. For example, if you specify "en-NZ", all "en-NZ" voices will be returned. If you specify "no", both "no-\" (Norwegian) and "nb-\" (Norwegian Bokmal) voices will be returned.

string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for languageCode to set.

Returns
Type Description
ListVoicesRequest.Builder

This builder for chaining.