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
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 Glossary.LanguageCodePair.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Glossary.LanguageCodePair build()
buildPartial()
public Glossary.LanguageCodePair buildPartial()
clear()
public Glossary.LanguageCodePair.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Glossary.LanguageCodePair.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Glossary.LanguageCodePair.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
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;
clone()
public Glossary.LanguageCodePair.Builder clone()
Overrides
getDefaultInstanceForType()
public Glossary.LanguageCodePair getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Glossary.LanguageCodePair other)
public Glossary.LanguageCodePair.Builder mergeFrom(Glossary.LanguageCodePair other)
public Glossary.LanguageCodePair.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Glossary.LanguageCodePair.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Glossary.LanguageCodePair.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Glossary.LanguageCodePair.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Glossary.LanguageCodePair.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Glossary.LanguageCodePair.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides