Class DetectLanguageResponse (2.40.0)

public final class DetectLanguageResponse extends GeneratedMessageV3 implements DetectLanguageResponseOrBuilder

The response message for language detection.

Protobuf type google.cloud.translation.v3beta1.DetectLanguageResponse

Static Fields

LANGUAGES_FIELD_NUMBER

public static final int LANGUAGES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DetectLanguageResponse getDefaultInstance()
Returns
TypeDescription
DetectLanguageResponse

getDescriptor()

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

newBuilder()

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

newBuilder(DetectLanguageResponse prototype)

public static DetectLanguageResponse.Builder newBuilder(DetectLanguageResponse prototype)
Parameter
NameDescription
prototypeDetectLanguageResponse
Returns
TypeDescription
DetectLanguageResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static DetectLanguageResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DetectLanguageResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static DetectLanguageResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DetectLanguageResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static DetectLanguageResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DetectLanguageResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<DetectLanguageResponse> parser()
Returns
TypeDescription
Parser<DetectLanguageResponse>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public DetectLanguageResponse getDefaultInstanceForType()
Returns
TypeDescription
DetectLanguageResponse

getLanguages(int index)

public DetectedLanguage getLanguages(int index)

A list of detected languages sorted by detection confidence in descending order. The most probable language first.

repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DetectedLanguage

getLanguagesCount()

public int getLanguagesCount()

A list of detected languages sorted by detection confidence in descending order. The most probable language first.

repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;

Returns
TypeDescription
int

getLanguagesList()

public List<DetectedLanguage> getLanguagesList()

A list of detected languages sorted by detection confidence in descending order. The most probable language first.

repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;

Returns
TypeDescription
List<DetectedLanguage>

getLanguagesOrBuilder(int index)

public DetectedLanguageOrBuilder getLanguagesOrBuilder(int index)

A list of detected languages sorted by detection confidence in descending order. The most probable language first.

repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DetectedLanguageOrBuilder

getLanguagesOrBuilderList()

public List<? extends DetectedLanguageOrBuilder> getLanguagesOrBuilderList()

A list of detected languages sorted by detection confidence in descending order. The most probable language first.

repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;

Returns
TypeDescription
List<? extends com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder>

getParserForType()

public Parser<DetectLanguageResponse> getParserForType()
Returns
TypeDescription
Parser<DetectLanguageResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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 DetectLanguageResponse.Builder newBuilderForType()
Returns
TypeDescription
DetectLanguageResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public DetectLanguageResponse.Builder toBuilder()
Returns
TypeDescription
DetectLanguageResponse.Builder

writeTo(CodedOutputStream output)

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