Class Romanization.Builder (2.48.0)

public static final class Romanization.Builder extends GeneratedMessageV3.Builder<Romanization.Builder> implements RomanizationOrBuilder

A single romanization response.

Protobuf type google.cloud.translation.v3.Romanization

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Romanization.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Romanization.Builder
Overrides

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
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public Romanization.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Romanization.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Romanization.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Romanization.Builder
Overrides

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.

clone()

public Romanization.Builder clone()
Returns
Type Description
Romanization.Builder
Overrides

getDefaultInstanceForType()

public Romanization getDefaultInstanceForType()
Returns
Type Description
Romanization

getDescriptorForType()

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

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Romanization.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Romanization.Builder
Overrides

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 String

The 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 ByteString

The bytes for detectedLanguageCode to set.

Returns
Type Description
Romanization.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Romanization.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Romanization.Builder
Overrides

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

public Romanization.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Romanization.Builder
Overrides

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 String

The 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 ByteString

The bytes for romanizedText to set.

Returns
Type Description
Romanization.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Romanization.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Romanization.Builder
Overrides