Class GlossaryTerm.Builder (2.54.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GlossaryTerm.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GlossaryTerm.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public GlossaryTerm.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public GlossaryTerm.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GlossaryTerm.Builder
Overrides

clearText()

public GlossaryTerm.Builder clearText()

The text for the glossary term.

string text = 2;

Returns
Type Description
GlossaryTerm.Builder

This builder for chaining.

clone()

public GlossaryTerm.Builder clone()
Returns
Type Description
GlossaryTerm.Builder
Overrides

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GlossaryTerm.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GlossaryTerm.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GlossaryTerm.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GlossaryTerm.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GlossaryTerm.Builder
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.

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final GlossaryTerm.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GlossaryTerm.Builder
Overrides