Send feedback
Class Romanization.Builder (2.49.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.49.0 keyboard_arrow_down
public static final class Romanization . Builder extends GeneratedMessageV3 . Builder<Romanization . Builder > implements RomanizationOrBuilder
A single romanization response.
Protobuf type google.cloud.translation.v3.Romanization
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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 Romanization . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public Romanization build ()
buildPartial()
public Romanization buildPartial ()
clear()
public Romanization . Builder clear ()
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;
clearField(Descriptors.FieldDescriptor field)
public Romanization . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Romanization . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
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;
clone()
public Romanization . Builder clone ()
Overrides
getDefaultInstanceForType()
public Romanization getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(Romanization other)
public Romanization . Builder mergeFrom ( Romanization other )
public Romanization . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public Romanization . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Romanization . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
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.
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.
setField(Descriptors.FieldDescriptor field, Object value)
public Romanization . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Romanization . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
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.
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.
setUnknownFields(UnknownFieldSet unknownFields)
public final Romanization . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]