Class Glossary.LanguageCodesSet.Builder (2.9.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class Glossary.LanguageCodesSet.Builder extends GeneratedMessageV3.Builder<Glossary.LanguageCodesSet.Builder> implements Glossary.LanguageCodesSetOrBuilder

Used with equivalent term set glossaries.

Protobuf type google.cloud.translation.v3.Glossary.LanguageCodesSet

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllLanguageCodes(Iterable<String> values)

public Glossary.LanguageCodesSet.Builder addAllLanguageCodes(Iterable<String> values)

The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.

repeated string language_codes = 1;

Parameter
NameDescription
valuesIterable<String>

The languageCodes to add.

Returns
TypeDescription
Glossary.LanguageCodesSet.Builder

This builder for chaining.

addLanguageCodes(String value)

public Glossary.LanguageCodesSet.Builder addLanguageCodes(String value)

The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.

repeated string language_codes = 1;

Parameter
NameDescription
valueString

The languageCodes to add.

Returns
TypeDescription
Glossary.LanguageCodesSet.Builder

This builder for chaining.

addLanguageCodesBytes(ByteString value)

public Glossary.LanguageCodesSet.Builder addLanguageCodesBytes(ByteString value)

The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.

repeated string language_codes = 1;

Parameter
NameDescription
valueByteString

The bytes of the languageCodes to add.

Returns
TypeDescription
Glossary.LanguageCodesSet.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Glossary.LanguageCodesSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Glossary.LanguageCodesSet.Builder
Overrides

build()

public Glossary.LanguageCodesSet build()
Returns
TypeDescription
Glossary.LanguageCodesSet

buildPartial()

public Glossary.LanguageCodesSet buildPartial()
Returns
TypeDescription
Glossary.LanguageCodesSet

clear()

public Glossary.LanguageCodesSet.Builder clear()
Returns
TypeDescription
Glossary.LanguageCodesSet.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Glossary.LanguageCodesSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Glossary.LanguageCodesSet.Builder
Overrides

clearLanguageCodes()

public Glossary.LanguageCodesSet.Builder clearLanguageCodes()

The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.

repeated string language_codes = 1;

Returns
TypeDescription
Glossary.LanguageCodesSet.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Glossary.LanguageCodesSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Glossary.LanguageCodesSet.Builder
Overrides

clone()

public Glossary.LanguageCodesSet.Builder clone()
Returns
TypeDescription
Glossary.LanguageCodesSet.Builder
Overrides

getDefaultInstanceForType()

public Glossary.LanguageCodesSet getDefaultInstanceForType()
Returns
TypeDescription
Glossary.LanguageCodesSet

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLanguageCodes(int index)

public String getLanguageCodes(int index)

The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.

repeated string language_codes = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The languageCodes at the given index.