public static final class Romanization.Builder extends GeneratedMessage.Builder<Romanization.Builder> implements RomanizationOrBuilderA single romanization response.
Protobuf type google.cloud.translation.v3.Romanization
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Romanization.BuilderImplements
RomanizationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Romanization build()| Returns | |
|---|---|
| Type | Description |
Romanization |
|
buildPartial()
public Romanization buildPartial()| Returns | |
|---|---|
| Type | Description |
Romanization |
|
clear()
public Romanization.Builder clear()| Returns | |
|---|---|
| Type | Description |
Romanization.Builder |
|
clearDetectedLanguageCode()
public Romanization.Builder clearDetectedLanguageCode()The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.
string detected_language_code = 2;
| Returns | |
|---|---|
| Type | Description |
Romanization.Builder |
This builder for chaining. |
clearRomanizedText()
public Romanization.Builder clearRomanizedText()Romanized text. If an error occurs during romanization, this field might be excluded from the response.
string romanized_text = 1;
| Returns | |
|---|---|
| Type | Description |
Romanization.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Romanization getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Romanization |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDetectedLanguageCode()
public String getDetectedLanguageCode()The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.
string detected_language_code = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The detectedLanguageCode. |
getDetectedLanguageCodeBytes()
public ByteString getDetectedLanguageCodeBytes()The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.
string detected_language_code = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for detectedLanguageCode. |
getRomanizedText()
public String getRomanizedText()Romanized text. If an error occurs during romanization, this field might be excluded from the response.
string romanized_text = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The romanizedText. |
getRomanizedTextBytes()
public ByteString getRomanizedTextBytes()Romanized text. If an error occurs during romanization, this field might be excluded from the response.
string romanized_text = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for romanizedText. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Romanization other)
public Romanization.Builder mergeFrom(Romanization other)| Parameter | |
|---|---|
| Name | Description |
other |
Romanization |
| Returns | |
|---|---|
| Type | Description |
Romanization.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Romanization.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Romanization.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Romanization.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Romanization.Builder |
|
setDetectedLanguageCode(String value)
public Romanization.Builder setDetectedLanguageCode(String value)The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.
string detected_language_code = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe detectedLanguageCode to set. |
| Returns | |
|---|---|
| Type | Description |
Romanization.Builder |
This builder for chaining. |
setDetectedLanguageCodeBytes(ByteString value)
public Romanization.Builder setDetectedLanguageCodeBytes(ByteString value)The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.
string detected_language_code = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for detectedLanguageCode to set. |
| Returns | |
|---|---|
| Type | Description |
Romanization.Builder |
This builder for chaining. |
setRomanizedText(String value)
public Romanization.Builder setRomanizedText(String value)Romanized text. If an error occurs during romanization, this field might be excluded from the response.
string romanized_text = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe romanizedText to set. |
| Returns | |
|---|---|
| Type | Description |
Romanization.Builder |
This builder for chaining. |
setRomanizedTextBytes(ByteString value)
public Romanization.Builder setRomanizedTextBytes(ByteString value)Romanized text. If an error occurs during romanization, this field might be excluded from the response.
string romanized_text = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for romanizedText to set. |
| Returns | |
|---|---|
| Type | Description |
Romanization.Builder |
This builder for chaining. |