Class Glossary.LanguageCodesSet (2.7.0)

public static final class Glossary.LanguageCodesSet extends GeneratedMessageV3 implements Glossary.LanguageCodesSetOrBuilder

Used with equivalent term set glossaries.

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

Static Fields

LANGUAGE_CODES_FIELD_NUMBER

public static final int LANGUAGE_CODES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Glossary.LanguageCodesSet getDefaultInstance()
Returns
TypeDescription
Glossary.LanguageCodesSet

getDescriptor()

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

newBuilder()

public static Glossary.LanguageCodesSet.Builder newBuilder()
Returns
TypeDescription
Glossary.LanguageCodesSet.Builder

newBuilder(Glossary.LanguageCodesSet prototype)

public static Glossary.LanguageCodesSet.Builder newBuilder(Glossary.LanguageCodesSet prototype)
Parameter
NameDescription
prototypeGlossary.LanguageCodesSet
Returns
TypeDescription
Glossary.LanguageCodesSet.Builder

parseDelimitedFrom(InputStream input)

public static Glossary.LanguageCodesSet parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Glossary.LanguageCodesSet
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Glossary.LanguageCodesSet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Glossary.LanguageCodesSet
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Glossary.LanguageCodesSet parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Glossary.LanguageCodesSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Glossary.LanguageCodesSet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Glossary.LanguageCodesSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Glossary.LanguageCodesSet parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Glossary.LanguageCodesSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Glossary.LanguageCodesSet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Glossary.LanguageCodesSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Glossary.LanguageCodesSet parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Glossary.LanguageCodesSet
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Glossary.LanguageCodesSet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Glossary.LanguageCodesSet
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Glossary.LanguageCodesSet parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Glossary.LanguageCodesSet
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Glossary.LanguageCodesSet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Glossary.LanguageCodesSet
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Glossary.LanguageCodesSet parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Glossary.LanguageCodesSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Glossary.LanguageCodesSet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Glossary.LanguageCodesSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Glossary.LanguageCodesSet> parser()
Returns
TypeDescription
Parser<LanguageCodesSet>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

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.

getLanguageCodesBytes(int index)

public ByteString getLanguageCodesBytes(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 value to return.

Returns
TypeDescription
ByteString

The bytes of the languageCodes at the given index.

getLanguageCodesCount()

public int getLanguageCodesCount()

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
int

The count of languageCodes.

getLanguageCodesList()

public ProtocolStringList getLanguageCodesList()

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
ProtocolStringList

A list containing the languageCodes.

getParserForType()

public Parser<Glossary.LanguageCodesSet> getParserForType()
Returns
TypeDescription
Parser<LanguageCodesSet>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Glossary.LanguageCodesSet.Builder newBuilderForType()
Returns
TypeDescription
Glossary.LanguageCodesSet.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Glossary.LanguageCodesSet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Glossary.LanguageCodesSet.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Glossary.LanguageCodesSet.Builder toBuilder()
Returns
TypeDescription
Glossary.LanguageCodesSet.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException