public static final class GlossaryTerm.Builder extends GeneratedMessageV3.Builder<GlossaryTerm.Builder> implements GlossaryTermOrBuilder
Represents a single glossary term
Protobuf type google.cloud.translation.v3.GlossaryTerm
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 GlossaryTerm.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GlossaryTerm build()
buildPartial()
public GlossaryTerm buildPartial()
clear()
public GlossaryTerm.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public GlossaryTerm.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLanguageCode()
public GlossaryTerm.Builder clearLanguageCode()
The language for this glossary term.
string language_code = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public GlossaryTerm.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearText()
public GlossaryTerm.Builder clearText()
The text for the glossary term.
string text = 2;
clone()
public GlossaryTerm.Builder clone()
Overrides
getDefaultInstanceForType()
public GlossaryTerm getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getLanguageCode()
public String getLanguageCode()
The language for this glossary term.
string language_code = 1;
Returns |
Type |
Description |
String |
The languageCode.
|
getLanguageCodeBytes()
public ByteString getLanguageCodeBytes()
The language for this glossary term.
string language_code = 1;
Returns |
Type |
Description |
ByteString |
The bytes for languageCode.
|
getText()
The text for the glossary term.
string text = 2;
Returns |
Type |
Description |
String |
The text.
|
getTextBytes()
public ByteString getTextBytes()
The text for the glossary term.
string text = 2;
Returns |
Type |
Description |
ByteString |
The bytes for text.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(GlossaryTerm other)
public GlossaryTerm.Builder mergeFrom(GlossaryTerm other)
public GlossaryTerm.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GlossaryTerm.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GlossaryTerm.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GlossaryTerm.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setLanguageCode(String value)
public GlossaryTerm.Builder setLanguageCode(String value)
The language for this glossary term.
string language_code = 1;
Parameter |
Name |
Description |
value |
String
The languageCode to set.
|
setLanguageCodeBytes(ByteString value)
public GlossaryTerm.Builder setLanguageCodeBytes(ByteString value)
The language for this glossary term.
string language_code = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for languageCode to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GlossaryTerm.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setText(String value)
public GlossaryTerm.Builder setText(String value)
The text for the glossary term.
string text = 2;
Parameter |
Name |
Description |
value |
String
The text to set.
|
setTextBytes(ByteString value)
public GlossaryTerm.Builder setTextBytes(ByteString value)
The text for the glossary term.
string text = 2;
Parameter |
Name |
Description |
value |
ByteString
The bytes for text to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final GlossaryTerm.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides