public static final class ListVoicesRequest.Builder extends GeneratedMessageV3.Builder<ListVoicesRequest.Builder> implements ListVoicesRequestOrBuilder
The top-level message sent by the client for the ListVoices
method.
Protobuf type google.cloud.texttospeech.v1.ListVoicesRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListVoicesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ListVoicesRequest build()
buildPartial()
public ListVoicesRequest buildPartial()
clear()
public ListVoicesRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListVoicesRequest.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public ListVoicesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public ListVoicesRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public ListVoicesRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ListVoicesRequest other)
public ListVoicesRequest.Builder mergeFrom(ListVoicesRequest other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListVoicesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ListVoicesRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListVoicesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ListVoicesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListVoicesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListVoicesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides