Class GlossaryTerm.Builder (2.83.0)

public static final class GlossaryTerm.Builder extends GeneratedMessage.Builder<GlossaryTerm.Builder> implements GlossaryTermOrBuilder

Represents a single glossary term

Protobuf type google.cloud.translation.v3.GlossaryTerm

Static 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
Overrides

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
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()

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GlossaryTerm.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GlossaryTerm.Builder
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.

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 ByteString

The 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 String

The 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 ByteString

The bytes for text to set.

Returns
Type Description
GlossaryTerm.Builder

This builder for chaining.