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.v3.Glossary.LanguageCodePair
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()
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 ISO-639 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 ISO-639 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 ISO-639 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 ISO-639 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 ISO-639 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 ISO-639 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 ISO-639 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 ISO-639 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 ISO-639 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 ISO-639 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