Send feedback
Class Glossary.LanguageCodePair.Builder (2.3.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.3.2 keyboard_arrow_down
public static final class Glossary . LanguageCodePair . Builder extends GeneratedMessageV3 . Builder<Glossary . LanguageCodePair . Builder > implements Glossary . LanguageCodePairOrBuilder
Used with unidirectional glossaries.
Protobuf type google.cloud.translation.v3beta1.Glossary.LanguageCodePair
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Glossary . LanguageCodePair . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public Glossary . LanguageCodePair build ()
Returns
buildPartial()
public Glossary . LanguageCodePair buildPartial ()
Returns
clear()
public Glossary . LanguageCodePair . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Glossary . LanguageCodePair . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Glossary . LanguageCodePair . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearSourceLanguageCode()
public Glossary . LanguageCodePair . Builder clearSourceLanguageCode ()
Required. The BCP-47 language code of the input text, for example,
"en-US". Expected to be an exact match for GlossaryTerm.language_code.
string source_language_code = 1;
Returns
clearTargetLanguageCode()
public Glossary . LanguageCodePair . Builder clearTargetLanguageCode ()
Required. The BCP-47 language code for translation output, for example,
"zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
string target_language_code = 2;
Returns
clone()
public Glossary . LanguageCodePair . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public Glossary . LanguageCodePair getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getSourceLanguageCode()
public String getSourceLanguageCode ()
Required. The BCP-47 language code of the input text, for example,
"en-US". Expected to be an exact match for GlossaryTerm.language_code.
string source_language_code = 1;
Returns
Type Description String The sourceLanguageCode.
getSourceLanguageCodeBytes()
public ByteString getSourceLanguageCodeBytes ()
Required. The BCP-47 language code of the input text, for example,
"en-US". Expected to be an exact match for GlossaryTerm.language_code.
string source_language_code = 1;
Returns
Type Description ByteString The bytes for sourceLanguageCode.
getTargetLanguageCode()
public String getTargetLanguageCode ()
Required. The BCP-47 language code for translation output, for example,
"zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
string target_language_code = 2;
Returns
Type Description String The targetLanguageCode.
getTargetLanguageCodeBytes()
public ByteString getTargetLanguageCodeBytes ()
Required. The BCP-47 language code for translation output, for example,
"zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
string target_language_code = 2;
Returns
Type Description ByteString The bytes for targetLanguageCode.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(Glossary.LanguageCodePair other)
public Glossary . LanguageCodePair . Builder mergeFrom ( Glossary . LanguageCodePair other )
Parameter
Returns
public Glossary . LanguageCodePair . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Glossary . LanguageCodePair . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Glossary . LanguageCodePair . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Glossary . LanguageCodePair . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Glossary . LanguageCodePair . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setSourceLanguageCode(String value)
public Glossary . LanguageCodePair . Builder setSourceLanguageCode ( String value )
Required. The BCP-47 language code of the input text, for example,
"en-US". Expected to be an exact match for GlossaryTerm.language_code.
string source_language_code = 1;
Parameter
Name Description value String
The sourceLanguageCode to set.
Returns
setSourceLanguageCodeBytes(ByteString value)
public Glossary . LanguageCodePair . Builder setSourceLanguageCodeBytes ( ByteString value )
Required. The BCP-47 language code of the input text, for example,
"en-US". Expected to be an exact match for GlossaryTerm.language_code.
string source_language_code = 1;
Parameter
Name Description value ByteString
The bytes for sourceLanguageCode to set.
Returns
setTargetLanguageCode(String value)
public Glossary . LanguageCodePair . Builder setTargetLanguageCode ( String value )
Required. The BCP-47 language code for translation output, for example,
"zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
string target_language_code = 2;
Parameter
Name Description value String
The targetLanguageCode to set.
Returns
setTargetLanguageCodeBytes(ByteString value)
public Glossary . LanguageCodePair . Builder setTargetLanguageCodeBytes ( ByteString value )
Required. The BCP-47 language code for translation output, for example,
"zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
string target_language_code = 2;
Parameter
Name Description value ByteString
The bytes for targetLanguageCode to set.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Glossary . LanguageCodePair . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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-21 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-21 UTC."],[],[]]