Class LanguageInfo.Builder (0.63.0)

public static final class LanguageInfo.Builder extends GeneratedMessageV3.Builder<LanguageInfo.Builder> implements LanguageInfoOrBuilder

Represents the language information of the request.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LanguageInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LanguageInfo.Builder
Overrides

build()

public LanguageInfo build()
Returns
Type Description
LanguageInfo

buildPartial()

public LanguageInfo buildPartial()
Returns
Type Description
LanguageInfo

clear()

public LanguageInfo.Builder clear()
Returns
Type Description
LanguageInfo.Builder
Overrides

clearConfidenceScore()

public LanguageInfo.Builder clearConfidenceScore()

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

float confidence_score = 3;

Returns
Type Description
LanguageInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LanguageInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LanguageInfo.Builder
Overrides

clearInputLanguageCode()

public LanguageInfo.Builder clearInputLanguageCode()

The language code specified in the original request.

string input_language_code = 1;

Returns
Type Description
LanguageInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LanguageInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LanguageInfo.Builder
Overrides

clearResolvedLanguageCode()

public LanguageInfo.Builder clearResolvedLanguageCode()

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

string resolved_language_code = 2;

Returns
Type Description
LanguageInfo.Builder

This builder for chaining.

clone()

public LanguageInfo.Builder clone()
Returns
Type Description
LanguageInfo.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LanguageInfo other)

public LanguageInfo.Builder mergeFrom(LanguageInfo other)
Parameter
Name Description
other LanguageInfo
Returns
Type Description
LanguageInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LanguageInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LanguageInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LanguageInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LanguageInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LanguageInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LanguageInfo.Builder
Overrides

setConfidenceScore(float value)

public LanguageInfo.Builder setConfidenceScore(float value)

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

float confidence_score = 3;

Parameter
Name Description
value float

The confidenceScore to set.

Returns
Type Description
LanguageInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LanguageInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LanguageInfo.Builder
Overrides

setInputLanguageCode(String value)

public LanguageInfo.Builder setInputLanguageCode(String value)

The language code specified in the original request.

string input_language_code = 1;

Parameter
Name Description
value String

The inputLanguageCode to set.

Returns
Type Description
LanguageInfo.Builder

This builder for chaining.

setInputLanguageCodeBytes(ByteString value)

public LanguageInfo.Builder setInputLanguageCodeBytes(ByteString value)

The language code specified in the original request.

string input_language_code = 1;

Parameter
Name Description
value ByteString

The bytes for inputLanguageCode to set.

Returns
Type Description
LanguageInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LanguageInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LanguageInfo.Builder
Overrides

setResolvedLanguageCode(String value)

public LanguageInfo.Builder setResolvedLanguageCode(String value)

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

string resolved_language_code = 2;

Parameter
Name Description
value String

The resolvedLanguageCode to set.

Returns
Type Description
LanguageInfo.Builder

This builder for chaining.

setResolvedLanguageCodeBytes(ByteString value)

public LanguageInfo.Builder setResolvedLanguageCodeBytes(ByteString value)

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

string resolved_language_code = 2;

Parameter
Name Description
value ByteString

The bytes for resolvedLanguageCode to set.

Returns
Type Description
LanguageInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final LanguageInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LanguageInfo.Builder
Overrides