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
Static Methods
getDefaultInstance()
public static DetectLanguageResponse getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static DetectLanguageResponse.Builder newBuilder()
Returns
newBuilder(DetectLanguageResponse prototype)
public static DetectLanguageResponse.Builder newBuilder(DetectLanguageResponse prototype)
Parameter
Returns
public static DetectLanguageResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static DetectLanguageResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static DetectLanguageResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DetectLanguageResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static DetectLanguageResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DetectLanguageResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DetectLanguageResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static DetectLanguageResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DetectLanguageResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static DetectLanguageResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static DetectLanguageResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DetectLanguageResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<DetectLanguageResponse> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public DetectLanguageResponse getDefaultInstanceForType()
Returns
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
Returns
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
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
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
Returns
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
Type | Description |
List<? extends com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder> | |
getParserForType()
public Parser<DetectLanguageResponse> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public DetectLanguageResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DetectLanguageResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public DetectLanguageResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions