Class LanguageInfo (0.65.0)

public final class LanguageInfo extends GeneratedMessageV3 implements LanguageInfoOrBuilder

Represents the language information of the request.

Protobuf type google.cloud.dialogflow.cx.v3beta1.LanguageInfo

Static Fields

CONFIDENCE_SCORE_FIELD_NUMBER

public static final int CONFIDENCE_SCORE_FIELD_NUMBER
Field Value
Type Description
int

INPUT_LANGUAGE_CODE_FIELD_NUMBER

public static final int INPUT_LANGUAGE_CODE_FIELD_NUMBER
Field Value
Type Description
int

RESOLVED_LANGUAGE_CODE_FIELD_NUMBER

public static final int RESOLVED_LANGUAGE_CODE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LanguageInfo getDefaultInstance()
Returns
Type Description
LanguageInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static LanguageInfo.Builder newBuilder()
Returns
Type Description
LanguageInfo.Builder

newBuilder(LanguageInfo prototype)

public static LanguageInfo.Builder newBuilder(LanguageInfo prototype)
Parameter
Name Description
prototype LanguageInfo
Returns
Type Description
LanguageInfo.Builder

parseDelimitedFrom(InputStream input)

public static LanguageInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LanguageInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LanguageInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LanguageInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LanguageInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LanguageInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LanguageInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LanguageInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LanguageInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LanguageInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LanguageInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LanguageInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LanguageInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LanguageInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LanguageInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LanguageInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LanguageInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LanguageInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LanguageInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LanguageInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LanguageInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LanguageInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LanguageInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LanguageInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LanguageInfo> parser()
Returns
Type Description
Parser<LanguageInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getConfidenceScore()

public float getConfidenceScore()

The confidence score of the detected language between 0 and 1.

float confidence_score = 3;

Returns
Type Description
float

The confidenceScore.

getDefaultInstanceForType()

public LanguageInfo getDefaultInstanceForType()
Returns
Type Description
LanguageInfo

getInputLanguageCode()

public String getInputLanguageCode()

The language code specified in the original request.

string input_language_code = 1;

Returns
Type Description
String

The inputLanguageCode.

getInputLanguageCodeBytes()

public ByteString getInputLanguageCodeBytes()

The language code specified in the original request.

string input_language_code = 1;

Returns
Type Description
ByteString

The bytes for inputLanguageCode.

getParserForType()

public Parser<LanguageInfo> getParserForType()
Returns
Type Description
Parser<LanguageInfo>
Overrides

getResolvedLanguageCode()

public String getResolvedLanguageCode()

The language code detected for this request based on the user conversation.

string resolved_language_code = 2;

Returns
Type Description
String

The resolvedLanguageCode.

getResolvedLanguageCodeBytes()

public ByteString getResolvedLanguageCodeBytes()

The language code detected for this request based on the user conversation.

string resolved_language_code = 2;

Returns
Type Description
ByteString

The bytes for resolvedLanguageCode.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LanguageInfo.Builder newBuilderForType()
Returns
Type Description
LanguageInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LanguageInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LanguageInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public LanguageInfo.Builder toBuilder()
Returns
Type Description
LanguageInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException