Class Glossary.LanguageCodesSet.Builder (2.12.0)

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 ISO-639 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 ISO-639 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 ISO-639 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 ISO-639 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 ISO-639 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.

getLanguageCodesBytes(int index)

public ByteString getLanguageCodesBytes(int index)

The ISO-639 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 value to return.

Returns
TypeDescription
ByteString

The bytes of the languageCodes at the given index.

getLanguageCodesCount()

public int getLanguageCodesCount()

The ISO-639 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
int

The count of languageCodes.

getLanguageCodesList()

public ProtocolStringList getLanguageCodesList()

The ISO-639 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
ProtocolStringList

A list containing the languageCodes.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Glossary.LanguageCodesSet other)

public Glossary.LanguageCodesSet.Builder mergeFrom(Glossary.LanguageCodesSet other)
Parameter
NameDescription
otherGlossary.LanguageCodesSet
Returns
TypeDescription
Glossary.LanguageCodesSet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Glossary.LanguageCodesSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Glossary.LanguageCodesSet.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Glossary.LanguageCodesSet.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Glossary.LanguageCodesSet.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Glossary.LanguageCodesSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Glossary.LanguageCodesSet.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setLanguageCodes(int index, String value)

public Glossary.LanguageCodesSet.Builder setLanguageCodes(int index, String value)

The ISO-639 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;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The languageCodes to set.

Returns
TypeDescription
Glossary.LanguageCodesSet.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Glossary.LanguageCodesSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Glossary.LanguageCodesSet.Builder
Overrides