Class DetectedLanguage (2.9.0)

Stay organized with collections Save and categorize content based on your preferences.
public final class DetectedLanguage extends GeneratedMessageV3 implements DetectedLanguageOrBuilder

The response message for language detection.

Protobuf type google.cloud.translation.v3.DetectedLanguage

Static Fields

CONFIDENCE_FIELD_NUMBER

public static final int CONFIDENCE_FIELD_NUMBER
Field Value
TypeDescription
int

LANGUAGE_CODE_FIELD_NUMBER

public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DetectedLanguage getDefaultInstance()
Returns
TypeDescription
DetectedLanguage

getDescriptor()

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

newBuilder()

public static DetectedLanguage.Builder newBuilder()
Returns
TypeDescription
DetectedLanguage.Builder

newBuilder(DetectedLanguage prototype)

public static DetectedLanguage.Builder newBuilder(DetectedLanguage prototype)
Parameter
NameDescription
prototypeDetectedLanguage
Returns
TypeDescription
DetectedLanguage.Builder

parseDelimitedFrom(InputStream input)

public static DetectedLanguage parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DetectedLanguage
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static DetectedLanguage parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DetectedLanguage
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static DetectedLanguage parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns