public static final class GlossaryTerm.Builder extends GeneratedMessage.Builder<GlossaryTerm.Builder> implements GlossaryTermOrBuilderRepresents a single glossary term
Protobuf type google.cloud.translation.v3.GlossaryTerm
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GlossaryTerm.BuilderImplements
GlossaryTermOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GlossaryTerm build()| Returns | |
|---|---|
| Type | Description |
GlossaryTerm |
|
buildPartial()
public GlossaryTerm buildPartial()| Returns | |
|---|---|
| Type | Description |
GlossaryTerm |
|
clear()
public GlossaryTerm.Builder clear()| Returns | |
|---|---|
| Type | Description |
GlossaryTerm.Builder |
|
clearLanguageCode()
public GlossaryTerm.Builder clearLanguageCode()The language for this glossary term.
string language_code = 1;
| Returns | |
|---|---|
| Type | Description |
GlossaryTerm.Builder |
This builder for chaining. |
clearText()
public GlossaryTerm.Builder clearText()The text for the glossary term.
string text = 2;
| Returns | |
|---|---|
| Type | Description |
GlossaryTerm.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public GlossaryTerm getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GlossaryTerm |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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()
public String 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GlossaryTerm other)
public GlossaryTerm.Builder mergeFrom(GlossaryTerm other)| Parameter | |
|---|---|
| Name | Description |
other |
GlossaryTerm |
| Returns | |
|---|---|
| Type | Description |
GlossaryTerm.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GlossaryTerm.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GlossaryTerm.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GlossaryTerm.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GlossaryTerm.Builder |
|
setLanguageCode(String value)
public GlossaryTerm.Builder setLanguageCode(String value)The language for this glossary term.
string language_code = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe languageCode to set. |
| Returns | |
|---|---|
| Type | Description |
GlossaryTerm.Builder |
This builder for chaining. |
setLanguageCodeBytes(ByteString value)
public GlossaryTerm.Builder setLanguageCodeBytes(ByteString value)The language for this glossary term.
string language_code = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for languageCode to set. |
| Returns | |
|---|---|
| Type | Description |
GlossaryTerm.Builder |
This builder for chaining. |
setText(String value)
public GlossaryTerm.Builder setText(String value)The text for the glossary term.
string text = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe text to set. |
| Returns | |
|---|---|
| Type | Description |
GlossaryTerm.Builder |
This builder for chaining. |
setTextBytes(ByteString value)
public GlossaryTerm.Builder setTextBytes(ByteString value)The text for the glossary term.
string text = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for text to set. |
| Returns | |
|---|---|
| Type | Description |
GlossaryTerm.Builder |
This builder for chaining. |