Class Glossary.LanguageCodePair (2.9.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class Glossary.LanguageCodePair extends GeneratedMessageV3 implements Glossary.LanguageCodePairOrBuilder

Used with unidirectional glossaries.

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

Static Fields

SOURCE_LANGUAGE_CODE_FIELD_NUMBER

public static final int SOURCE_LANGUAGE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_LANGUAGE_CODE_FIELD_NUMBER

public static final int TARGET_LANGUAGE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(Glossary.LanguageCodePair prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Glossary.LanguageCodePair parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns