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.v3.LanguageInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LanguageInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public LanguageInfo build()
buildPartial()
public LanguageInfo buildPartial()
clear()
public LanguageInfo.Builder clear()
Overrides
clearConfidenceScore()
public LanguageInfo.Builder clearConfidenceScore()
The confidence score of the detected language between 0 and 1.
float confidence_score = 3;
clearField(Descriptors.FieldDescriptor field)
public LanguageInfo.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public LanguageInfo.Builder clearInputLanguageCode()
The language code specified in the original
request.
string input_language_code = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public LanguageInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearResolvedLanguageCode()
public LanguageInfo.Builder clearResolvedLanguageCode()
The language code detected for this request based on the user
conversation.
string resolved_language_code = 2;
clone()
public LanguageInfo.Builder clone()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getInputLanguageCode()
The language code specified in the original
request.
string input_language_code = 1;
Returns |
Type |
Description |
String |
The inputLanguageCode.
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(LanguageInfo other)
public LanguageInfo.Builder mergeFrom(LanguageInfo other)
public LanguageInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public LanguageInfo.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LanguageInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public LanguageInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LanguageInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final LanguageInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides